wok-next annotate emacs/receipt @ rev 21071

Update atkmm, cairo, cmake, db, elfutils, emacs, glib, glib-networking, glibmm, gobject-introspection, libsigc++, meson, openssl, zstd
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Dec 13 00:46:54 2018 +0200 (2018-12-13)
parents d5aab818505e
children 5669e8b3be70
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@21071 15 fontconfig-dev glib-dev gnutls-dev gtk2-dev libjpeg-turbo-dev libpng16-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@21071 28 libpng16 librsvg libxml2 ncurses tiff xorg-libICE xorg-libSM xorg-libX11 \
al@21071 29 xorg-libXext xorg-libXfixes xorg-libXft xorg-libXpm xorg-libXrender \
al@21071 30 xorg-libxcb zlib"
al@21071 31 DEPENDS_common=" "
al@21071 32
al@21071 33 CAT_help="development|help files"
al@21071 34 CAT_lisp_sources="development|Lisp source files"
al@21071 35 CAT_common="editors|architecture independent part"
al@21071 36
al@21071 37 SUGGESTED_std="alsa-lib"
al@21071 38 TAGS_std="text-editor"
domcox@1046 39
al@20085 40 compile_rules() {
al@20085 41 ./configure \
domcox@3938 42 --without-makeinfo \
domcox@7830 43 --without-gconf \
psychomaniak@20015 44 --with-gif=no --with-jpeg=no \
domcox@3938 45 --with-sound \
domcox@3938 46 --with-x \
domcox@3938 47 --with-toolkit-scroll-bars \
domcox@3938 48 --with-xpm=yes \
al@20085 49 $CONFIGURE_ARGS &&
al@20085 50 make $MAKEFLAGS &&
al@21020 51 make DESTDIR=$install install || return 1
al@20085 52
al@20085 53 # Install specific site file
al@20085 54 mkdir -p $install/usr/share/emacs/site-lisp/site-start.d
al@20085 55 cp -a $stuff/default.el \
al@20085 56 $stuff/site-start.el $install/usr/share/emacs/site-lisp/
al@20085 57 cp -a $stuff/90-slitaz.el $install/usr/share/emacs/site-lisp/site-start.d
al@20085 58
al@20085 59 # Use default site-lisp
al@20085 60 ln -s ../site-lisp $install/usr/share/emacs/$VERSION/site-lisp
al@20085 61
al@21071 62 chown -R 0:0 $install
al@21071 63 find $install -type f -exec chmod g-w '{}' \; # 664->644
domcox@1046 64 }