wok-next annotate emacs/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f48456621a9d |
children | 4d9f82dabdbb |
rev | line source |
---|---|
pascal@20079 | 1 # SliTaz package receipt v2. |
domcox@1046 | 2 |
domcox@1046 | 3 PACKAGE="emacs" |
pascal@20079 | 4 VERSION="25.3" |
pascal@18559 | 5 CATEGORY="editors" |
domcox@1046 | 6 SHORT_DESC="The GNU Emacs editor" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
al@20085 | 9 WEB_SITE="http://www.gnu.org/software/emacs/" |
al@20085 | 10 |
pascal@14999 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@14999 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pascal@14999 | 13 |
domcox@14082 | 14 BUILD_DEPENDS="atk-dev cairo-dev expat-dev dbus-dev freetype-dev \ |
al@21017 | 15 fontconfig-dev glib-dev gnutls-dev gtk2-dev jpeg-dev \ |
al@20513 | 16 libpng16-dev librsvg-dev ncurses-dev pango-dev tiff-dev xorg-dev \ |
psychomaniak@20014 | 17 xorg-dev-proto" # giflib-dev: version 4 needed, add --with-gif=no) |
al@21020 | 18 SPLIT="$PACKAGE-help $PACKAGE-lisp-sources $PACKAGE" |
domcox@1046 | 19 |
al@20085 | 20 compile_rules() { |
al@20085 | 21 ./configure \ |
slaxemulator@11722 | 22 --infodir=/usr/share/info \ |
domcox@3938 | 23 --mandir=/usr/share/man \ |
domcox@3938 | 24 --without-makeinfo \ |
domcox@7830 | 25 --without-gconf \ |
psychomaniak@20015 | 26 --with-gif=no --with-jpeg=no \ |
domcox@3938 | 27 --with-sound \ |
domcox@3938 | 28 --with-x \ |
domcox@3938 | 29 --with-toolkit-scroll-bars \ |
domcox@3938 | 30 --with-xpm=yes \ |
domcox@3938 | 31 --libexecdir=/usr/lib \ |
domcox@3938 | 32 --localstatedir=/var/lib \ |
domcox@3938 | 33 --sharedstatedir=/var/lib \ |
al@20085 | 34 $CONFIGURE_ARGS && |
al@20085 | 35 make $MAKEFLAGS && |
al@21020 | 36 make DESTDIR=$install install || return 1 |
al@20085 | 37 |
al@20085 | 38 # Install specific site file |
al@20085 | 39 mkdir -p $install/usr/share/emacs/site-lisp/site-start.d |
al@20085 | 40 cp -a $stuff/default.el \ |
al@20085 | 41 $stuff/site-start.el $install/usr/share/emacs/site-lisp/ |
al@20085 | 42 cp -a $stuff/90-slitaz.el $install/usr/share/emacs/site-lisp/site-start.d |
al@20085 | 43 |
al@20085 | 44 # Use default site-lisp |
al@20085 | 45 ln -s ../site-lisp $install/usr/share/emacs/$VERSION/site-lisp |
al@20085 | 46 |
al@20085 | 47 chown -R root:root $install |
domcox@1046 | 48 } |
domcox@1046 | 49 |
al@20085 | 50 genpkg_rules() { |
pascal@20079 | 51 case $PACKAGE in |
al@20085 | 52 emacs-help) |
al@20085 | 53 copy \ |
al@20085 | 54 info/ \ |
al@20085 | 55 tutorials/ \ |
al@20085 | 56 refcards/*.pdf \ |
al@20085 | 57 etc/[A-Z]* \ |
al@20085 | 58 etc/*.txt |
al@20085 | 59 DEPENDS="emacs" |
al@20085 | 60 CAT="development|help files" |
al@20085 | 61 ;; |
al@20085 | 62 emacs-lisp-sources) |
al@20085 | 63 copy \ |
al@20085 | 64 *.el.gz \ |
al@20085 | 65 refcards/*.tex |
al@20085 | 66 DEPENDS="emacs" |
al@20085 | 67 CAT="development|Lisp source files" |
al@20085 | 68 ;; |
al@20085 | 69 emacs) |
al@20513 | 70 copy @std @dev @rm |
al@20085 | 71 strip -s $fs/usr/lib/emacs/$VERSION/i486-pc-linux-gnu/* 2>/dev/null |
al@20085 | 72 DEPENDS="atk cairo dbus expat freetype fontconfig giflib glib \ |
al@21017 | 73 gnutls gtk2 jpeg libpng16 librsvg util-linux-uuid \ |
pascal@20079 | 74 ncurses pango tiff xorg-server zlib librsvg libgsf \ |
pascal@20079 | 75 libgnutls harfbuzz" |
al@20085 | 76 SUGGESTED="alsa-lib" |
al@20085 | 77 TAGS="text-editor" |
pascal@20079 | 78 ;; |
pascal@20079 | 79 esac |
domcox@1046 | 80 } |
domcox@1380 | 81 |
al@20085 | 82 # linking /usr/bin/emacs to new version |
al@20085 | 83 post_install_emacs() { |
al@20085 | 84 ln -sf /usr/bin/emacs-$VERSION "$1/usr/bin/emacs" |
domcox@3939 | 85 } |
domcox@3939 | 86 |
al@20085 | 87 post_remove_emacs() { |
pascal@18730 | 88 rm -rf "$1/usr/share/emacs" |
pascal@18730 | 89 rm -rf "$1/usr/lib/emacs" |
al@20085 | 90 rm -f "$1/usr/bin/emacs" |
llevrel@18794 | 91 } |