wok-next rev 20053
fltk, rrdtool: receipt v2
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 23 17:35:02 2017 +0200 (2017-10-23) |
parents | 20ad5d68aec1 |
children | dcce9f39d00c |
files | fltk-dev/receipt fltk-doc/receipt fltk/receipt rrdtool-dev/receipt rrdtool-doc/receipt rrdtool-lua/receipt rrdtool-man/receipt rrdtool-perl/receipt rrdtool-python/receipt rrdtool/receipt |
line diff
1.1 --- a/fltk-dev/receipt Mon Oct 23 17:09:27 2017 +0200 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,22 +0,0 @@ 1.4 -# SliTaz package receipt. 1.5 - 1.6 -PACKAGE="fltk-dev" 1.7 -VERSION="1.3.3" 1.8 -CATEGORY="development" 1.9 -SHORT_DESC="Fast Light Tool Kit devel files." 1.10 -WANTED="fltk" 1.11 -MAINTAINER="pankso@slitaz.org" 1.12 -LICENSE="LGPL2" 1.13 -WEB_SITE="http://www.fltk.org/" 1.14 -HOST_ARCH="i486 arm" 1.15 - 1.16 -DEPENDS="fltk" 1.17 - 1.18 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.19 -genpkg_rules() 1.20 -{ 1.21 - mkdir -p $fs/usr/bin $fs/usr/lib 1.22 - cp -a $install/usr/bin/fltk-config $fs/usr/bin 1.23 - cp -a $install/usr/lib/*.*a $fs/usr/lib 1.24 - cp -a $install/usr/include $fs/usr 1.25 -}
2.1 --- a/fltk-doc/receipt Mon Oct 23 17:09:27 2017 +0200 2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 2.3 @@ -1,17 +0,0 @@ 2.4 -# SliTaz package receipt. 2.5 - 2.6 -PACKAGE="fltk-doc" 2.7 -VERSION="1.3.3" 2.8 -CATEGORY="development" 2.9 -SHORT_DESC="Fast Light Tool Kit documentation and examples." 2.10 -WANTED="fltk" 2.11 -MAINTAINER="pankso@slitaz.org" 2.12 -LICENSE="LGPL2" 2.13 -WEB_SITE="http://www.fltk.org/" 2.14 - 2.15 -# Rules to gen a SliTaz package suitable for Tazpkg. 2.16 -genpkg_rules() 2.17 -{ 2.18 - mkdir -p $fs/usr/share 2.19 - cp -a $install/usr/share/doc $fs/usr/share 2.20 -}
3.1 --- a/fltk/receipt Mon Oct 23 17:09:27 2017 +0200 3.2 +++ b/fltk/receipt Mon Oct 23 17:35:02 2017 +0200 3.3 @@ -1,4 +1,4 @@ 3.4 -# SliTaz package receipt. 3.5 +# SliTaz package receipt v2. 3.6 3.7 PACKAGE="fltk" 3.8 VERSION="1.3.3" 3.9 @@ -11,15 +11,9 @@ 3.10 WGET_URL="http://fltk.org/pub/fltk/$VERSION/$TARBALL" 3.11 HOST_ARCH="i486 arm" 3.12 3.13 -DEPENDS="expat fontconfig freetype libpng jpeg xorg-libX11 xorg-libXau xorg-libXdmcp \ 3.14 -xorg-libXext xorg-libXft xorg-libXrender zlib gcc-lib-base mesa libglu-mesa" 3.15 BUILD_DEPENDS="jpeg-dev libpng-dev libglu-mesa libglu-mesa-dev mesa mesa-dev \ 3.16 xorg-libXinerama-dev xorg-libXft-dev" 3.17 - 3.18 -# Handle SliTaz arch 3.19 -case "$SLITAZ_ARCH" in 3.20 - arm*) DEPENDS="expat fontconfig freetype jpeg libpng xorg-libXft" ;; 3.21 -esac 3.22 +SPLIT="fltk-dev fltk-doc" 3.23 3.24 # Handle cross compilation. 3.25 case "$ARCH" in 3.26 @@ -47,8 +41,33 @@ 3.27 # Rules to gen a SliTaz package suitable for Tazpkg. 3.28 genpkg_rules() 3.29 { 3.30 - mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/share/pixmaps 3.31 - cp -a $install/usr/bin/fluid $fs/usr/bin 3.32 - cp -a $install/usr/lib/*.so* $fs/usr/lib 3.33 - cp $src/fluid/icons/fluid-32.png $fs/usr/share/pixmaps/fluid.png 3.34 + case $PACKAGE in 3.35 + fltk) 3.36 + # Handle SliTaz arch 3.37 + case "$SLITAZ_ARCH" in 3.38 + arm*) DEPENDS="expat fontconfig freetype jpeg libpng \ 3.39 + xorg-libXft" ;; 3.40 + *) DEPENDS="expat fontconfig freetype libpng jpeg xorg-libX11 \ 3.41 + xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXft \ 3.42 + xorg-libXrender zlib gcc-lib-base mesa libglu-mesa" 3.43 + esac 3.44 + mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/share/pixmaps 3.45 + cp -a $install/usr/bin/fluid $fs/usr/bin 3.46 + cp -a $install/usr/lib/*.so* $fs/usr/lib 3.47 + cp $src/fluid/icons/fluid-32.png $fs/usr/share/pixmaps/fluid.png 3.48 + ;; 3.49 + fltk-dev) 3.50 + CAT="development|Fast Light Tool Kit devel files." 3.51 + DEPENDS="fltk" 3.52 + mkdir -p $fs/usr/bin $fs/usr/lib 3.53 + cp -a $install/usr/bin/fltk-config $fs/usr/bin 3.54 + cp -a $install/usr/lib/*.*a $fs/usr/lib 3.55 + cp -a $install/usr/include $fs/usr 3.56 + ;; 3.57 + fltk-doc) 3.58 + CAT="development|Fast Light Tool Kit documentation and examples." 3.59 + mkdir -p $fs/usr/share 3.60 + cp -a $install/usr/share/doc $fs/usr/share 3.61 + ;; 3.62 + esac 3.63 }
4.1 --- a/rrdtool-dev/receipt Mon Oct 23 17:09:27 2017 +0200 4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 4.3 @@ -1,21 +0,0 @@ 4.4 -# SliTaz package receipt. 4.5 - 4.6 -PACKAGE="rrdtool-dev" 4.7 -VERSION="1.4.6" 4.8 -CATEGORY="development" 4.9 -SHORT_DESC="Data logging and graphing system for time series data, development file." 4.10 -MAINTAINER="pascal.bellard@slitaz.org" 4.11 -LICENSE="GPL2" 4.12 -WEB_SITE="http://oss.oetiker.ch/rrdtool" 4.13 -WANTED="rrdtool" 4.14 - 4.15 -DEPENDS="rrdtool" 4.16 - 4.17 -# Rules to gen a SliTaz package suitable for Tazpkg. 4.18 -genpkg_rules() 4.19 -{ 4.20 - mkdir -p $fs/usr/lib 4.21 - cp -a $install/usr/lib/*.a $fs/usr/lib 4.22 - cp -a $install/usr/include $fs/usr 4.23 -} 4.24 -
5.1 --- a/rrdtool-doc/receipt Mon Oct 23 17:09:27 2017 +0200 5.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 5.3 @@ -1,19 +0,0 @@ 5.4 -# SliTaz package receipt. 5.5 - 5.6 -PACKAGE="rrdtool-doc" 5.7 -VERSION="1.4.6" 5.8 -CATEGORY="development" 5.9 -SHORT_DESC="Data logging and graphing system for time series data." 5.10 -MAINTAINER="pascal.bellard@slitaz.org" 5.11 -LICENSE="GPL2" 5.12 -WEB_SITE="http://oss.oetiker.ch/rrdtool" 5.13 -WANTED="rrdtool" 5.14 - 5.15 -# Rules to gen a SliTaz package suitable for Tazpkg. 5.16 -genpkg_rules() 5.17 -{ 5.18 - mkdir -p $fs/usr/share 5.19 - cp -a $install/usr/share/rrdtool $fs/usr/share 5.20 - cp -a $install/usr/share/doc $fs/usr/share 5.21 -} 5.22 -
6.1 --- a/rrdtool-lua/receipt Mon Oct 23 17:09:27 2017 +0200 6.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 6.3 @@ -1,20 +0,0 @@ 6.4 -# SliTaz package receipt. 6.5 - 6.6 -PACKAGE="rrdtool-lua" 6.7 -VERSION="1.4.6" 6.8 -CATEGORY="development" 6.9 -SHORT_DESC="LUA bindings for rrdtool." 6.10 -MAINTAINER="pascal.bellard@slitaz.org" 6.11 -LICENSE="GPL2" 6.12 -WEB_SITE="http://oss.oetiker.ch/rrdtool" 6.13 -WANTED="rrdtool" 6.14 - 6.15 -DEPENDS="lua5.1 rrdtool" 6.16 - 6.17 -# Rules to gen a SliTaz package suitable for Tazpkg. 6.18 -genpkg_rules() 6.19 -{ 6.20 - mkdir -p $fs/usr/lib 6.21 - cp -a $install/usr/lib/lua $fs/usr/lib/ 6.22 -} 6.23 -
7.1 --- a/rrdtool-man/receipt Mon Oct 23 17:09:27 2017 +0200 7.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 7.3 @@ -1,18 +0,0 @@ 7.4 -# SliTaz package receipt. 7.5 - 7.6 -PACKAGE="rrdtool-man" 7.7 -VERSION="1.4.6" 7.8 -CATEGORY="development" 7.9 -SHORT_DESC="Data logging and graphing system for time series data." 7.10 -MAINTAINER="pascal.bellard@slitaz.org" 7.11 -LICENSE="GPL2" 7.12 -WEB_SITE="http://oss.oetiker.ch/rrdtool" 7.13 -WANTED="rrdtool" 7.14 - 7.15 -# Rules to gen a SliTaz package suitable for Tazpkg. 7.16 -genpkg_rules() 7.17 -{ 7.18 - mkdir -p $fs/usr/share 7.19 - cp -a $install/usr/share/man $fs/usr/share 7.20 -} 7.21 -
8.1 --- a/rrdtool-perl/receipt Mon Oct 23 17:09:27 2017 +0200 8.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 8.3 @@ -1,20 +0,0 @@ 8.4 -# SliTaz package receipt. 8.5 - 8.6 -PACKAGE="rrdtool-perl" 8.7 -VERSION="1.4.6" 8.8 -CATEGORY="development" 8.9 -SHORT_DESC="Perl bindings for rrdtool." 8.10 -MAINTAINER="pascal.bellard@slitaz.org" 8.11 -LICENSE="GPL2" 8.12 -WEB_SITE="http://oss.oetiker.ch/rrdtool" 8.13 -WANTED="rrdtool" 8.14 - 8.15 -DEPENDS="perl rrdtool" 8.16 - 8.17 -# Rules to gen a SliTaz package suitable for Tazpkg. 8.18 -genpkg_rules() 8.19 -{ 8.20 - mkdir -p $fs/usr/lib 8.21 - cp -a $install/usr/lib/perl5 $fs/usr/lib/ 8.22 -} 8.23 -
9.1 --- a/rrdtool-python/receipt Mon Oct 23 17:09:27 2017 +0200 9.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 9.3 @@ -1,21 +0,0 @@ 9.4 -# SliTaz package receipt. 9.5 - 9.6 -PACKAGE="rrdtool-python" 9.7 -VERSION="1.4.6" 9.8 -CATEGORY="development" 9.9 -SHORT_DESC="Python bindings for rrdtool." 9.10 -MAINTAINER="pascal.bellard@slitaz.org" 9.11 -LICENSE="GPL2" 9.12 -WEB_SITE="http://oss.oetiker.ch/rrdtool" 9.13 -WANTED="rrdtool" 9.14 - 9.15 -DEPENDS="python rrdtool" 9.16 - 9.17 -# Rules to gen a SliTaz package suitable for Tazpkg. 9.18 -genpkg_rules() 9.19 -{ 9.20 - PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') 9.21 - mkdir -p $fs/usr/lib 9.22 - cp -a $install/usr/lib/$PYTHON_LIB $fs/usr/lib 9.23 -} 9.24 -
10.1 --- a/rrdtool/receipt Mon Oct 23 17:09:27 2017 +0200 10.2 +++ b/rrdtool/receipt Mon Oct 23 17:35:02 2017 +0200 10.3 @@ -1,4 +1,4 @@ 10.4 -# SliTaz package receipt. 10.5 +# SliTaz package receipt v2. 10.6 10.7 PACKAGE="rrdtool" 10.8 VERSION="1.4.6" 10.9 @@ -10,17 +10,15 @@ 10.10 WEB_SITE="http://oss.oetiker.ch/$PACKAGE" 10.11 WGET_URL="$WEB_SITE/pub/$TARBALL" 10.12 10.13 -DEPENDS="zlib freetype libpng libxml2 fontconfig pixman cairo glib pango \ 10.14 -xcb-util xorg-base-fonts libwrap" 10.15 BUILD_DEPENDS="perl-dev pkg-config zlib-dev freetype-dev libpng-dev libxml2-dev \ 10.16 fontconfig-dev pixman-dev cairo-dev glib-dev pango-dev python-dev perl groff \ 10.17 libwrap-dev tcl-dev lua5.1-dev ruby" 10.18 -TAGS="logs" 10.19 +SPLIT="rrdtool-dev rrdtool-doc rrdtool-lua rrdtool-man rrdtool-perl \ 10.20 +rrdtool-python" 10.21 10.22 # Rules to configure and make the package. 10.23 compile_rules() 10.24 { 10.25 - cd $src 10.26 sed -i 's/PL_sv_undef sv_undef/PL_sv_undef PL_sv_undef/' bindings/perl-shared/RRDs.xs 10.27 export LDFLAGS="$LDFLAGS -L/usr/lib/lua/5.1" 10.28 TOREMOVE="/usr/include/lua5.1" 10.29 @@ -31,8 +29,8 @@ 10.30 TOREMOVE="$TOREMOVE $i" 10.31 done 10.32 ./configure --prefix=/usr --infodir=/usr/share/info \ 10.33 - --enable-perl-site-install \ 10.34 - --mandir=/usr/share/man $CONFIGURE_ARGS && 10.35 + --enable-perl-site-install \ 10.36 + --mandir=/usr/share/man $CONFIGURE_ARGS && 10.37 make && 10.38 make DESTDIR=$DESTDIR install 10.39 for i in $TOREMOVE ; do 10.40 @@ -43,8 +41,51 @@ 10.41 # Rules to gen a SliTaz package suitable for Tazpkg. 10.42 genpkg_rules() 10.43 { 10.44 - mkdir -p $fs/usr/lib 10.45 - cp -a $install/usr/lib/*.so* $fs/usr/lib 10.46 - cp -a $install/usr/bin $fs/usr 10.47 + case $PACKAGE in 10.48 + rrdtool) 10.49 + DEPENDS="zlib freetype libpng libxml2 fontconfig pixman cairo \ 10.50 + glib pango xcb-util xorg-base-fonts libwrap" 10.51 + TAGS="logs" 10.52 + mkdir -p $fs/usr/lib 10.53 + cp -a $install/usr/lib/*.so* $fs/usr/lib 10.54 + cp -a $install/usr/bin $fs/usr 10.55 + ;; 10.56 + rrdtool-dev) 10.57 + CAT="development|Data logging and graphing system for time series data, development file." 10.58 + DEPENDS="rrdtool" 10.59 + mkdir -p $fs/usr/lib 10.60 + cp -a $install/usr/lib/*.a $fs/usr/lib 10.61 + cp -a $install/usr/include $fs/usr 10.62 + ;; 10.63 + rrdtool-doc) 10.64 + CAT="development|Data logging and graphing system for time series data." 10.65 + mkdir -p $fs/usr/share 10.66 + cp -a $install/usr/share/rrdtool $fs/usr/share 10.67 + cp -a $install/usr/share/doc $fs/usr/share 10.68 + ;; 10.69 + rrdtool-lua) 10.70 + CAT="development|LUA bindings for rrdtool." 10.71 + DEPENDS="lua5.1 rrdtool" 10.72 + mkdir -p $fs/usr/lib 10.73 + cp -a $install/usr/lib/lua $fs/usr/lib/ 10.74 + ;; 10.75 + rrdtool-man) 10.76 + CAT="development|Data logging and graphing system for time series data." 10.77 + mkdir -p $fs/usr/share 10.78 + cp -a $install/usr/share/man $fs/usr/share 10.79 + ;; 10.80 + rrdtool-perl) 10.81 + CAT="development|Perl bindings for rrdtool." 10.82 + DEPENDS="perl rrdtool" 10.83 + mkdir -p $fs/usr/lib 10.84 + cp -a $install/usr/lib/perl5 $fs/usr/lib/ 10.85 + ;; 10.86 + rrdtool-python) 10.87 + CAT="development|Python bindings for rrdtool." 10.88 + DEPENDS="python rrdtool" 10.89 + PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') 10.90 + mkdir -p $fs/usr/lib 10.91 + cp -a $install/usr/lib/$PYTHON_LIB $fs/usr/lib 10.92 + ;; 10.93 + esac 10.94 } 10.95 -