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