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