wok-next view openjade/receipt @ rev 20730
glib: up (2.56.1) with static libs and Python2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 15:17:41 2018 +0300 (2018-05-29) |
parents | 5baa3b6a24e7 |
children |
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"
16 compile_rules() {
17 sed -i -e '/getopts/{N;s#&G#g#;s#do .getopts.pl.;##;}' \
18 -e '/use POSIX/ause Getopt::Std;' msggen.pl
20 export CXXFLAGS="$CXXFLAGS -fno-lifetime-dse"
22 ./configure \
23 --enable-http \
24 --disable-static \
25 --enable-default-catalog=/etc/sgml/catalog \
26 --enable-default-search-path=/usr/share/sgml \
27 --datadir=/usr/share/sgml/openjade-$VERSION \
28 $CONFIGURE_ARGS &&
29 fix libtool &&
30 make &&
31 make DESTDIR="$install" install install-man || return 1
33 ln -vsf openjade $install/usr/bin/jade
34 ln -vsf libogrove.so $install/usr/lib/libgrove.so
35 ln -vsf libospgrove.so $install/usr/lib/libspgrove.so
36 ln -vsf libostyle.so $install/usr/lib/libstyle.so
38 install -v -m644 dsssl/catalog dsssl/*.dtd dsssl/*.dsl dsssl/*.sgm \
39 $install/usr/share/sgml/openjade-$VERSION
41 echo 'SYSTEM "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" "/usr/share/xml/docbook/xml-dtd-4.5/docbookx.dtd"' >> \
42 $install/usr/share/sgml/openjade-$VERSION/catalog
43 }
45 genpkg_rules() {
46 copy @std
47 DEPENDS="sgml-common opensp"
48 }
50 pre_remove() {
51 local p1="/etc/sgml/openjade-$VERSION.cat"
52 local p2="/etc/sgml/sgml-docbook.cat"
53 local p3="/usr/share/sgml/openjade-$VERSION/catalog"
55 touch "$1/etc/sgml/catalog"
56 chroot "$1/" install-catalog --remove $p1 $p3 >/dev/null
57 chroot "$1/" install-catalog --remove $p2 $p1 >/dev/null
58 }
60 post_install() {
61 local p1="/etc/sgml/openjade-$VERSION.cat"
62 local p2="/etc/sgml/sgml-docbook.cat"
63 local p3="/usr/share/sgml/openjade-$VERSION/catalog"
65 # Remove the catalog items prior to upgrading
66 [ -e "$1$p1" -a "$1$p2" ] && pre_remove
68 touch "$1/etc/sgml/catalog" "$1$p1" "$1$p2"
69 chroot "$1/" install-catalog --add $p1 $p3 >/dev/null
70 chroot "$1/" install-catalog --add $p2 $p1 >/dev/null
71 }