wok-next annotate emacs/receipt @ rev 20014

Up leptonica (1.74.4). abiword, emacs: up bdeps. marble: fix build.
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Sat Oct 21 21:21:28 2017 +0200 (2017-10-21)
parents 1fcdbab05a8a
children 1cfe6fd269ef
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 \
al@19779 16 libpng librsvg util-linux-uuid ncurses pango tiff xorg-server zlib \
pascal@19961 17 librsvg libgsf libgnutls harfbuzz"
domcox@14082 18 BUILD_DEPENDS="atk-dev cairo-dev expat-dev dbus-dev freetype-dev \
psychomaniak@20014 19 fontconfig-dev glib-dev gnutls-dev gtk+-dev jpeg-dev \
domcox@14082 20 libpng-dev librsvg-dev ncurses-dev pango-dev pkg-config tiff-dev xorg-dev \
psychomaniak@20014 21 xorg-dev-proto" # giflib-dev: version 4 needed, add --with-gif=no)
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 \
psychomaniak@20014 35 --with-gif=no \
domcox@3938 36 --with-sound \
domcox@3938 37 --with-x \
domcox@3938 38 --with-toolkit-scroll-bars \
domcox@3938 39 --with-xpm=yes \
domcox@3938 40 --libexecdir=/usr/lib \
domcox@3938 41 --localstatedir=/var/lib \
domcox@3938 42 --sharedstatedir=/var/lib \
domcox@3938 43 --prefix=/usr && \
gokhlayeh@11574 44 make $MAKEFLAGS && \
slaxemulator@11722 45 make DESTDIR=$DESTDIR install
domcox@1046 46 }
domcox@1046 47
domcox@1046 48 # Rules to gen a SliTaz package suitable for Tazpkg.
domcox@1046 49 genpkg_rules()
domcox@1046 50 {
domcox@1046 51 # Binary files
domcox@14082 52 BIN_FILES="ctags ebrowse emacs-$VERSION emacsclient etags grep-changelog"
domcox@3938 53 echo -n "Copying emacs binary files"
domcox@3938 54 mkdir -p $fs/usr/bin && \
domcox@3938 55 for file in $BIN_FILES; do
pascal@14999 56 cp -a $install/usr/bin/$file $fs/usr/bin
domcox@3938 57 done
domcox@3938 58 status
domcox@3938 59 # Lib files
domcox@3938 60 echo -n "Copying emacs lib files"
pascal@14999 61 cp -a $install/usr/lib $fs/usr
domcox@3938 62 status
domcox@14082 63 strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* 2> /dev/null
domcox@3938 64 # lisp files
domcox@14082 65 LISP_DIR="lisp lisp/calc lisp/calendar lisp/cedet lisp/cedet/ede \
domcox@14082 66 lisp/cedet/semantic lisp/cedet/semantic/analyze lisp/cedet/semantic/bovine \
domcox@14082 67 lisp/cedet/semantic/decorate lisp/cedet/semantic/symref lisp/cedet/srecode \
domcox@14082 68 lisp/cedet/semantic/wisent lisp/emacs-lisp lisp/emulation lisp/erc lisp/eshell \
domcox@14082 69 lisp/gnus lisp/international lisp/language lisp/mail lisp/mh-e lisp/net \
domcox@14082 70 lisp/nxml lisp/obsolete lisp/org lisp/play lisp/progmodes lisp/textmodes \
domcox@14082 71 lisp/url lisp/vc"
domcox@3938 72 for dir in $LISP_DIR; do
domcox@3938 73 echo -n "Copying $dir files"
domcox@14082 74 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \
pascal@14999 75 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \
domcox@14082 76 $fs/usr/share/$PACKAGE/$VERSION/$dir
pascal@14999 77 if [ $(ls $install/usr/share/$PACKAGE/$VERSION/$dir/ | \
domcox@14082 78 grep -c \.el$) -gt 0 ]; then
pascal@14999 79 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.el \
domcox@14082 80 $fs/usr/share/$PACKAGE/$VERSION/$dir
domcox@3938 81 fi
domcox@3938 82 for file in COPYING README TODO; do
pascal@14999 83 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
pascal@14999 84 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
domcox@14082 85 $fs/usr/share/$PACKAGE/$VERSION/$dir
domcox@3938 86 fi
domcox@3938 87 done
domcox@3938 88 status
domcox@3938 89 done
domcox@3938 90 # Use linux term only
domcox@14082 91 LINUX_TERM="README linux.e* rxvt.elc tty-colors.elc vt100.elc xterm.elc"
domcox@3938 92 echo -n "Copying lisp/term files (linux only)"
domcox@14082 93 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/lisp/term && \
domcox@3938 94 for file in $LINUX_TERM; do
pascal@14999 95 cp -a $install/usr/share/$PACKAGE/$VERSION/lisp/term/$file \
domcox@14082 96 $fs/usr/share/$PACKAGE/$VERSION/lisp/term
domcox@3938 97 done
domcox@3938 98 status
domcox@3938 99 # leim files
domcox@3938 100 echo -n "Copying leim files"
domcox@14082 101 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/leim && \
pascal@14999 102 cp -a $install/usr/share/$PACKAGE/$VERSION/leim/*.el \
domcox@14082 103 $fs/usr/share/$PACKAGE/$VERSION/leim
domcox@3938 104 status
domcox@3938 105 LEIM_FILES="leim/ja-dic leim/quail"
domcox@3938 106 for dir in $LEIM_FILES; do
domcox@3938 107 echo -n "Copying $dir files"
domcox@14082 108 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \
pascal@14999 109 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \
domcox@14082 110 $fs/usr/share/$PACKAGE/$VERSION/$dir && \
domcox@3938 111 for file in COPYING README TODO; do
pascal@14999 112 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
pascal@14999 113 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
domcox@14082 114 $fs/usr/share/$PACKAGE/$VERSION/$dir
domcox@3938 115 fi
domcox@3938 116 done
domcox@3938 117 status
domcox@3938 118 done
domcox@1046 119 # Conf files
domcox@3938 120 echo -n "Copying conf files"
domcox@14190 121 CONF_FILES="ETAGS.README charsets e enriched.doc edt-user.el forms \
domcox@14190 122 emacs-buffer.gdb gnus nxml org schema srecode ps-prin0.ps \
domcox@14082 123 ps-prin1.ps ses-example.ses spook.lines themes yow.lines"
domcox@14082 124 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc && \
domcox@3938 125 for file in $CONF_FILES; do
pascal@14999 126 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \
domcox@14082 127 $fs/usr/share/$PACKAGE/$VERSION/etc
domcox@1046 128 done
domcox@3938 129 status
domcox@3938 130 # Pixmaps files
domcox@14082 131 XPM_DIR="images images/custom images/ezimage images/gnus images/gud \
domcox@14082 132 images/icons/allout-widgets/*-bg images/low-color images/mail images/mpc \
domcox@14082 133 images/newsticker images/smilies images/smilies/grayscale \
domcox@14082 134 images/smilies/medium images/tree-widget/default images/tree-widget/folder"
domcox@3938 135 for dir in $XPM_DIR; do
domcox@3939 136 echo -n "Copying $dir xpm files"
domcox@14082 137 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
pascal@14999 138 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.xpm \
domcox@14082 139 $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
domcox@3938 140 for file in COPYING README TODO; do
pascal@14999 141 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
pascal@14999 142 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
domcox@14082 143 $fs/usr/share/$PACKAGE/$VERSION/$dir
domcox@3938 144 fi
domcox@3938 145 done
domcox@3938 146 status
domcox@3938 147 done
domcox@14082 148 PNG_DIR="images images/gnus images/icons/allout-widgets/*-bg \
domcox@14082 149 images/tree-widget/default images/tree-widget/folder"
domcox@3939 150 for dir in $PNG_DIR; do
domcox@3939 151 echo -n "Copying $dir png files"
pascal@14999 152 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.png \
domcox@14082 153 $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
domcox@3939 154 status
domcox@3939 155 done
domcox@3938 156 # Licence
domcox@14082 157 GNU_FILES="AUTHORS CENSORSHIP COPYING DISTRIB FTP GNU ORDERS README \
domcox@14082 158 SERVICE copying.paper"
domcox@3938 159 echo -n "Copying License files"
domcox@3938 160 for file in $GNU_FILES; do
pascal@14999 161 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \
domcox@14082 162 $fs/usr/share/$PACKAGE/$VERSION/etc
domcox@3938 163 done
domcox@3938 164 status
domcox@1046 165 # Install specific site file
domcox@3938 166 echo -n "Installing specific SliTaz file"
pascal@14999 167 cp -a $install/usr/share/$PACKAGE/$VERSION/site-lisp \
llevrel@18794 168 $fs/usr/share/$PACKAGE && \
domcox@3938 169 mkdir -p $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \
llevrel@18794 170 cp -a $stuff/default.el $stuff/site-start.el \
llevrel@18794 171 $fs/usr/share/$PACKAGE/site-lisp && \
domcox@14082 172 cp -a $stuff/90-slitaz.el \
domcox@14082 173 $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \
domcox@3938 174 status
domcox@3938 175 # Install desktop files for emacs
domcox@3938 176 echo -n "Installing emacs menu"
domcox@3938 177 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications && \
pascal@14999 178 cp -a $install/usr/share/applications $fs/usr/share/ && \
pascal@14999 179 cp -a $install/usr/share/icons/hicolor/32x32/apps/emacs.png \
domcox@14082 180 $fs/usr/share/pixmaps
domcox@3938 181 status
domcox@14082 182 # Use default site-lisp
domcox@14082 183 cd $fs/usr/share/$PACKAGE/$VERSION
domcox@1046 184 ln -s ../site-lisp site-lisp
domcox@1046 185 }
domcox@1380 186
domcox@3939 187 post_install()
domcox@3939 188 {
domcox@14082 189 # linking /usr/bin/emacs to new version
pascal@18730 190 [ -h "$1/usr/bin/emacs" ] && rm -f "$1/usr/bin/emacs"
pascal@18730 191 ln -s /usr/bin/emacs-$VERSION "$1/usr/bin/emacs"
domcox@3939 192 }
domcox@3939 193
domcox@1380 194 post_remove()
domcox@1380 195 {
pascal@18730 196 rm -rf "$1/usr/share/emacs"
pascal@18730 197 rm -rf "$1/usr/lib/emacs"
pascal@18730 198 rm -f "$1/usr/bin/emacs"
llevrel@18794 199 }