42 lines
1.8 KiB
Bash
42 lines
1.8 KiB
Bash
# Template file for 'inkscape'
|
|
pkgname=inkscape
|
|
version=1.2.2
|
|
revision=1
|
|
build_style=cmake
|
|
# builds executables then runs checks
|
|
# some tests still fail on musl: https://gitlab.com/inkscape/inkscape/-/issues/2241
|
|
make_check_target=check
|
|
hostmakedepends="automake gettext glib-devel intltool libmagick-devel libtool
|
|
perl-XML-Parser pkg-config which"
|
|
makedepends="aspell-devel cairomm-devel double-conversion-devel gc-devel
|
|
gdl-devel gsl-devel gspell-devel gtkmm-devel gtkspell3-devel harfbuzz-devel
|
|
hunspell-devel libatomic_ops-devel libcdr-devel libgomp-devel libsoup-devel
|
|
libvisio-devel libwpd-devel libwpd-devel libwpg-devel libxslt-devel pango-devel
|
|
poppler-devel poppler-glib-devel potrace-devel"
|
|
depends="desktop-file-utils hicolor-icon-theme python3-Pillow python3-appdirs
|
|
python3-cssselect python3-lxml python3-numpy python3-requests python3-scour"
|
|
checkdepends="$depends ImageMagick cantarell-fonts gtest-devel"
|
|
short_desc="Vector-based drawing program"
|
|
maintainer="Alex Lohr <alex.lohr@logmein.com>"
|
|
license="GPL-2.0-only, LGPL-2.1-or-later"
|
|
homepage="http://inkscape.org/"
|
|
distfiles="https://media.inkscape.org/dl/resources/file/inkscape-${version}.tar.xz"
|
|
checksum=a0c7fd0d03c0a21535e648ef301dcf80dd7cfc1f3545e51065fbf1ba3ee8a5c4
|
|
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
|
|
# disable glyph tests that fail due to different hinting
|
|
vsed -e \
|
|
"s/\(test-glyph-y-pos\|test-rtl-vertical\|text-glyphs-combining\|text-glyphs-vertical\)/# \1 - skipped due to hinting issues/" \
|
|
-i testfiles/rendering_tests/CMakeLists.txt
|
|
}
|