wok-6.x annotate emacs/receipt @ rev 22525

updated babl and babl-dev (0.1.24 -> 0.1.74)
author Hans-G?nter Theisgen
date Thu Jan 02 16:21:42 2020 +0100 (2020-01-02)
parents 3525dfa8c479
children a3bd8120a0f2
rev   line source
domcox@1046 1 # SliTaz package receipt.
domcox@1046 2
domcox@1046 3 PACKAGE="emacs"
domcox@14190 4 VERSION="24.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"
pascal@14999 9 SUGGESTED="alsa-lib"
pascal@14999 10 TARBALL="$PACKAGE-$VERSION.tar.xz"
pascal@14999 11 WEB_SITE="http://www.gnu.org/software/emacs/"
pascal@14999 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pascal@14999 13 TAGS="text-editor"
pascal@14999 14
domcox@14082 15 DEPENDS="atk cairo dbus expat freetype fontconfig giflib glib gnutls gtk+ jpeg \
hackdorte@19998 16 libgio libpng util-linux-uuid ncurses pango tiff xorg-server zlib \
mojo@17765 17 librsvg libgsf libtinfo libgnutls harfbuzz"
domcox@14082 18 BUILD_DEPENDS="atk-dev cairo-dev expat-dev dbus-dev freetype-dev \
domcox@14082 19 fontconfig-dev giflib-dev glib-dev gnutls-dev gtk+-dev jpeg-dev libgio-dev \
domcox@14082 20 libpng-dev librsvg-dev ncurses-dev pango-dev pkg-config tiff-dev xorg-dev \
pascal@20598 21 xorg-dev-proto libgnutls"
domcox@1046 22
domcox@1046 23 # Rules to configure and make the package.
domcox@1046 24 compile_rules()
domcox@1046 25 {
pascal@22363 26 sed -i 's|EGifPutExtensionLast|EGifPutExtensionTrailer|' configure*
pascal@22363 27 sed -i 's|\(gif = fn_DGifOpen.*\));|\1,NULL);|' src/image.c
pascal@22363 28 sed -i 's|fn_DGifCloseFile (gif|&,NULL|' src/image.c
pascal@22363 29
domcox@1046 30 # Gzip workaround in busybox
domcox@1900 31 sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' Makefile.in
domcox@1900 32 sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' leim/Makefile.in
pascal@5582 33 # Configure (with GCC 4.5.0 workaround)
pascal@5582 34 CFLAGS="-g -O2 -fno-optimize-sibling-calls" ./configure $CONFIGURE_ARGS \
slaxemulator@11722 35 --infodir=/usr/share/info \
domcox@3938 36 --mandir=/usr/share/man \
domcox@3938 37 --without-makeinfo \
domcox@7830 38 --without-gconf \
domcox@3938 39 --with-sound \
domcox@3938 40 --with-x \
domcox@3938 41 --with-toolkit-scroll-bars \
domcox@3938 42 --with-xpm=yes \
domcox@3938 43 --libexecdir=/usr/lib \
domcox@3938 44 --localstatedir=/var/lib \
domcox@3938 45 --sharedstatedir=/var/lib \
domcox@3938 46 --prefix=/usr && \
gokhlayeh@11574 47 make $MAKEFLAGS && \
slaxemulator@11722 48 make DESTDIR=$DESTDIR install
domcox@1046 49 }
domcox@1046 50
domcox@1046 51 # Rules to gen a SliTaz package suitable for Tazpkg.
domcox@1046 52 genpkg_rules()
domcox@1046 53 {
domcox@1046 54 # Binary files
domcox@14082 55 BIN_FILES="ctags ebrowse emacs-$VERSION emacsclient etags grep-changelog"
domcox@3938 56 echo -n "Copying emacs binary files"
domcox@3938 57 mkdir -p $fs/usr/bin && \
domcox@3938 58 for file in $BIN_FILES; do
pascal@14999 59 cp -a $install/usr/bin/$file $fs/usr/bin
domcox@3938 60 done
domcox@3938 61 status
pascal@21869 62 ln -s /usr/bin/emacs-$VERSION $fs/usr/bin/emacs
pascal@21869 63 ln -s /usr/bin/emacs-$VERSION $fs/usr/bin/xemacs
domcox@3938 64 # Lib files
domcox@3938 65 echo -n "Copying emacs lib files"
pascal@14999 66 cp -a $install/usr/lib $fs/usr
domcox@3938 67 status
domcox@14082 68 strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* 2> /dev/null
domcox@3938 69 # lisp files
domcox@14082 70 LISP_DIR="lisp lisp/calc lisp/calendar lisp/cedet lisp/cedet/ede \
domcox@14082 71 lisp/cedet/semantic lisp/cedet/semantic/analyze lisp/cedet/semantic/bovine \
domcox@14082 72 lisp/cedet/semantic/decorate lisp/cedet/semantic/symref lisp/cedet/srecode \
domcox@14082 73 lisp/cedet/semantic/wisent lisp/emacs-lisp lisp/emulation lisp/erc lisp/eshell \
domcox@14082 74 lisp/gnus lisp/international lisp/language lisp/mail lisp/mh-e lisp/net \
domcox@14082 75 lisp/nxml lisp/obsolete lisp/org lisp/play lisp/progmodes lisp/textmodes \
domcox@14082 76 lisp/url lisp/vc"
domcox@3938 77 for dir in $LISP_DIR; do
domcox@3938 78 echo -n "Copying $dir files"
domcox@14082 79 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \
pascal@14999 80 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \
domcox@14082 81 $fs/usr/share/$PACKAGE/$VERSION/$dir
pascal@14999 82 if [ $(ls $install/usr/share/$PACKAGE/$VERSION/$dir/ | \
domcox@14082 83 grep -c \.el$) -gt 0 ]; then
pascal@14999 84 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.el \
domcox@14082 85 $fs/usr/share/$PACKAGE/$VERSION/$dir
domcox@3938 86 fi
domcox@3938 87 for file in COPYING README TODO; do
pascal@14999 88 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
pascal@14999 89 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
domcox@14082 90 $fs/usr/share/$PACKAGE/$VERSION/$dir
domcox@3938 91 fi
domcox@3938 92 done
domcox@3938 93 status
domcox@3938 94 done
domcox@3938 95 # Use linux term only
domcox@14082 96 LINUX_TERM="README linux.e* rxvt.elc tty-colors.elc vt100.elc xterm.elc"
domcox@3938 97 echo -n "Copying lisp/term files (linux only)"
domcox@14082 98 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/lisp/term && \
domcox@3938 99 for file in $LINUX_TERM; do
pascal@14999 100 cp -a $install/usr/share/$PACKAGE/$VERSION/lisp/term/$file \
domcox@14082 101 $fs/usr/share/$PACKAGE/$VERSION/lisp/term
domcox@3938 102 done
domcox@3938 103 status
domcox@3938 104 # leim files
domcox@3938 105 echo -n "Copying leim files"
domcox@14082 106 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/leim && \
pascal@14999 107 cp -a $install/usr/share/$PACKAGE/$VERSION/leim/*.el \
domcox@14082 108 $fs/usr/share/$PACKAGE/$VERSION/leim
domcox@3938 109 status
domcox@3938 110 LEIM_FILES="leim/ja-dic leim/quail"
domcox@3938 111 for dir in $LEIM_FILES; do
domcox@3938 112 echo -n "Copying $dir files"
domcox@14082 113 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \
pascal@14999 114 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \
domcox@14082 115 $fs/usr/share/$PACKAGE/$VERSION/$dir && \
domcox@3938 116 for file in COPYING README TODO; do
pascal@14999 117 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
pascal@14999 118 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
domcox@14082 119 $fs/usr/share/$PACKAGE/$VERSION/$dir
domcox@3938 120 fi
domcox@3938 121 done
domcox@3938 122 status
domcox@3938 123 done
domcox@1046 124 # Conf files
domcox@3938 125 echo -n "Copying conf files"
domcox@14190 126 CONF_FILES="ETAGS.README charsets e enriched.doc edt-user.el forms \
domcox@14190 127 emacs-buffer.gdb gnus nxml org schema srecode ps-prin0.ps \
domcox@14082 128 ps-prin1.ps ses-example.ses spook.lines themes yow.lines"
domcox@14082 129 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc && \
domcox@3938 130 for file in $CONF_FILES; do
pascal@14999 131 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \
domcox@14082 132 $fs/usr/share/$PACKAGE/$VERSION/etc
domcox@1046 133 done
domcox@3938 134 status
domcox@3938 135 # Pixmaps files
domcox@14082 136 XPM_DIR="images images/custom images/ezimage images/gnus images/gud \
domcox@14082 137 images/icons/allout-widgets/*-bg images/low-color images/mail images/mpc \
domcox@14082 138 images/newsticker images/smilies images/smilies/grayscale \
domcox@14082 139 images/smilies/medium images/tree-widget/default images/tree-widget/folder"
domcox@3938 140 for dir in $XPM_DIR; do
domcox@3939 141 echo -n "Copying $dir xpm files"
domcox@14082 142 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
pascal@14999 143 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.xpm \
domcox@14082 144 $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
domcox@3938 145 for file in COPYING README TODO; do
pascal@14999 146 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then
pascal@14999 147 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \
domcox@14082 148 $fs/usr/share/$PACKAGE/$VERSION/$dir
domcox@3938 149 fi
domcox@3938 150 done
domcox@3938 151 status
domcox@3938 152 done
pascal@19731 153 PNG_DIR="images images/gnus images/icons/allout-widgets/dark-bg \
pascal@19731 154 images/icons/allout-widgets/light-bg images/tree-widget/default \
pascal@19731 155 images/tree-widget/folder"
domcox@3939 156 for dir in $PNG_DIR; do
domcox@3939 157 echo -n "Copying $dir png files"
pascal@19731 158 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir 2> /dev/null || true
pascal@14999 159 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.png \
domcox@14082 160 $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \
domcox@3939 161 status
domcox@3939 162 done
domcox@3938 163 # Licence
domcox@14082 164 GNU_FILES="AUTHORS CENSORSHIP COPYING DISTRIB FTP GNU ORDERS README \
domcox@14082 165 SERVICE copying.paper"
domcox@3938 166 echo -n "Copying License files"
domcox@3938 167 for file in $GNU_FILES; do
pascal@14999 168 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \
domcox@14082 169 $fs/usr/share/$PACKAGE/$VERSION/etc
domcox@3938 170 done
domcox@3938 171 status
domcox@1046 172 # Install specific site file
domcox@3938 173 echo -n "Installing specific SliTaz file"
pascal@14999 174 cp -a $install/usr/share/$PACKAGE/$VERSION/site-lisp \
llevrel@18794 175 $fs/usr/share/$PACKAGE && \
domcox@3938 176 mkdir -p $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \
llevrel@18794 177 cp -a $stuff/default.el $stuff/site-start.el \
llevrel@18794 178 $fs/usr/share/$PACKAGE/site-lisp && \
domcox@14082 179 cp -a $stuff/90-slitaz.el \
domcox@14082 180 $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \
domcox@3938 181 status
domcox@3938 182 # Install desktop files for emacs
domcox@3938 183 echo -n "Installing emacs menu"
domcox@3938 184 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications && \
pascal@14999 185 cp -a $install/usr/share/applications $fs/usr/share/ && \
pascal@14999 186 cp -a $install/usr/share/icons/hicolor/32x32/apps/emacs.png \
domcox@14082 187 $fs/usr/share/pixmaps
domcox@3938 188 status
domcox@14082 189 # Use default site-lisp
domcox@14082 190 cd $fs/usr/share/$PACKAGE/$VERSION
domcox@1046 191 ln -s ../site-lisp site-lisp
domcox@1046 192 }