wok view emacs/receipt @ rev 22269
updated xorg-xf86-video-cirrus (1.5.2 -> 1.5.3)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Nov 13 10:42:01 2019 +0100 (2019-11-13) |
parents | 21e68b90243a |
children | 11e446052847 |
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 # Gzip workaround in busybox
27 sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' Makefile.in
28 sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' leim/Makefile.in
29 # Configure (with GCC 4.5.0 workaround)
30 CFLAGS="-g -O2 -fno-optimize-sibling-calls" ./configure $CONFIGURE_ARGS \
31 --infodir=/usr/share/info \
32 --mandir=/usr/share/man \
33 --without-makeinfo \
34 --without-gconf \
35 --with-sound \
36 --with-x \
37 --with-toolkit-scroll-bars \
38 --with-xpm=yes \
39 --libexecdir=/usr/lib \
40 --localstatedir=/var/lib \
41 --sharedstatedir=/var/lib \
42 --prefix=/usr && \
43 make $MAKEFLAGS && \
44 make DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 # Binary files
51 BIN_FILES="ctags ebrowse emacs-$VERSION emacsclient etags grep-changelog"
52 echo -n "Copying emacs binary files"
53 mkdir -p $fs/usr/bin && \
54 for file in $BIN_FILES; do
55 cp -a $install/usr/bin/$file $fs/usr/bin
56 done
57 status
58 ln -s /usr/bin/emacs-$VERSION $fs/usr/bin/emacs
59 ln -s /usr/bin/emacs-$VERSION $fs/usr/bin/xemacs
60 # Lib files
61 echo -n "Copying emacs lib files"
62 cp -a $install/usr/lib $fs/usr
63 status
64 strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* 2> /dev/null
65 # lisp files
66 LISP_DIR="lisp lisp/calc lisp/calendar lisp/cedet lisp/cedet/ede \
67 lisp/cedet/semantic lisp/cedet/semantic/analyze lisp/cedet/semantic/bovine \
68 lisp/cedet/semantic/decorate lisp/cedet/semantic/symref lisp/cedet/srecode \
69 lisp/cedet/semantic/wisent lisp/emacs-lisp lisp/emulation lisp/erc lisp/eshell \
70 lisp/gnus lisp/international lisp/language lisp/mail lisp/mh-e lisp/net \
71 lisp/nxml lisp/obsolete lisp/org lisp/play lisp/progmodes lisp/textmodes \
72 lisp/url lisp/vc"
73 for dir in $LISP_DIR; do
74 echo -n "Copying $dir files"
75 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \
76 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \
77 $fs/usr/share/$PACKAGE/$VERSION/$dir
78 if [ $(ls $install/usr/share/$PACKAGE/$VERSION/$dir/ | \
79 grep -c \.el$) -gt 0 ]; then
80 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.el \
81 $fs/usr/share/$PACKAGE/$VERSION/$dir
82 fi
83 for file in COPYING README TODO; do
84 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
85 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
86 $fs/usr/share/$PACKAGE/$VERSION/$dir
87 fi
88 done
89 status
90 done
91 # Use linux term only
92 LINUX_TERM="README linux.e* rxvt.elc tty-colors.elc vt100.elc xterm.elc"
93 echo -n "Copying lisp/term files (linux only)"
94 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/lisp/term && \
95 for file in $LINUX_TERM; do
96 cp -a $install/usr/share/$PACKAGE/$VERSION/lisp/term/$file \
97 $fs/usr/share/$PACKAGE/$VERSION/lisp/term
98 done
99 status
100 # leim files
101 echo -n "Copying leim files"
102 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/leim && \
103 cp -a $install/usr/share/$PACKAGE/$VERSION/leim/*.el \
104 $fs/usr/share/$PACKAGE/$VERSION/leim
105 status
106 LEIM_FILES="leim/ja-dic leim/quail"
107 for dir in $LEIM_FILES; do
108 echo -n "Copying $dir files"
109 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \
110 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \
111 $fs/usr/share/$PACKAGE/$VERSION/$dir && \
112 for file in COPYING README TODO; do
113 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
114 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
115 $fs/usr/share/$PACKAGE/$VERSION/$dir
116 fi
117 done
118 status
119 done
120 # Conf files
121 echo -n "Copying conf files"
122 CONF_FILES="ETAGS.README charsets e enriched.doc edt-user.el forms \
123 emacs-buffer.gdb gnus nxml org schema srecode ps-prin0.ps \
124 ps-prin1.ps ses-example.ses spook.lines themes yow.lines"
125 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc && \
126 for file in $CONF_FILES; do
127 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \
128 $fs/usr/share/$PACKAGE/$VERSION/etc
129 done
130 status
131 # Pixmaps files
132 XPM_DIR="images images/custom images/ezimage images/gnus images/gud \
133 images/icons/allout-widgets/*-bg images/low-color images/mail images/mpc \
134 images/newsticker images/smilies images/smilies/grayscale \
135 images/smilies/medium images/tree-widget/default images/tree-widget/folder"
136 for dir in $XPM_DIR; do
137 echo -n "Copying $dir xpm files"
138 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
139 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.xpm \
140 $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
141 for file in COPYING README TODO; do
142 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
143 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
144 $fs/usr/share/$PACKAGE/$VERSION/$dir
145 fi
146 done
147 status
148 done
149 PNG_DIR="images images/gnus images/icons/allout-widgets/dark-bg \
150 images/icons/allout-widgets/light-bg images/tree-widget/default \
151 images/tree-widget/folder"
152 for dir in $PNG_DIR; do
153 echo -n "Copying $dir png files"
154 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir 2> /dev/null || true
155 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.png \
156 $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
157 status
158 done
159 # Licence
160 GNU_FILES="AUTHORS CENSORSHIP COPYING DISTRIB FTP GNU ORDERS README \
161 SERVICE copying.paper"
162 echo -n "Copying License files"
163 for file in $GNU_FILES; do
164 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \
165 $fs/usr/share/$PACKAGE/$VERSION/etc
166 done
167 status
168 # Install specific site file
169 echo -n "Installing specific SliTaz file"
170 cp -a $install/usr/share/$PACKAGE/$VERSION/site-lisp \
171 $fs/usr/share/$PACKAGE && \
172 mkdir -p $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \
173 cp -a $stuff/default.el $stuff/site-start.el \
174 $fs/usr/share/$PACKAGE/site-lisp && \
175 cp -a $stuff/90-slitaz.el \
176 $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \
177 status
178 # Install desktop files for emacs
179 echo -n "Installing emacs menu"
180 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications && \
181 cp -a $install/usr/share/applications $fs/usr/share/ && \
182 cp -a $install/usr/share/icons/hicolor/32x32/apps/emacs.png \
183 $fs/usr/share/pixmaps
184 status
185 # Use default site-lisp
186 cd $fs/usr/share/$PACKAGE/$VERSION
187 ln -s ../site-lisp site-lisp
188 }