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