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