1 # Packager: Daniel Mueller, daniel at danm dot de
2 # Maintainer: Johannes Winkelmann, jw at smts dot ch
3 # URL: http://www.xemacs.org
4 # Description: A highly customizable open source text editor and application development system
5 # Depends on: xorg-xbitmaps, libtiff, libpng, ncurses, lesstif
6
7 name=xemacs
8 version=21.4.21
9 release=2
10 source=(http://ftp.xemacs.org/pub/xemacs/xemacs-21.4/$name-$version.tar.gz
11 $name-$version-no_info.diff
12 $name-$version-etc-blacklist)
13
14 build(){
15 cd $name-$version
16 patch -p0 -i $SRC/$name-$version-no_info.diff
17
18 ./configure --prefix=/usr --dynamic=yes --with-x11 \
19 --with-menubars=lucid --with-scrollbars=lucid \
20 --external-widget --with-jpeg --with-png --with-tiff \
21 --with-ncurses --with-pop --with-xfs \
22 --with-file-coding
23
24 make
25 make autoloads
26
27 # create directory hierarchies
28 mkdir -p $PKG/usr/{bin,lib,man/man1}
29 mkdir -p $PKG/usr/lib/$name-$version/{etc,info,lisp}
30 mkdir -p $PKG/usr/lib/$name/lock
31
32 make prefix="$PKG/usr" install
33
34 (cd $PKG/usr/lib/$name-$version/etc; \
35 rm ctags.1; ln -s etags.1 ctags.1; \
36 rm gnuattach.1; ln -s gnuserv.1 gnuattach.1; \
37 rm gnuclient.1; ln -s gnuserv.1 gnuclient.1; \
38 rm gnudoit.1; ln -s gnuserv.1 gnudoit.1)
39 mv $PKG/usr/lib/$name-$version/etc/*.1 $PKG/usr/man/man1/
40
41 (cd $PKG/usr/bin; rm $name; \
42 mv $name-$version $name)
43
44 # remove conflicting files (emacs)
45 rm $PKG/usr/bin/{b2m,ctags,etags,rcs-checkin}
46 rm $PKG/usr/man/man1/{ctags.1,etags.1,xemacs-ja.1}
47 mv $PKG/usr/bin/$name-$version* $PKG/usr/bin/$name.dmp
48
49 find $PKG/usr/lib/$name-$version -name "*.el" | while read file; do
50 [ -f ${file}c ] && rm -f $file
51 done
52
53 rm -f $PKG/usr/lib/$name-$version/i686-pc-linux/include/{m,s}/README
54 rm -f $PKG/usr/lib/$name-$version/lisp/{ChangeLog.*,{,term/}README}
55
56 for i in $(< $SRC/$name-$version-etc-blacklist); do
57 rm -rf $PKG/usr/lib/$name-$version/etc/$i
58 done
59
60 # correct permissions
61 chown -R root:root $PKG
62 }
|