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