wok annotate emacs/receipt @ rev 22036

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