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