wok-next view rrdtool/receipt @ rev 21066
Switch some python packages to traditional build
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 06 13:30:23 2018 +0200 (2018-12-06) |
parents | d5aab818505e |
children | f17e1f86f546 |
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 SIBLINGS="rrdtool-lite"
21 compile_rules() {
22 sed -i 's/PL_sv_undef sv_undef/PL_sv_undef PL_sv_undef/' bindings/perl-shared/RRDs.xs
23 export LDFLAGS="$LDFLAGS -L/usr/lib/lua/5.1"
25 TOREMOVE="/usr/include/lua5.1 /usr/lib/lua5.1"
26 ln -s lua/5.1 /usr/include/lua5.1
27 ln -s lua/5.1 /usr/lib/lua5.1
28 for i in /usr/bin/lua /usr/bin/luac; do
29 [ -e $i ] && continue
30 ln -s $(basename $i)5.1 $i
31 TOREMOVE="$TOREMOVE $i"
32 done
34 ./configure \
35 --enable-perl-site-install \
36 $CONFIGURE_ARGS &&
37 fix libtool &&
38 make &&
39 make DESTDIR=$install install || return 1
41 for i in $TOREMOVE; do
42 rm -f $i
43 done
44 }
46 genpkg_rules() {
47 case $PACKAGE in
48 rrdtool-doc)
49 copy doc/ examples/
50 CAT="development|documentation and examples"
51 ;;
52 rrdtool-lua)
53 copy lua/
54 find $fs -name '*.la' -delete
55 CAT="development|Lua bindings"
56 DEPENDS="lua5.1 rrdtool"
57 ;;
58 rrdtool-man)
59 copy man/
60 CAT="development|man pages"
61 ;;
62 rrdtool-perl)
63 copy perl5/
64 CAT="development|Perl bindings"
65 DEPENDS="perl rrdtool"
66 ;;
67 rrdtool-python)
68 copy python2.7/
69 CAT="development|Python bindings"
70 DEPENDS="python rrdtool"
71 ;;
72 rrdtool-dev)
73 copy @dev examples/
74 DEPENDS="rrdtool"
75 ;;
76 rrdtool)
77 copy @std @rm
78 rm -r $fs/usr/lib/perl5/ # ... empty
79 DEPENDS="zlib freetype libpng16 libxml2 fontconfig xorg-pixman \
80 cairo glib pango xorg-xcb-util xorg-base-fonts libwrap"
81 TAGS="logs"
82 ;;
83 esac
84 }