wok-next annotate emacs/receipt @ rev 21079

emacs: update dependencies
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Dec 22 14:46:21 2018 +0200 (2018-12-22)
parents 5669e8b3be70
children 75632eca5b07
rev   line source
pascal@20079 1 # SliTaz package receipt v2.
domcox@1046 2
domcox@1046 3 PACKAGE="emacs"
al@21071 4 VERSION="26.1"
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@21078 15 fontconfig-dev glib-dev gnutls-dev gtk2-dev libjpeg-turbo-dev libpng-dev \
al@21071 16 librsvg-dev ncurses-dev pango-dev tiff-dev xorg-dev xorg-dev-proto lcms2-dev"
al@21071 17 # giflib-dev: version 4 needed, add --with-gif=no)
al@21071 18 SPLIT="$PACKAGE-help $PACKAGE-lisp-sources $PACKAGE $PACKAGE-common"
al@21071 19
al@21071 20 COPY_help="info/ tutorials/ refcards/*.pdf etc/[A-Z]* etc/*.txt"
al@21071 21 COPY_lisp_sources="*.el.gz refcards/*.tex"
al@21071 22 COPY_std="bin/ libexec/"
al@21071 23 COPY_common="@std @rm"
al@21071 24
al@21071 25 DEPENDS_help="emacs"
al@21071 26 DEPENDS_lisp_sources="emacs"
al@21071 27 DEPENDS_std="dbus fontconfig freetype gdk-pixbuf glib gtk2 lcms2 libgnutls \
al@21079 28 libice libpng librsvg libsm libx11 libxaw libxcb libxext libxfixes libxft \
al@21079 29 libxinerama libxml2 libxmu libxpm libxrandr libxrender libxt ncurses tiff zlib"
al@21071 30 DEPENDS_common=" "
al@21071 31
al@21071 32 CAT_help="development|help files"
al@21071 33 CAT_lisp_sources="development|Lisp source files"
al@21071 34 CAT_common="editors|architecture independent part"
al@21071 35
al@21071 36 SUGGESTED_std="alsa-lib"
al@21071 37 TAGS_std="text-editor"
domcox@1046 38
al@20085 39 compile_rules() {
al@20085 40 ./configure \
domcox@3938 41 --without-makeinfo \
domcox@7830 42 --without-gconf \
psychomaniak@20015 43 --with-gif=no --with-jpeg=no \
domcox@3938 44 --with-sound \
domcox@3938 45 --with-x \
domcox@3938 46 --with-toolkit-scroll-bars \
domcox@3938 47 --with-xpm=yes \
al@20085 48 $CONFIGURE_ARGS &&
al@20085 49 make $MAKEFLAGS &&
al@21020 50 make DESTDIR=$install install || return 1
al@20085 51
al@20085 52 # Install specific site file
al@20085 53 mkdir -p $install/usr/share/emacs/site-lisp/site-start.d
al@20085 54 cp -a $stuff/default.el \
al@20085 55 $stuff/site-start.el $install/usr/share/emacs/site-lisp/
al@20085 56 cp -a $stuff/90-slitaz.el $install/usr/share/emacs/site-lisp/site-start.d
al@20085 57
al@20085 58 # Use default site-lisp
al@20085 59 ln -s ../site-lisp $install/usr/share/emacs/$VERSION/site-lisp
al@20085 60
al@21071 61 chown -R 0:0 $install
al@21071 62 find $install -type f -exec chmod g-w '{}' \; # 664->644
domcox@1046 63 }