void-packages/srcpkgs/inkscape/template

38 lines
1.5 KiB
Bash

# Template file for 'inkscape'
pkgname=inkscape
version=1.0.2
revision=2
wrksrc="inkscape-${version}_2021-01-15_e86c870879"
build_style=cmake
# builds executables then runs checks
# FIXME: some tests still fail on musl
make_check_target=check
hostmakedepends="automake pkg-config libtool intltool gettext
glib-devel perl-XML-Parser tar which xz"
makedepends="harfbuzz-devel libsoup-devel gsl-devel pango-devel
double-conversion-devel gc-devel libwpd-devel libcdr-devel libvisio-devel
poppler-devel libwpd-devel potrace-devel gtkmm-devel gdl-devel gtkspell3-devel
aspell-devel libxslt-devel libgomp-devel libwpg-devel poppler-glib-devel"
depends="desktop-file-utils hicolor-icon-theme python3-lxml python3-numpy python3-scour"
checkdepends="$depends gtest-devel ImageMagick cantarell-fonts"
short_desc="Vector-based drawing program"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only, LGPL-2.1-or-later"
homepage="http://inkscape.org/"
# link from https://inkscape.org/release/all/source/archive/
distfiles="https://inkscape.org/gallery/item/23820/inkscape-${version}.tar.xz"
checksum=da3e230511a08cbf21e86710d161458594fea87867e9157b67ed01a04ea2798a
python_version=3
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
post_patch() {
if [ "$XBPS_TARGET_LIBC" = musl ]; then
# disable errors for missing sentinels in glib variadic functions,
# since inkscape uses NULL instead of nullptr
vsed -e "/-Werror=format/d" -i CMakeScripts/DefineDependsandFlags.cmake
fi
}