wok-next annotate openjade/receipt @ rev 20533
cairo-clock, grub4dos: fix CFLAGS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 27 12:50:45 2018 +0200 (2018-03-27) |
parents | b938e6730252 |
children | 5baa3b6a24e7 |
rev | line source |
---|---|
al@19790 | 1 # SliTaz package receipt v2. |
al@19790 | 2 |
al@19790 | 3 PACKAGE="openjade" |
al@19790 | 4 VERSION="1.3.2" |
al@19790 | 5 CATEGORY="development" |
al@19790 | 6 SHORT_DESC="Implementation of the DSSSL language" |
al@19790 | 7 MAINTAINER="al.bobylev@gmail.com" |
al@19790 | 8 LICENSE="custom" |
al@19790 | 9 WEB_SITE="http://openjade.sourceforge.net/" |
al@19790 | 10 |
al@19790 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@19790 | 12 WGET_URL="$SF_MIRROR/openjade/$TARBALL" |
al@19790 | 13 |
al@19790 | 14 BUILD_DEPENDS="patch opensp-dev automake texinfo perl" |
al@19790 | 15 SPLIT="openjade-dev" |
al@19790 | 16 |
al@20443 | 17 compile_rules() { |
al@19790 | 18 sed -i -e '/getopts/{N;s#&G#g#;s#do .getopts.pl.;##;}' \ |
al@19790 | 19 -e '/use POSIX/ause Getopt::Std;' msggen.pl |
al@19790 | 20 |
al@19790 | 21 export CXXFLAGS="$CXXFLAGS -fno-lifetime-dse" && |
al@19790 | 22 ./configure \ |
al@19790 | 23 --mandir=/usr/share/man \ |
al@19790 | 24 --enable-http \ |
al@19790 | 25 --disable-static \ |
al@19790 | 26 --enable-default-catalog=/etc/sgml/catalog \ |
al@19790 | 27 --enable-default-search-path=/usr/share/sgml \ |
al@19790 | 28 --datadir=/usr/share/sgml/openjade-$VERSION \ |
al@19790 | 29 $CONFIGURE_ARGS && |
al@19790 | 30 make && make DESTDIR="$install" install install-man && |
al@19790 | 31 |
al@19790 | 32 ln -vsf openjade $install/usr/bin/jade && |
al@19790 | 33 ln -vsf libogrove.so $install/usr/lib/libgrove.so && |
al@19790 | 34 ln -vsf libospgrove.so $install/usr/lib/libspgrove.so && |
al@19790 | 35 ln -vsf libostyle.so $install/usr/lib/libstyle.so && |
al@19790 | 36 |
al@19790 | 37 install -v -m644 dsssl/catalog dsssl/*.dtd dsssl/*.dsl dsssl/*.sgm \ |
al@19790 | 38 $install/usr/share/sgml/openjade-$VERSION && |
al@19790 | 39 |
al@19790 | 40 echo 'SYSTEM "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" "/usr/share/xml/docbook/xml-dtd-4.5/docbookx.dtd"' >> \ |
al@19790 | 41 $install/usr/share/sgml/openjade-$VERSION/catalog |
al@19790 | 42 } |
al@19790 | 43 |
al@20443 | 44 genpkg_rules() { |
al@19790 | 45 case $PACKAGE in |
al@19790 | 46 openjade) copy @std; DEPENDS="sgml-common opensp";; |
al@19790 | 47 *-dev) copy @dev;; |
al@19790 | 48 esac |
al@19790 | 49 } |
al@19790 | 50 |
al@19790 | 51 pre_remove() { |
al@19790 | 52 local p1="/etc/sgml/openjade-$VERSION.cat" |
al@19790 | 53 local p2="/etc/sgml/sgml-docbook.cat" |
al@19790 | 54 local p3="/usr/share/sgml/openjade-$VERSION/catalog" |
al@19790 | 55 |
al@19790 | 56 touch "$1/etc/sgml/catalog" |
al@19790 | 57 chroot "$1/" install-catalog --remove $p1 $p3 >/dev/null |
al@19790 | 58 chroot "$1/" install-catalog --remove $p2 $p1 >/dev/null |
al@19790 | 59 } |
al@19790 | 60 |
al@19790 | 61 post_install() { |
al@19790 | 62 local p1="/etc/sgml/openjade-$VERSION.cat" |
al@19790 | 63 local p2="/etc/sgml/sgml-docbook.cat" |
al@19790 | 64 local p3="/usr/share/sgml/openjade-$VERSION/catalog" |
al@19790 | 65 |
al@19790 | 66 # Remove the catalog items prior to upgrading |
al@19790 | 67 [ -e "$1$p1" -a "$1$p2" ] && pre_remove |
al@19790 | 68 |
al@19790 | 69 touch "$1/etc/sgml/catalog" "$1$p1" "$1$p2" |
al@19790 | 70 chroot "$1/" install-catalog --add $p1 $p3 >/dev/null |
al@19790 | 71 chroot "$1/" install-catalog --add $p2 $p1 >/dev/null |
al@19790 | 72 } |