wok-next view openjade/receipt @ rev 20346

libav, lostirc: tiny patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 18 14:09:19 2017 +0100 (2017-11-18)
parents
children 0e7893ac206d
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 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i -e '/getopts/{N;s#&G#g#;s#do .getopts.pl.;##;}' \
21 -e '/use POSIX/ause Getopt::Std;' msggen.pl
23 export CXXFLAGS="$CXXFLAGS -fno-lifetime-dse" &&
24 ./configure \
25 --mandir=/usr/share/man \
26 --enable-http \
27 --disable-static \
28 --enable-default-catalog=/etc/sgml/catalog \
29 --enable-default-search-path=/usr/share/sgml \
30 --datadir=/usr/share/sgml/openjade-$VERSION \
31 $CONFIGURE_ARGS &&
32 make && make DESTDIR="$install" install install-man &&
34 ln -vsf openjade $install/usr/bin/jade &&
35 ln -vsf libogrove.so $install/usr/lib/libgrove.so &&
36 ln -vsf libospgrove.so $install/usr/lib/libspgrove.so &&
37 ln -vsf libostyle.so $install/usr/lib/libstyle.so &&
39 install -v -m644 dsssl/catalog dsssl/*.dtd dsssl/*.dsl dsssl/*.sgm \
40 $install/usr/share/sgml/openjade-$VERSION &&
42 echo 'SYSTEM "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" "/usr/share/xml/docbook/xml-dtd-4.5/docbookx.dtd"' >> \
43 $install/usr/share/sgml/openjade-$VERSION/catalog
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 case $PACKAGE in
50 openjade) copy @std; DEPENDS="sgml-common opensp";;
51 *-dev) copy @dev;;
52 esac
53 }
55 pre_remove() {
56 local p1="/etc/sgml/openjade-$VERSION.cat"
57 local p2="/etc/sgml/sgml-docbook.cat"
58 local p3="/usr/share/sgml/openjade-$VERSION/catalog"
60 touch "$1/etc/sgml/catalog"
61 chroot "$1/" install-catalog --remove $p1 $p3 >/dev/null
62 chroot "$1/" install-catalog --remove $p2 $p1 >/dev/null
63 }
65 post_install() {
66 local p1="/etc/sgml/openjade-$VERSION.cat"
67 local p2="/etc/sgml/sgml-docbook.cat"
68 local p3="/usr/share/sgml/openjade-$VERSION/catalog"
70 # Remove the catalog items prior to upgrading
71 [ -e "$1$p1" -a "$1$p2" ] && pre_remove
73 touch "$1/etc/sgml/catalog" "$1$p1" "$1$p2"
74 chroot "$1/" install-catalog --add $p1 $p3 >/dev/null
75 chroot "$1/" install-catalog --add $p2 $p1 >/dev/null
76 }