wok-next annotate opensp/receipt @ rev 20778
git update: 2.16.2 (Feb-2018) -> 2.17.1 (May-2018)
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Fri Jun 08 09:36:49 2018 +0000 (2018-06-08) |
parents | 0e7893ac206d |
children | d5aab818505e |
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 |
al@20443 | 17 compile_rules() { |
al@20443 | 18 sed -i 's/32,/253,/' lib/Syntax.cxx |
al@19790 | 19 sed -i 's/LITLEN 240 /LITLEN 8092/' \ |
al@20443 | 20 unicode/gensyntax.pl unicode/unicode.syn |
al@19790 | 21 |
al@19790 | 22 ./configure \ |
al@19790 | 23 --disable-static \ |
al@19790 | 24 --disable-doc-build \ |
al@19790 | 25 --enable-default-catalog=/etc/sgml/catalog \ |
al@19790 | 26 --enable-http \ |
al@19790 | 27 --enable-default-search-path=/usr/share/sgml \ |
gokhlayeh@11573 | 28 $CONFIGURE_ARGS && |
al@20602 | 29 fix libtool && |
al@19790 | 30 make pkgdatadir=/usr/share/sgml/OpenSP-$VERSION && |
al@19790 | 31 make pkgdatadir=/usr/share/sgml/OpenSP-$VERSION \ |
al@19790 | 32 docdir=/usr/share/doc/OpenSP-$VERSION \ |
al@20443 | 33 install || return 1 |
al@19790 | 34 |
al@19790 | 35 for i in nsgmls sgmlnorm spam spcat spent sx; do |
al@19790 | 36 ln -vsf o$i $install/usr/bin/$i |
al@20443 | 37 done |
al@20443 | 38 ln -vsf osx $install/usr/bin/sgml2xml |
al@19790 | 39 ln -vsf libosp.so $install/usr/lib/libsp.so |
erjo@8463 | 40 } |
erjo@8463 | 41 |
al@20443 | 42 genpkg_rules() { |
al@19790 | 43 case $PACKAGE in |
al@19790 | 44 opensp) copy @std;; |
al@19790 | 45 *-dev) copy @dev;; |
al@19790 | 46 esac |
erjo@8463 | 47 } |