wok-6.x annotate emacs/receipt @ rev 16067
ARM: xorg-server-light cross compile and add more needed packages
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Mar 12 20:54:03 2014 +0100 (2014-03-12) |
parents | fa7280bd03b2 |
children | dfef8de3d270 |
rev | line source |
---|---|
domcox@1046 | 1 # SliTaz package receipt. |
domcox@1046 | 2 |
domcox@1046 | 3 PACKAGE="emacs" |
domcox@14190 | 4 VERSION="24.3" |
domcox@1046 | 5 CATEGORY="development" |
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 \ |
domcox@14082 | 16 libgio libpng librsvg util-linux-uuid ncurses pango tiff xorg-server zlib \ |
domcox@14082 | 17 librsvg libgsf" |
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 \ |
domcox@14082 | 21 xorg-dev-proto" |
domcox@1046 | 22 |
domcox@1046 | 23 # Rules to configure and make the package. |
domcox@1046 | 24 compile_rules() |
domcox@1046 | 25 { |
domcox@1046 | 26 cd $src |
domcox@1046 | 27 # Gzip workaround in busybox |
domcox@1900 | 28 sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' Makefile.in |
domcox@1900 | 29 sed -i 's/${GZIP_PROG} -9n/${GZIP_PROG}/g' leim/Makefile.in |
pascal@5582 | 30 # Configure (with GCC 4.5.0 workaround) |
pascal@5582 | 31 CFLAGS="-g -O2 -fno-optimize-sibling-calls" ./configure $CONFIGURE_ARGS \ |
slaxemulator@11722 | 32 --infodir=/usr/share/info \ |
domcox@3938 | 33 --mandir=/usr/share/man \ |
domcox@3938 | 34 --without-makeinfo \ |
domcox@7830 | 35 --without-gconf \ |
domcox@3938 | 36 --with-sound \ |
domcox@3938 | 37 --with-x \ |
domcox@3938 | 38 --with-toolkit-scroll-bars \ |
domcox@3938 | 39 --with-xpm=yes \ |
domcox@3938 | 40 --libexecdir=/usr/lib \ |
domcox@3938 | 41 --localstatedir=/var/lib \ |
domcox@3938 | 42 --sharedstatedir=/var/lib \ |
domcox@3938 | 43 --prefix=/usr && \ |
gokhlayeh@11574 | 44 make $MAKEFLAGS && \ |
slaxemulator@11722 | 45 make DESTDIR=$DESTDIR install |
domcox@1046 | 46 } |
domcox@1046 | 47 |
domcox@1046 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
domcox@1046 | 49 genpkg_rules() |
domcox@1046 | 50 { |
domcox@1046 | 51 # Binary files |
domcox@14082 | 52 BIN_FILES="ctags ebrowse emacs-$VERSION emacsclient etags grep-changelog" |
domcox@3938 | 53 echo -n "Copying emacs binary files" |
domcox@3938 | 54 mkdir -p $fs/usr/bin && \ |
domcox@3938 | 55 for file in $BIN_FILES; do |
pascal@14999 | 56 cp -a $install/usr/bin/$file $fs/usr/bin |
domcox@3938 | 57 done |
domcox@3938 | 58 status |
domcox@3938 | 59 # Lib files |
domcox@3938 | 60 echo -n "Copying emacs lib files" |
pascal@14999 | 61 cp -a $install/usr/lib $fs/usr |
domcox@3938 | 62 status |
domcox@14082 | 63 strip -s $fs/usr/lib/$PACKAGE/$VERSION/i486-pc-linux-gnu/* 2> /dev/null |
domcox@3938 | 64 # lisp files |
domcox@14082 | 65 LISP_DIR="lisp lisp/calc lisp/calendar lisp/cedet lisp/cedet/ede \ |
domcox@14082 | 66 lisp/cedet/semantic lisp/cedet/semantic/analyze lisp/cedet/semantic/bovine \ |
domcox@14082 | 67 lisp/cedet/semantic/decorate lisp/cedet/semantic/symref lisp/cedet/srecode \ |
domcox@14082 | 68 lisp/cedet/semantic/wisent lisp/emacs-lisp lisp/emulation lisp/erc lisp/eshell \ |
domcox@14082 | 69 lisp/gnus lisp/international lisp/language lisp/mail lisp/mh-e lisp/net \ |
domcox@14082 | 70 lisp/nxml lisp/obsolete lisp/org lisp/play lisp/progmodes lisp/textmodes \ |
domcox@14082 | 71 lisp/url lisp/vc" |
domcox@3938 | 72 for dir in $LISP_DIR; do |
domcox@3938 | 73 echo -n "Copying $dir files" |
domcox@14082 | 74 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \ |
pascal@14999 | 75 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \ |
domcox@14082 | 76 $fs/usr/share/$PACKAGE/$VERSION/$dir |
pascal@14999 | 77 if [ $(ls $install/usr/share/$PACKAGE/$VERSION/$dir/ | \ |
domcox@14082 | 78 grep -c \.el$) -gt 0 ]; then |
pascal@14999 | 79 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.el \ |
domcox@14082 | 80 $fs/usr/share/$PACKAGE/$VERSION/$dir |
domcox@3938 | 81 fi |
domcox@3938 | 82 for file in COPYING README TODO; do |
pascal@14999 | 83 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then |
pascal@14999 | 84 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \ |
domcox@14082 | 85 $fs/usr/share/$PACKAGE/$VERSION/$dir |
domcox@3938 | 86 fi |
domcox@3938 | 87 done |
domcox@3938 | 88 status |
domcox@3938 | 89 done |
domcox@3938 | 90 # Use linux term only |
domcox@14082 | 91 LINUX_TERM="README linux.e* rxvt.elc tty-colors.elc vt100.elc xterm.elc" |
domcox@3938 | 92 echo -n "Copying lisp/term files (linux only)" |
domcox@14082 | 93 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/lisp/term && \ |
domcox@3938 | 94 for file in $LINUX_TERM; do |
pascal@14999 | 95 cp -a $install/usr/share/$PACKAGE/$VERSION/lisp/term/$file \ |
domcox@14082 | 96 $fs/usr/share/$PACKAGE/$VERSION/lisp/term |
domcox@3938 | 97 done |
domcox@3938 | 98 status |
domcox@3938 | 99 # leim files |
domcox@3938 | 100 echo -n "Copying leim files" |
domcox@14082 | 101 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/leim && \ |
pascal@14999 | 102 cp -a $install/usr/share/$PACKAGE/$VERSION/leim/*.el \ |
domcox@14082 | 103 $fs/usr/share/$PACKAGE/$VERSION/leim |
domcox@3938 | 104 status |
domcox@3938 | 105 LEIM_FILES="leim/ja-dic leim/quail" |
domcox@3938 | 106 for dir in $LEIM_FILES; do |
domcox@3938 | 107 echo -n "Copying $dir files" |
domcox@14082 | 108 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/$dir && \ |
pascal@14999 | 109 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/*.elc \ |
domcox@14082 | 110 $fs/usr/share/$PACKAGE/$VERSION/$dir && \ |
domcox@3938 | 111 for file in COPYING README TODO; do |
pascal@14999 | 112 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then |
pascal@14999 | 113 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \ |
domcox@14082 | 114 $fs/usr/share/$PACKAGE/$VERSION/$dir |
domcox@3938 | 115 fi |
domcox@3938 | 116 done |
domcox@3938 | 117 status |
domcox@3938 | 118 done |
domcox@1046 | 119 # Conf files |
domcox@3938 | 120 echo -n "Copying conf files" |
domcox@14190 | 121 CONF_FILES="ETAGS.README charsets e enriched.doc edt-user.el forms \ |
domcox@14190 | 122 emacs-buffer.gdb gnus nxml org schema srecode ps-prin0.ps \ |
domcox@14082 | 123 ps-prin1.ps ses-example.ses spook.lines themes yow.lines" |
domcox@14082 | 124 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc && \ |
domcox@3938 | 125 for file in $CONF_FILES; do |
pascal@14999 | 126 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \ |
domcox@14082 | 127 $fs/usr/share/$PACKAGE/$VERSION/etc |
domcox@1046 | 128 done |
domcox@3938 | 129 status |
domcox@3938 | 130 # Pixmaps files |
domcox@14082 | 131 XPM_DIR="images images/custom images/ezimage images/gnus images/gud \ |
domcox@14082 | 132 images/icons/allout-widgets/*-bg images/low-color images/mail images/mpc \ |
domcox@14082 | 133 images/newsticker images/smilies images/smilies/grayscale \ |
domcox@14082 | 134 images/smilies/medium images/tree-widget/default images/tree-widget/folder" |
domcox@3938 | 135 for dir in $XPM_DIR; do |
domcox@3939 | 136 echo -n "Copying $dir xpm files" |
domcox@14082 | 137 mkdir -p $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \ |
pascal@14999 | 138 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.xpm \ |
domcox@14082 | 139 $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \ |
domcox@3938 | 140 for file in COPYING README TODO; do |
pascal@14999 | 141 if [ -e $install/usr/share/$PACKAGE/$VERSION/$dir/$file ]; then |
pascal@14999 | 142 cp -a $install/usr/share/$PACKAGE/$VERSION/$dir/$file \ |
domcox@14082 | 143 $fs/usr/share/$PACKAGE/$VERSION/$dir |
domcox@3938 | 144 fi |
domcox@3938 | 145 done |
domcox@3938 | 146 status |
domcox@3938 | 147 done |
domcox@14082 | 148 PNG_DIR="images images/gnus images/icons/allout-widgets/*-bg \ |
domcox@14082 | 149 images/tree-widget/default images/tree-widget/folder" |
domcox@3939 | 150 for dir in $PNG_DIR; do |
domcox@3939 | 151 echo -n "Copying $dir png files" |
pascal@14999 | 152 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$dir/*.png \ |
domcox@14082 | 153 $fs/usr/share/$PACKAGE/$VERSION/etc/$dir && \ |
domcox@3939 | 154 status |
domcox@3939 | 155 done |
domcox@3938 | 156 # Licence |
domcox@14082 | 157 GNU_FILES="AUTHORS CENSORSHIP COPYING DISTRIB FTP GNU ORDERS README \ |
domcox@14082 | 158 SERVICE copying.paper" |
domcox@3938 | 159 echo -n "Copying License files" |
domcox@3938 | 160 for file in $GNU_FILES; do |
pascal@14999 | 161 cp -a $install/usr/share/$PACKAGE/$VERSION/etc/$file \ |
domcox@14082 | 162 $fs/usr/share/$PACKAGE/$VERSION/etc |
domcox@3938 | 163 done |
domcox@3938 | 164 status |
domcox@1046 | 165 # Install specific site file |
domcox@3938 | 166 echo -n "Installing specific SliTaz file" |
pascal@14999 | 167 cp -a $install/usr/share/$PACKAGE/$VERSION/site-lisp \ |
domcox@14082 | 168 $fs/usr/share/$PACKAGE && \ |
domcox@3938 | 169 mkdir -p $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \ |
slaxemulator@11722 | 170 cp -a $stuff/default.el $fs/usr/share/$PACKAGE/site-lisp && \ |
domcox@14082 | 171 cp -a $stuff/90-slitaz.el \ |
domcox@14082 | 172 $fs/usr/share/$PACKAGE/site-lisp/site-start.d && \ |
domcox@3938 | 173 status |
domcox@3938 | 174 # Install desktop files for emacs |
domcox@3938 | 175 echo -n "Installing emacs menu" |
domcox@3938 | 176 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications && \ |
pascal@14999 | 177 cp -a $install/usr/share/applications $fs/usr/share/ && \ |
pascal@14999 | 178 cp -a $install/usr/share/icons/hicolor/32x32/apps/emacs.png \ |
domcox@14082 | 179 $fs/usr/share/pixmaps |
domcox@3938 | 180 status |
domcox@14082 | 181 # Use default site-lisp |
domcox@14082 | 182 cd $fs/usr/share/$PACKAGE/$VERSION |
domcox@1046 | 183 ln -s ../site-lisp site-lisp |
domcox@1046 | 184 } |
domcox@1380 | 185 |
domcox@3939 | 186 post_install() |
domcox@3939 | 187 { |
domcox@14082 | 188 cd /usr/share/$PACKAGE/$VERSION/site-lisp |
domcox@3939 | 189 cat <<-EOF >site-start.el |
domcox@3939 | 190 ;; site-start.el for SliTaz -*- no-byte-compile: t -*- |
domcox@3939 | 191 ;; |
domcox@3939 | 192 ;; (C) GNU gpl v3 - SliTaz GNU/Linux 2009. |
domcox@3939 | 193 ;; |
domcox@3939 | 194 ;; This default site startup file for Emacs was created by tazpkg |
domcox@3939 | 195 ;; reconfigure emacs. You may modify this file, replace it by your |
domcox@3939 | 196 ;; own site initialisation, or even remove it completely. |
domcox@3939 | 197 ;; |
domcox@3939 | 198 EOF |
domcox@14082 | 199 START_FILES="$(ls site-start.d/ | sort)" |
domcox@3939 | 200 for file in $START_FILES; do |
domcox@3939 | 201 cat site-start.d/$file >> site-start.el |
domcox@3939 | 202 done |
domcox@14082 | 203 # linking /usr/bin/emacs to new version |
domcox@14082 | 204 [ -h /usr/bin/emacs ] && rm -f /usr/bin/emacs |
domcox@14082 | 205 ln -s /usr/bin/emacs-$VERSION /usr/bin/emacs |
domcox@3939 | 206 } |
domcox@3939 | 207 |
domcox@1380 | 208 post_remove() |
domcox@1380 | 209 { |
domcox@3938 | 210 rm -rf /usr/share/emacs |
domcox@3938 | 211 rm -rf /usr/lib/emacs |
domcox@14082 | 212 rm -f /usr/bin/emacs |
domcox@1900 | 213 } |