wok-next annotate opensp/receipt @ rev 20297

Up spl (0.7.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 09 21:37:23 2017 +0100 (2017-11-09)
parents 23c3aed67cd9
children 0e7893ac206d
rev   line source
al@19790 1 # SliTaz package receipt v2.
erjo@8463 2
erjo@8463 3 PACKAGE="opensp"
erjo@8463 4 VERSION="1.5.2"
erjo@8463 5 CATEGORY="misc"
erjo@8463 6 SHORT_DESC="An implementation of DSSSL, a style language to format SGML or XML documents"
erjo@8463 7 MAINTAINER="remy.carel@free.fr"
pascal@15601 8 LICENSE="MIT"
al@19790 9 WEB_SITE="http://openjade.sourceforge.net/"
erjo@8463 10
al@19790 11 TARBALL="OpenSP-$VERSION.tar.gz"
al@19790 12 WGET_URL="$SF_MIRROR/openjade/$TARBALL"
al@19790 13
al@19790 14 BUILD_DEPENDS="perl gfortran gettext docbook-sgml"
al@19790 15 SPLIT="opensp-dev"
pascal@15601 16
erjo@8463 17 # Rules to configure and make the package.
erjo@8463 18 compile_rules()
erjo@8463 19 {
al@19790 20 sed -i 's/32,/253,/' lib/Syntax.cxx &&
al@19790 21 sed -i 's/LITLEN 240 /LITLEN 8092/' \
al@19790 22 unicode/gensyntax.pl unicode/unicode.syn &&
al@19790 23
al@19790 24 ./configure \
al@19790 25 --disable-static \
al@19790 26 --disable-doc-build \
al@19790 27 --enable-default-catalog=/etc/sgml/catalog \
al@19790 28 --enable-http \
al@19790 29 --enable-default-search-path=/usr/share/sgml \
gokhlayeh@11573 30 $CONFIGURE_ARGS &&
al@19790 31
al@19790 32 make pkgdatadir=/usr/share/sgml/OpenSP-$VERSION &&
al@19790 33 make pkgdatadir=/usr/share/sgml/OpenSP-$VERSION \
al@19790 34 docdir=/usr/share/doc/OpenSP-$VERSION \
al@19790 35 install &&
al@19790 36
al@19790 37 for i in nsgmls sgmlnorm spam spcat spent sx; do
al@19790 38 ln -vsf o$i $install/usr/bin/$i
al@19790 39 done &&
al@19790 40 ln -vsf osx $install/usr/bin/sgml2xml &&
al@19790 41 ln -vsf libosp.so $install/usr/lib/libsp.so
erjo@8463 42 }
erjo@8463 43
erjo@8463 44 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@8463 45 genpkg_rules()
erjo@8463 46 {
al@19790 47 case $PACKAGE in
al@19790 48 opensp) copy @std;;
al@19790 49 *-dev) copy @dev;;
al@19790 50 esac
erjo@8463 51 }