void-packages/srcpkgs/rrdtool/template

68 lines
1.9 KiB
Bash

# Template file for 'rrdtool'
pkgname=rrdtool
version=1.7.2
revision=11
build_style=gnu-configure
# configure checks sys.version[:3] for Python versioning, so 3.10 becomes 3.1;
# until this is fixed upstream, manually define am_cv_python_version to circumvent
configure_args="--enable-perl --enable-perl-site-install
--with-perl-options=INSTALLDIRS=vendor --enable-ruby
--enable-ruby-site-install --enable-python --enable-lua
--enable-lua-site-install --enable-tcl --disable-libwrap
am_cv_python_version=${py3_ver}"
hostmakedepends="pkg-config groff intltool python3-setuptools perl-XML-Parser"
makedepends="libxml2-devel pango-devel python3-devel ruby-devel LuaJIT-devel perl"
depends="dejavu-fonts-ttf"
short_desc="Data logging and graphing system for time series data"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://oss.oetiker.ch/rrdtool"
distfiles="https://github.com/oetiker/rrdtool-1.x/releases/download/v${version}/rrdtool-${version}.tar.gz"
checksum=a199faeb7eff7cafc46fac253e682d833d08932f3db93a550a4a5af180ca58db
python_version=3
nocross=yes
python-rrdtool_package() {
short_desc+=" - Python 3 bindings (old misnamed package)"
depends=python3-rrdtool
build_style=meta
}
python3-rrdtool_package() {
short_desc+=" - Python 3 bindings"
replaces="python-rrdtool>=0"
provides="python-rrdtool-${version}_$revision"
pkg_install() {
vmove usr/lib/python3*
}
}
perl-rrdtool_package() {
short_desc+=" - perl bindings"
shlib_requires="libperl.so.5.34"
pkg_install() {
vmove usr/lib/perl5
vmove usr/share/perl5
}
}
ruby-rrdtool_package() {
short_desc+=" - ruby bindings"
pkg_install() {
vmove usr/lib/ruby
}
}
rrdtool-devel_package() {
depends="rrdtool>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share/doc
vmove usr/share/man/man3
}
}