void-packages/srcpkgs/inkscape/template
Hervy Qurrotul Ainur Rozi 238cc664db inkscape: update to 1.0.2.
By ericonr:
- remove outdated patches
 - poppler was fixed in a compatibility header
 - invalid nullptr was fixed https://gitlab.com/inkscape/inkscape/-/merge_requests/2682
   can be seen fixed in
   https://gitlab.com/inkscape/inkscape/-/blob/INKSCAPE_1_0_2/src/extension/effect.h#L70
- fix some tests
- re-organize template to do things in more appropriate phases
- use 'share/extensions' commit slightly ahead of what upstream
  specified, but still in their 1.0.x branch - picks up bug fixes

Closes: #29033 [via git-merge-pr]
2021-02-26 00:14:19 -03:00

37 lines
1.5 KiB
Bash

# Template file for 'inkscape'
pkgname=inkscape
version=1.0.2
revision=1
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-devel
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="gtest-devel $depends ImageMagick"
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
}