wok view emacs/receipt @ rev 23465

updated python-antlr (3.4 -> 3.5.2)
author Hans-G?nter Theisgen
date Sun Apr 05 08:08:00 2020 +0100 (2020-04-05)
parents 188bb62d240d
children 71360a13cd94
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 if [ $(ls $install/usr/share/$PACKAGE/$VERSION/$dir/ | \
89 grep -c \.elc$) -gt 0 ]
90 then
91 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \
92 $fs/usr/share/$PACKAGE/$VERSION/$dir
93 fi
94 if [ $(ls $install/usr/share/$PACKAGE/$VERSION/$dir/ | \
95 grep -c \.el$) -gt 0 ]
96 then
97 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.el \
98 $fs/usr/share/$PACKAGE/$VERSION/$dir
99 fi
100 for file in COPYING README TODO
101 do
102 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]
103 then
104 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
105 $fs/usr/share/$PACKAGE/$VERSION/$dir
106 fi
107 done
108 status
109 done
111 # Use linux terminal only
112 LINUX_TERM="README linux.e* rxvt.elc tty-colors.elc vt100.elc xterm.elc"
113 echo -n "Copying lisp/term files (linux only)"
114 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/lisp/term &&
115 for file in $LINUX_TERM
116 do
117 cp -a $install/usr/share/$PACKAGE/$VERSION/lisp/term/$file \
118 $fs/usr/share/$PACKAGE/$VERSION/lisp/term
119 done
120 status
122 # leim files
123 # 26.3 copied with lisp files
124 # echo -n "Copying leim files"
125 # mkdir -p $fs/usr/share/$PACKAGE/$VERSION/leim &&
126 # cp -a $install/usr/share/$PACKAGE/$VERSION/leim/*.el \
127 # $fs/usr/share/$PACKAGE/$VERSION/leim
128 # status
129 # LEIM_FILES="leim/ja-dic leim/quail"
130 # for dir in $LEIM_FILES
131 # do
132 # echo -n "Copying $dir files"
133 # mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir &&
134 # cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \
135 # $fs/usr/share/$PACKAGE/$VERSION/$dir && \
136 # for file in COPYING README TODO
137 # do
138 # if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]
139 # then
140 # cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
141 # $fs/usr/share/$PACKAGE/$VERSION/$dir
142 # fi
143 # done
144 # status
145 # done
147 # Configuration files
148 echo -n "Copying configuration files"
149 CONF_FILES="ETAGS.README charsets e edt-user.el forms \
150 emacs-buffer.gdb gnus nxml org schema srecode ps-prin0.ps \
151 ps-prin1.ps ses-example.ses spook.lines themes yow.lines"
152 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc &&
153 for file in $CONF_FILES
154 do
155 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \
156 $fs/usr/share/$PACKAGE/$VERSION/etc
157 done
158 status
160 # Pixmaps files
161 XPM_DIR="images images/custom images/ezimage images/gnus images/gud \
162 images/icons/allout-widgets/*-bg images/low-color images/mail images/mpc \
163 images/newsticker images/smilies images/smilies/grayscale \
164 images/smilies/medium images/tree-widget/default images/tree-widget/folder"
165 for dir in $XPM_DIR
166 do
167 echo -n "Copying $dir xpm files"
168 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir &&
169 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.xpm \
170 $fs/usr/share/$PACKAGE/$VERSION/etc/$dir &&
171 for file in COPYING README TODO
172 do
173 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]
174 then
175 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
176 $fs/usr/share/$PACKAGE/$VERSION/$dir
177 fi
178 done
179 status
180 done
181 PNG_DIR="images images/gnus images/icons/allout-widgets/dark-bg \
182 images/icons/allout-widgets/light-bg images/tree-widget/default \
183 images/tree-widget/folder"
184 for dir in $PNG_DIR
185 do
186 echo -n "Copying $dir png files"
187 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir 2> /dev/null || true
188 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.png \
189 $fs/usr/share/$PACKAGE/$VERSION/etc/$dir &&
190 status
191 done
193 # Licence
194 GNU_FILES="AUTHORS CENSORSHIP COPYING DISTRIB FTP GNU ORDERS README"
195 echo -n "Copying License files"
196 for file in $GNU_FILES
197 do
198 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \
199 $fs/usr/share/$PACKAGE/$VERSION/etc
200 done
201 status
203 # Install specific site files
204 echo -n "Installing specific SliTaz files"
205 cp -a $install/usr/share/$PACKAGE/$VERSION/site-lisp \
206 $fs/usr/share/$PACKAGE &&
207 mkdir -p $fs/usr/share/$PACKAGE/site-lisp/site-start.d &&
208 cp -a $stuff/default.el $fs/usr/share/$PACKAGE/site-lisp &&
209 cp -a $stuff/site-start.el $fs/usr/share/$PACKAGE/site-lisp &&
210 cp -a $stuff/90-slitaz.el $fs/usr/share/$PACKAGE/site-lisp/site-start.d &&
211 status
213 # Install desktop files for emacs
214 echo -n "Installing emacs menu"
215 mkdir -p $fs/usr/share/pixmaps &&
216 mkdir -p $fs/usr/share/applications &&
217 cp -a $install/usr/share/applications $fs/usr/share/ &&
218 cp -a $install/usr/share/icons/hicolor/32x32/apps/emacs.png \
219 $fs/usr/share/pixmaps
220 status
222 # Use default site-lisp
223 cd $fs/usr/share/$PACKAGE/$VERSION
224 ln -s ../site-lisp site-lisp
225 }