wok-next view rrdtool/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 10df65db91ad
children d457c4e37c1b
line source
1 # SliTaz package receipt v2.
3 PACKAGE="rrdtool"
4 VERSION="1.7.0"
5 CATEGORY="misc"
6 SHORT_DESC="Data logging and graphing system for time series data"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://oss.oetiker.ch/rrdtool/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://oss.oetiker.ch/rrdtool/pub/$TARBALL"
14 BUILD_DEPENDS="perl-dev zlib-dev freetype-dev libpng16-dev libxml2-dev \
15 fontconfig-dev xorg-pixman-dev cairo-dev glib-dev pango-dev python-dev perl groff \
16 tcl-dev lua5.1-dev ruby gettext-dev"
17 SPLIT="$PACKAGE-perl $PACKAGE-python $PACKAGE-dev $PACKAGE"
19 compile_rules() {
20 sed -i 's/PL_sv_undef sv_undef/PL_sv_undef PL_sv_undef/' bindings/perl-shared/RRDs.xs
21 export LDFLAGS="$LDFLAGS -L/usr/lib/lua/5.1"
23 TOREMOVE="/usr/include/lua5.1 /usr/lib/lua5.1"
24 ln -s lua/5.1 /usr/include/lua5.1
25 ln -s lua/5.1 /usr/lib/lua5.1
26 for i in /usr/bin/lua /usr/bin/luac; do
27 [ -e $i ] && continue
28 ln -s $(basename $i)5.1 $i
29 TOREMOVE="$TOREMOVE $i"
30 done
32 ./configure \
33 --enable-perl-site-install \
34 $CONFIGURE_ARGS &&
35 fix libtool &&
36 make &&
37 make DESTDIR=$install install || return 1
39 for i in $TOREMOVE; do
40 rm -f $i
41 done
42 }
44 genpkg_rules() {
45 case $PACKAGE in
46 rrdtool-doc)
47 copy doc/ examples/
48 CAT="development|documentation and examples"
49 ;;
50 rrdtool-lua)
51 copy lua/
52 find $fs -name '*.la' -delete
53 CAT="development|Lua bindings"
54 DEPENDS="lua5.1 rrdtool"
55 ;;
56 rrdtool-man)
57 copy man/
58 CAT="development|man pages"
59 ;;
60 rrdtool-perl)
61 copy perl5/
62 CAT="development|Perl bindings"
63 DEPENDS="perl rrdtool"
64 ;;
65 rrdtool-python)
66 copy python2.7/
67 CAT="development|Python bindings"
68 DEPENDS="python rrdtool"
69 ;;
70 rrdtool-dev)
71 copy @dev examples/
72 DEPENDS="rrdtool"
73 ;;
74 rrdtool)
75 copy @std @rm
76 rm -r $fs/usr/lib/perl5/ # ... empty
77 DEPENDS="zlib freetype libpng16 libxml2 fontconfig xorg-pixman \
78 cairo glib pango xorg-xcb-util xorg-base-fonts libwrap"
79 TAGS="logs"
80 ;;
81 esac
82 }