wok-next annotate emacs/receipt @ rev 20462

Combine receipts
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Mar 06 03:00:01 2018 +0200 (2018-03-06)
parents ec0c15962394
children d43bf7aae921
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"
domcox@3938 7 MAINTAINER="domcox@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 \
psychomaniak@20014 15 fontconfig-dev glib-dev gnutls-dev gtk+-dev jpeg-dev \
al@20085 16 libpng16-dev librsvg-dev ncurses-dev pango-dev pkg-config tiff-dev xorg-dev \
psychomaniak@20014 17 xorg-dev-proto" # giflib-dev: version 4 needed, add --with-gif=no)
al@20085 18 SPLIT="emacs-help emacs-lisp-sources emacs"
domcox@1046 19
domcox@1046 20 # Rules to configure and make the package.
al@20085 21 compile_rules() {
al@20085 22 ./configure \
slaxemulator@11722 23 --infodir=/usr/share/info \
domcox@3938 24 --mandir=/usr/share/man \
domcox@3938 25 --without-makeinfo \
domcox@7830 26 --without-gconf \
psychomaniak@20015 27 --with-gif=no --with-jpeg=no \
domcox@3938 28 --with-sound \
domcox@3938 29 --with-x \
domcox@3938 30 --with-toolkit-scroll-bars \
domcox@3938 31 --with-xpm=yes \
domcox@3938 32 --libexecdir=/usr/lib \
domcox@3938 33 --localstatedir=/var/lib \
domcox@3938 34 --sharedstatedir=/var/lib \
al@20085 35 $CONFIGURE_ARGS &&
al@20085 36 make $MAKEFLAGS &&
al@20085 37 make DESTDIR=$DESTDIR install || return 1
al@20085 38
al@20085 39 # Install specific site file
al@20085 40 mkdir -p $install/usr/share/emacs/site-lisp/site-start.d
al@20085 41 cp -a $stuff/default.el \
al@20085 42 $stuff/site-start.el $install/usr/share/emacs/site-lisp/
al@20085 43 cp -a $stuff/90-slitaz.el $install/usr/share/emacs/site-lisp/site-start.d
al@20085 44
al@20085 45 # Use default site-lisp
al@20085 46 ln -s ../site-lisp $install/usr/share/emacs/$VERSION/site-lisp
al@20085 47
al@20085 48 chown -R root:root $install
domcox@1046 49 }
domcox@1046 50
domcox@1046 51 # Rules to gen a SliTaz package suitable for Tazpkg.
al@20085 52 genpkg_rules() {
pascal@20079 53 case $PACKAGE in
al@20085 54 emacs-help)
al@20085 55 copy \
al@20085 56 info/ \
al@20085 57 tutorials/ \
al@20085 58 refcards/*.pdf \
al@20085 59 etc/[A-Z]* \
al@20085 60 etc/*.txt
al@20085 61 DEPENDS="emacs"
al@20085 62 CAT="development|help files"
al@20085 63 ;;
al@20085 64 emacs-lisp-sources)
al@20085 65 copy \
al@20085 66 *.el.gz \
al@20085 67 refcards/*.tex
al@20085 68 DEPENDS="emacs"
al@20085 69 CAT="development|Lisp source files"
al@20085 70 ;;
al@20085 71 emacs)
al@20085 72 copy @std @dev
al@20085 73 remove_already_packed
al@20085 74 strip -s $fs/usr/lib/emacs/$VERSION/i486-pc-linux-gnu/* 2>/dev/null
al@20085 75 DEPENDS="atk cairo dbus expat freetype fontconfig giflib glib \
al@20454 76 gnutls gtk+ jpeg libpng16 librsvg util-linux-uuid \
pascal@20079 77 ncurses pango tiff xorg-server zlib librsvg libgsf \
pascal@20079 78 libgnutls harfbuzz"
al@20085 79 SUGGESTED="alsa-lib"
al@20085 80 TAGS="text-editor"
pascal@20079 81 ;;
pascal@20079 82 esac
domcox@1046 83 }
domcox@1380 84
al@20085 85 # linking /usr/bin/emacs to new version
al@20085 86 post_install_emacs() {
al@20085 87 ln -sf /usr/bin/emacs-$VERSION "$1/usr/bin/emacs"
domcox@3939 88 }
domcox@3939 89
al@20085 90 post_remove_emacs() {
pascal@18730 91 rm -rf "$1/usr/share/emacs"
pascal@18730 92 rm -rf "$1/usr/lib/emacs"
al@20085 93 rm -f "$1/usr/bin/emacs"
llevrel@18794 94 }