wok-next rev 20144

mdocml: receipt v2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 01 11:25:34 2017 +0100 (2017-11-01)
parents f971bef7006e
children 4673755e4f14
files mdocml-cgi/receipt mdocml-dev/receipt mdocml-extra/receipt mdocml-man/receipt mdocml/receipt
line diff
     1.1 --- a/mdocml-cgi/receipt	Wed Nov 01 11:18:25 2017 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,18 +0,0 @@
     1.4 -# SliTaz package receipt.
     1.5 -
     1.6 -PACKAGE="mdocml-cgi"
     1.7 -VERSION="1.12.1"
     1.8 -CATEGORY="development"
     1.9 -SHORT_DESC="CGI files for mdocml"
    1.10 -MAINTAINER="al.bobylev@gmail.com"
    1.11 -LICENSE="ISC"
    1.12 -WEB_SITE="http://mdocml.bsd.lv/"
    1.13 -WANTED="mdocml"
    1.14 -DEPENDS="glibc-base libdb"
    1.15 -
    1.16 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.17 -genpkg_rules()
    1.18 -{
    1.19 -	mkdir -p $fs/var
    1.20 -	cp -a $install/var/www $fs/var
    1.21 -}
     2.1 --- a/mdocml-dev/receipt	Wed Nov 01 11:18:25 2017 +0100
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,19 +0,0 @@
     2.4 -# SliTaz package receipt.
     2.5 -
     2.6 -PACKAGE="mdocml-dev"
     2.7 -VERSION="1.12.1"
     2.8 -CATEGORY="development"
     2.9 -SHORT_DESC="Devel files for mdocml"
    2.10 -MAINTAINER="al.bobylev@gmail.com"
    2.11 -LICENSE="ISC"
    2.12 -WEB_SITE="http://mdocml.bsd.lv/"
    2.13 -WANTED="mdocml"
    2.14 -DEPENDS="mdocml"
    2.15 -
    2.16 -# Rules to gen a SliTaz package suitable for Tazpkg.
    2.17 -genpkg_rules()
    2.18 -{
    2.19 -	mkdir -p $fs/usr
    2.20 -	cp -a $install/usr/include $fs/usr
    2.21 -	cp -a $install/usr/lib $fs/usr
    2.22 -}
     3.1 --- a/mdocml-extra/receipt	Wed Nov 01 11:18:25 2017 +0100
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,19 +0,0 @@
     3.4 -# SliTaz package receipt.
     3.5 -
     3.6 -PACKAGE="mdocml-extra"
     3.7 -VERSION="1.12.1"
     3.8 -CATEGORY="base-system"
     3.9 -SHORT_DESC="Extra files for mdocml"
    3.10 -MAINTAINER="al.bobylev@gmail.com"
    3.11 -LICENSE="ISC"
    3.12 -WEB_SITE="http://mdocml.bsd.lv/"
    3.13 -WANTED="mdocml"
    3.14 -DEPENDS="glibc-base libdb mdocml"
    3.15 -
    3.16 -# Rules to gen a SliTaz package suitable for Tazpkg.
    3.17 -genpkg_rules()
    3.18 -{
    3.19 -	mkdir -p $fs/usr
    3.20 -	cp -a $install/usr/bin $fs/usr
    3.21 -	rm -f $fs/usr/bin/mandoc
    3.22 -}
     4.1 --- a/mdocml-man/receipt	Wed Nov 01 11:18:25 2017 +0100
     4.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.3 @@ -1,18 +0,0 @@
     4.4 -# SliTaz package receipt.
     4.5 -
     4.6 -PACKAGE="mdocml-man"
     4.7 -VERSION="1.12.1"
     4.8 -CATEGORY="development"
     4.9 -SHORT_DESC="Man files for mdocml"
    4.10 -MAINTAINER="al.bobylev@gmail.com"
    4.11 -LICENSE="ISC"
    4.12 -WEB_SITE="http://mdocml.bsd.lv/"
    4.13 -WANTED="mdocml"
    4.14 -DEPENDS="mdocml"
    4.15 -
    4.16 -# Rules to gen a SliTaz package suitable for Tazpkg.
    4.17 -genpkg_rules()
    4.18 -{
    4.19 -	mkdir -p $fs/usr/share
    4.20 -	cp -a $install/usr/share/man $fs/usr/share
    4.21 -}
     5.1 --- a/mdocml/receipt	Wed Nov 01 11:18:25 2017 +0100
     5.2 +++ b/mdocml/receipt	Wed Nov 01 11:25:34 2017 +0100
     5.3 @@ -1,4 +1,4 @@
     5.4 -# SliTaz package receipt.
     5.5 +# SliTaz package receipt v2.
     5.6  
     5.7  PACKAGE="mdocml"
     5.8  VERSION="1.12.1"
     5.9 @@ -10,8 +10,8 @@
    5.10  TARBALL="$PACKAGE-$VERSION.tar.gz"
    5.11  WGET_URL="http://mdocml.bsd.lv/snapshots/$TARBALL"
    5.12  
    5.13 -DEPENDS="glibc-base"
    5.14  BUILD_DEPENDS="db-dev"
    5.15 +SPLIT="mdocml mdocml-cgi mdocml-dev mdocml-extra mdocml-man"
    5.16  
    5.17  # Rules to configure and make the package.
    5.18  compile_rules()
    5.19 @@ -34,6 +34,37 @@
    5.20  # Rules to gen a SliTaz package suitable for Tazpkg.
    5.21  genpkg_rules()
    5.22  {
    5.23 -	mkdir -p $fs/usr/bin
    5.24 -	cp -a $install/usr/bin/mandoc $fs/usr/bin
    5.25 +	case $PACKAGE in
    5.26 +	mdocml)
    5.27 +		DEPENDS="glibc-base"
    5.28 +		mkdir -p $fs/usr/bin
    5.29 +		cp -a $install/usr/bin/mandoc $fs/usr/bin
    5.30 +		;;
    5.31 +	mdocml-cgi)
    5.32 +		CAT="development|CGI files for mdocml"
    5.33 +		DEPENDS="glibc-base libdb"
    5.34 +		mkdir -p $fs/var
    5.35 +		cp -a $install/var/www $fs/var
    5.36 +		;;
    5.37 +	mdocml-dev)
    5.38 +		CAT="development|Devel files for mdocml"
    5.39 +		DEPENDS="mdocml"
    5.40 +		mkdir -p $fs/usr
    5.41 +		cp -a $install/usr/include $fs/usr
    5.42 +		cp -a $install/usr/lib $fs/usr
    5.43 +		;;
    5.44 +	mdocml-extra)
    5.45 +		CAT="base-system|Extra files for mdocml"
    5.46 +		DEPENDS="glibc-base libdb mdocml"
    5.47 +		mkdir -p $fs/usr
    5.48 +		cp -a $install/usr/bin $fs/usr
    5.49 +		rm -f $fs/usr/bin/mandoc
    5.50 +		;;
    5.51 +	mdocml-man)
    5.52 +		CAT="development|Man files for mdocml"
    5.53 +		DEPENDS="mdocml"
    5.54 +		mkdir -p $fs/usr/share
    5.55 +		cp -a $install/usr/share/man $fs/usr/share
    5.56 +		;;
    5.57 +	esac
    5.58  }