New package: lib2geom-1.3
This commit is contained in:
parent
b9690ae8bd
commit
f41adb7bd0
|
@ -4326,3 +4326,4 @@ libtext-engine-0.1.so.0 text-engine-0.1.1_1
|
|||
libvmaf.so.1 vmaf-2.3.1_1
|
||||
liblc3.so.1 liblc3-1.0.3_1
|
||||
libmimalloc.so.2 mimalloc-2.1.2_1
|
||||
lib2geom.so.1.3.0 lib2geom-1.3_1
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
lib2geom
|
|
@ -0,0 +1,40 @@
|
|||
# Template file for 'lib2geom'
|
||||
pkgname=lib2geom
|
||||
version=1.3
|
||||
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"
|
||||
checkdepends="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='(ellipse-test|elliptical-arc-test|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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue