void-packages/srcpkgs/lib2geom/template

41 lines
1.2 KiB
Bash

# Template file for 'lib2geom'
pkgname=lib2geom
version=1.3
revision=2
build_style=cmake
configure_args="-D2GEOM_BUILD_SHARED=ON"
hostmakedepends="pkg-config python3-Cython ragel samurai"
makedepends="boost-devel double-conversion-devel cairo-devel gtk+3-devel
gsl-devel gtest-devel"
short_desc="Easy to use 2D geometry library for c++"
maintainer="Hervy Qurrotul Ainur Rozi <hervyqa@proton.me>"
license="LGPL-2.1-or-later, MPL-1.1"
homepage="https://gitlab.com/inkscape/lib2geom"
distfiles="https://gitlab.com/inkscape/lib2geom/-/archive/${version}/lib2geom-${version}.tar.bz2"
checksum=bd07f2a1322fcad16a55a1901207faa55dffdecebc56a00eabd4575f62e043c9
if [ -n "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -D2GEOM_TESTING=ON"
else
configure_args+=" -D2GEOM_TESTING=OFF"
fi
do_check() {
case "$XBPS_TARGET_MACHINE" in
x86_64-musl) _fail='circle-test' ;;
i686) _fail='(angle|bezier|ellipse|elliptical-arc|self-intersections)-test' ;;
esac
ctest --test-dir build --output-on-failure "$makejobs" -E "$_fail"
}
lib2geom-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}-${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
}
}