wok-current view emacs/receipt @ rev 22407
Add knot-dns (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Dec 10 16:56:23 2019 +0100 (2019-12-10) |
parents | 3525dfa8c479 |
children | a3bd8120a0f2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="emacs"
4 VERSION="24.3"
5 CATEGORY="editors"
6 SHORT_DESC="The GNU Emacs editor"
7 MAINTAINER="domcox@slitaz.org"
8 LICENSE="GPL3"
9 SUGGESTED="alsa-lib"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WEB_SITE="http://www.gnu.org/software/emacs/"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
13 TAGS="text-editor"
15 DEPENDS="atk cairo dbus expat freetype fontconfig giflib glib gnutls gtk+ jpeg \
16 libgio libpng util-linux-uuid ncurses pango tiff xorg-server zlib \
17 librsvg libgsf libtinfo libgnutls harfbuzz"
18 BUILD_DEPENDS="atk-dev cairo-dev expat-dev dbus-dev freetype-dev \
19 fontconfig-dev giflib-dev glib-dev gnutls-dev gtk+-dev jpeg-dev libgio-dev \
20 libpng-dev librsvg-dev ncurses-dev pango-dev pkg-config tiff-dev xorg-dev \
21 xorg-dev-proto libgnutls"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's|EGifPutExtensionLast|EGifPutExtensionTrailer|' configure*
27 sed -i 's|\(gif = fn_DGifOpen.*\));|\1,NULL);|' src/image.c
28 sed -i 's|fn_DGifCloseFile (gif|&,NULL|' src/image.c
30 # Gzip workaround in busybox
31 sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' Makefile.in
32 sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' leim/Makefile.in
33 # Configure (with GCC 4.5.0 workaround)
34 CFLAGS="-g -O2 -fno-optimize-sibling-calls" ./configure $CONFIGURE_ARGS \
35 --infodir=/usr/share/info \
36 --mandir=/usr/share/man \
37 --without-makeinfo \
38 --without-gconf \
39 --with-sound \
40 --with-x \
41 --with-toolkit-scroll-bars \
42 --with-xpm=yes \
43 --libexecdir=/usr/lib \
44 --localstatedir=/var/lib \
45 --sharedstatedir=/var/lib \
46 --prefix=/usr && \
47 make $MAKEFLAGS && \
48 make DESTDIR=$DESTDIR install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 # Binary files
55 BIN_FILES="ctags ebrowse emacs-$VERSION emacsclient etags grep-changelog"
56 echo -n "Copying emacs binary files"
57 mkdir -p $fs/usr/bin && \
58 for file in $BIN_FILES; do
59 cp -a $install/usr/bin/$file $fs/usr/bin
60 done
61 status
62 ln -s /usr/bin/emacs-$VERSION $fs/usr/bin/emacs
63 ln -s /usr/bin/emacs-$VERSION $fs/usr/bin/xemacs
64 # Lib files
65 echo -n "Copying emacs lib files"
66 cp -a $install/usr/lib $fs/usr
67 status
68 strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* 2> /dev/null
69 # lisp files
70 LISP_DIR="lisp lisp/calc lisp/calendar lisp/cedet lisp/cedet/ede \
71 lisp/cedet/semantic lisp/cedet/semantic/analyze lisp/cedet/semantic/bovine \
72 lisp/cedet/semantic/decorate lisp/cedet/semantic/symref lisp/cedet/srecode \
73 lisp/cedet/semantic/wisent lisp/emacs-lisp lisp/emulation lisp/erc lisp/eshell \
74 lisp/gnus lisp/international lisp/language lisp/mail lisp/mh-e lisp/net \
75 lisp/nxml lisp/obsolete lisp/org lisp/play lisp/progmodes lisp/textmodes \
76 lisp/url lisp/vc"
77 for dir in $LISP_DIR; do
78 echo -n "Copying $dir files"
79 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \
80 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \
81 $fs/usr/share/$PACKAGE/$VERSION/$dir
82 if [ $(ls $install/usr/share/$PACKAGE/$VERSION/$dir/ | \
83 grep -c \.el$) -gt 0 ]; then
84 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.el \
85 $fs/usr/share/$PACKAGE/$VERSION/$dir
86 fi
87 for file in COPYING README TODO; do
88 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
89 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
90 $fs/usr/share/$PACKAGE/$VERSION/$dir
91 fi
92 done
93 status
94 done
95 # Use linux term only
96 LINUX_TERM="README linux.e* rxvt.elc tty-colors.elc vt100.elc xterm.elc"
97 echo -n "Copying lisp/term files (linux only)"
98 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/lisp/term && \
99 for file in $LINUX_TERM; do
100 cp -a $install/usr/share/$PACKAGE/$VERSION/lisp/term/$file \
101 $fs/usr/share/$PACKAGE/$VERSION/lisp/term
102 done
103 status
104 # leim files
105 echo -n "Copying leim files"
106 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/leim && \
107 cp -a $install/usr/share/$PACKAGE/$VERSION/leim/*.el \
108 $fs/usr/share/$PACKAGE/$VERSION/leim
109 status
110 LEIM_FILES="leim/ja-dic leim/quail"
111 for dir in $LEIM_FILES; do
112 echo -n "Copying $dir files"
113 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \
114 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \
115 $fs/usr/share/$PACKAGE/$VERSION/$dir && \
116 for file in COPYING README TODO; do
117 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
118 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
119 $fs/usr/share/$PACKAGE/$VERSION/$dir
120 fi
121 done
122 status
123 done
124 # Conf files
125 echo -n "Copying conf files"
126 CONF_FILES="ETAGS.README charsets e enriched.doc edt-user.el forms \
127 emacs-buffer.gdb gnus nxml org schema srecode ps-prin0.ps \
128 ps-prin1.ps ses-example.ses spook.lines themes yow.lines"
129 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc && \
130 for file in $CONF_FILES; do
131 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \
132 $fs/usr/share/$PACKAGE/$VERSION/etc
133 done
134 status
135 # Pixmaps files
136 XPM_DIR="images images/custom images/ezimage images/gnus images/gud \
137 images/icons/allout-widgets/*-bg images/low-color images/mail images/mpc \
138 images/newsticker images/smilies images/smilies/grayscale \
139 images/smilies/medium images/tree-widget/default images/tree-widget/folder"
140 for dir in $XPM_DIR; do
141 echo -n "Copying $dir xpm files"
142 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
143 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.xpm \
144 $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
145 for file in COPYING README TODO; do
146 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
147 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
148 $fs/usr/share/$PACKAGE/$VERSION/$dir
149 fi
150 done
151 status
152 done
153 PNG_DIR="images images/gnus images/icons/allout-widgets/dark-bg \
154 images/icons/allout-widgets/light-bg images/tree-widget/default \
155 images/tree-widget/folder"
156 for dir in $PNG_DIR; do
157 echo -n "Copying $dir png files"
158 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir 2> /dev/null || true
159 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.png \
160 $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
161 status
162 done
163 # Licence
164 GNU_FILES="AUTHORS CENSORSHIP COPYING DISTRIB FTP GNU ORDERS README \
165 SERVICE copying.paper"
166 echo -n "Copying License files"
167 for file in $GNU_FILES; do
168 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \
169 $fs/usr/share/$PACKAGE/$VERSION/etc
170 done
171 status
172 # Install specific site file
173 echo -n "Installing specific SliTaz file"
174 cp -a $install/usr/share/$PACKAGE/$VERSION/site-lisp \
175 $fs/usr/share/$PACKAGE && \
176 mkdir -p $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \
177 cp -a $stuff/default.el $stuff/site-start.el \
178 $fs/usr/share/$PACKAGE/site-lisp && \
179 cp -a $stuff/90-slitaz.el \
180 $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \
181 status
182 # Install desktop files for emacs
183 echo -n "Installing emacs menu"
184 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications && \
185 cp -a $install/usr/share/applications $fs/usr/share/ && \
186 cp -a $install/usr/share/icons/hicolor/32x32/apps/emacs.png \
187 $fs/usr/share/pixmaps
188 status
189 # Use default site-lisp
190 cd $fs/usr/share/$PACKAGE/$VERSION
191 ln -s ../site-lisp site-lisp
192 }