wok-next view rrdtool/receipt @ rev 20561

Up rrdtool (1.7.0)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Apr 10 00:40:27 2018 +0300 (2018-04-10)
parents 93bf4a892668
children 10df65db91ad
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"
17 SPLIT="rrdtool-perl rrdtool-python rrdtool-dev rrdtool"
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 make &&
36 make DESTDIR=$DESTDIR install || return 1
38 for i in $TOREMOVE; do
39 rm -f $i
40 done
41 }
43 genpkg_rules() {
44 case $PACKAGE in
45 rrdtool-doc)
46 copy doc/ examples/
47 CAT="development|documentation and examples"
48 ;;
49 rrdtool-lua)
50 copy lua/
51 find $fs -name '*.la' -delete
52 CAT="development|Lua bindings"
53 DEPENDS="lua5.1 rrdtool"
54 ;;
55 rrdtool-man)
56 copy man/
57 CAT="development|man pages"
58 ;;
59 rrdtool-perl)
60 copy perl5/
61 CAT="development|Perl bindings"
62 DEPENDS="perl rrdtool"
63 ;;
64 rrdtool-python)
65 copy python2.7/
66 CAT="development|Python bindings"
67 DEPENDS="python rrdtool"
68 ;;
69 rrdtool-dev)
70 copy @dev examples/
71 DEPENDS="rrdtool"
72 ;;
73 rrdtool)
74 copy @std @rm
75 rm -r $fs/usr/lib/perl5/ # ... empty
76 DEPENDS="zlib freetype libpng16 libxml2 fontconfig xorg-pixman \
77 cairo glib pango xorg-xcb-util xorg-base-fonts libwrap"
78 TAGS="logs"
79 ;;
80 esac
81 }