41 lines
1.2 KiB
Bash
41 lines
1.2 KiB
Bash
# Template file for 'lib2geom'
|
|
pkgname=lib2geom
|
|
version=1.4
|
|
revision=1
|
|
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=717a87ce7f2192271a789c1273ae7b432856c522647b9fe33bb4dd662942b3ea
|
|
|
|
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|line)-test' ;;
|
|
i686) _fail='(angle|bezier|ellipse|elliptical-arc|self-intersections|line|polynomial)-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
|
|
}
|
|
}
|