wok-next diff opensp/receipt @ rev 19861
Up tazlito
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Sep 08 14:25:24 2017 +0300 (2017-09-08) |
parents | 23c3aed67cd9 |
children | 0e7893ac206d |
line diff
1.1 --- a/opensp/receipt Thu Dec 05 20:23:08 2013 +0000 1.2 +++ b/opensp/receipt Fri Sep 08 14:25:24 2017 +0300 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="opensp" 1.8 VERSION="1.5.2" 1.9 @@ -6,31 +6,46 @@ 1.10 SHORT_DESC="An implementation of DSSSL, a style language to format SGML or XML documents" 1.11 MAINTAINER="remy.carel@free.fr" 1.12 LICENSE="MIT" 1.13 -SOURCE="OpenSP" 1.14 -TARBALL="$SOURCE-$VERSION.tar.gz" 1.15 -WEB_SITE="http://openjade.sourceforge.net" 1.16 -WGET_URL="$SF_MIRROR/openjade/opensp/$VERSION/$TARBALL" 1.17 +WEB_SITE="http://openjade.sourceforge.net/" 1.18 1.19 -DEPENDS="" 1.20 -BUILD_DEPENDS="make gcc perl" 1.21 +TARBALL="OpenSP-$VERSION.tar.gz" 1.22 +WGET_URL="$SF_MIRROR/openjade/$TARBALL" 1.23 + 1.24 +BUILD_DEPENDS="perl gfortran gettext docbook-sgml" 1.25 +SPLIT="opensp-dev" 1.26 1.27 # Rules to configure and make the package. 1.28 compile_rules() 1.29 { 1.30 - cd $src 1.31 - ./configure --prefix=/usr --disable-doc-build --disable-dtddecl \ 1.32 + sed -i 's/32,/253,/' lib/Syntax.cxx && 1.33 + sed -i 's/LITLEN 240 /LITLEN 8092/' \ 1.34 + unicode/gensyntax.pl unicode/unicode.syn && 1.35 + 1.36 + ./configure \ 1.37 + --disable-static \ 1.38 + --disable-doc-build \ 1.39 + --enable-default-catalog=/etc/sgml/catalog \ 1.40 + --enable-http \ 1.41 + --enable-default-search-path=/usr/share/sgml \ 1.42 $CONFIGURE_ARGS && 1.43 - make && 1.44 - make DESTDIR=$DESTDIR install 1.45 + 1.46 + make pkgdatadir=/usr/share/sgml/OpenSP-$VERSION && 1.47 + make pkgdatadir=/usr/share/sgml/OpenSP-$VERSION \ 1.48 + docdir=/usr/share/doc/OpenSP-$VERSION \ 1.49 + install && 1.50 + 1.51 + for i in nsgmls sgmlnorm spam spcat spent sx; do 1.52 + ln -vsf o$i $install/usr/bin/$i 1.53 + done && 1.54 + ln -vsf osx $install/usr/bin/sgml2xml && 1.55 + ln -vsf libosp.so $install/usr/lib/libsp.so 1.56 } 1.57 1.58 # Rules to gen a SliTaz package suitable for Tazpkg. 1.59 genpkg_rules() 1.60 { 1.61 - mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/share 1.62 - 1.63 - cp -a $install/usr/bin $fs/usr 1.64 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.65 - cp -a $install/usr/share/OpenSP $fs/usr/share 1.66 + case $PACKAGE in 1.67 + opensp) copy @std;; 1.68 + *-dev) copy @dev;; 1.69 + esac 1.70 } 1.71 -