Github messages for voidlinux
 help / color / mirror / Atom feed
From: Gottox <Gottox@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] inkscape: update to 1.0.
Date: Mon, 04 May 2020 23:02:36 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-21629@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 312 bytes --]

There is a new pull request by Gottox against master on the void-packages repository

https://github.com/Gottox/void-packages inkscape-1.0
https://github.com/void-linux/void-packages/pull/21629

inkscape: update to 1.0.


A patch file from https://github.com/void-linux/void-packages/pull/21629.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-inkscape-1.0-21629.patch --]
[-- Type: text/x-diff, Size: 5120 bytes --]

From 388d885d9e57f5f8e9d0ac5967c2e472f208482d Mon Sep 17 00:00:00 2001
From: Enno Boland <gottox@voidlinux.org>
Date: Mon, 4 May 2020 22:14:52 +0200
Subject: [PATCH] inkscape: update to 1.0.

---
 .../patches/fix-invalid-nullptr.patch         | 13 +++++++
 srcpkgs/inkscape/patches/use-python2.patch    | 12 ------
 srcpkgs/inkscape/template                     | 37 +++++++++++--------
 3 files changed, 34 insertions(+), 28 deletions(-)
 create mode 100644 srcpkgs/inkscape/patches/fix-invalid-nullptr.patch
 delete mode 100644 srcpkgs/inkscape/patches/use-python2.patch

diff --git a/srcpkgs/inkscape/patches/fix-invalid-nullptr.patch b/srcpkgs/inkscape/patches/fix-invalid-nullptr.patch
new file mode 100644
index 00000000000..01599711a88
--- /dev/null
+++ b/srcpkgs/inkscape/patches/fix-invalid-nullptr.patch
@@ -0,0 +1,13 @@
+--- src/extension/effect.cpp.orig	2019-12-03 18:54:18.521689345 +0100
++++ src/extension/effect.cpp	2019-12-03 18:53:57.485477512 +0100
+@@ -38,8 +38,8 @@ Effect::Effect (Inkscape::XML::Node *in_
+     : Extension(in_repr, in_imp, base_directory)
+     , _id_noprefs(Glib::ustring(get_id()) + ".noprefs")
+     , _name_noprefs(Glib::ustring(_(get_name())) + _(" (No preferences)"))
+-    , _verb(get_id(), get_name(), nullptr, nullptr, this, true)
+-    , _verb_nopref(_id_noprefs.c_str(), _name_noprefs.c_str(), nullptr, nullptr, this, false)
++    , _verb(get_id(), get_name(), "", nullptr, this, true)
++    , _verb_nopref(_id_noprefs.c_str(), _name_noprefs.c_str(), "", nullptr, this, false)
+     , _menu_node(nullptr), _workingDialog(true)
+     , _prefDialog(nullptr)
+ {
diff --git a/srcpkgs/inkscape/patches/use-python2.patch b/srcpkgs/inkscape/patches/use-python2.patch
deleted file mode 100644
index 1b69dfa487f..00000000000
--- a/srcpkgs/inkscape/patches/use-python2.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- src/extension/implementation/script.cpp.orig
-+++ src/extension/implementation/script.cpp
-@@ -88,7 +88,7 @@
- #ifdef WIN32
-         {"python", "python-interpreter", "pythonw" },
- #else
-         {"perl",   "perl-interpreter",   "perl"   },
--        {"python", "python-interpreter", "python" },
-+        {"python", "python-interpreter", "python2" },
- #endif
-         {"ruby",   "ruby-interpreter",   "ruby"   },
-         {"shell",  "shell-interpreter",  "sh"     },
diff --git a/srcpkgs/inkscape/template b/srcpkgs/inkscape/template
index 45522048afc..129d8663803 100644
--- a/srcpkgs/inkscape/template
+++ b/srcpkgs/inkscape/template
@@ -1,29 +1,34 @@
 # Template file for 'inkscape'
 pkgname=inkscape
-version=0.92.5
+version=1.0
 revision=1
 wrksrc="${pkgname}-INKSCAPE_${version//./_}"
 build_style=cmake
-configure_args="--enable-lcms --enable-poppler-cairo
- --without-gnome-vfs --disable-static --disable-strict-build"
-hostmakedepends="pkg-config libtool intltool gettext-devel glib-devel tar which xz"
-makedepends="popt-devel libpng-devel gsl-devel gc-devel gtkmm2-devel libxslt-devel
- lcms2-devel poppler-glib-devel boost-devel libmagick6-devel
- libvisio-devel libwpg-devel libcdr-devel dbus-glib-devel libgomp-devel
- potrace-devel cairomm-devel"
-depends="desktop-file-utils hicolor-icon-theme python-lxml python-numpy python-scour"
+python_version=3
+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"
 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/"
-distfiles="https://gitlab.com/inkscape/inkscape/-/archive/INKSCAPE_${version//./_}/inkscape-INKSCAPE_${version//./_}.tar.bz2"
-checksum=de5de2376585a6b77488eea5d94511c260f561d7477d08afc5edbbea99fee602
-python_version=2 #unverified
-
-# Use c++11 mode and reduce log spam due to gcc6 warnings
-CXXFLAGS="-std=c++11 -Wno-deprecated -Wno-deprecated-declarations -Wno-deprecated-copy"
-CXXFLAGS+=" -Wno-parentheses -Wno-misleading-indentation -Wno-cast-align"
+_extension_rev=7099a364be65e17a76c0d9b7961232788d427d73
+distfiles="https://gitlab.com/inkscape/inkscape/-/archive/INKSCAPE_${version//./_}/inkscape-INKSCAPE_${version//./_}.tar.bz2
+ https://gitlab.com/inkscape/extensions/-/archive/${_extension_rev}/extensions-${_extension_rev}.tar.bz2"
+checksum="673a1d8dfff4993917ac560d73ded4cab6edf8360cb97b99703658b14c03031f
+ 11d573e30d4b0c821e9c59a524c9f98b935dcfdad979066cc65fdf111cf116fe"
 
 case "$XBPS_TARGET_MACHINE" in
 	arm*|aarch64*) makedepends+=" libatomic_ops-devel" ;;
 esac
+
+pre_configure() {
+	rm -r share/extensions || true
+	cp -r ../extensions-${_extension_rev} share/extensions
+
+	case "$XBPS_TARGET_MACHINE" in
+		*-musl) vsed -e "/-Werror=format/d" \
+			-i CMakeScripts/DefineDependsandFlags.cmake ;;
+	esac
+}

             reply	other threads:[~2020-05-04 21:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-04 21:02 Gottox [this message]
2020-05-04 22:10 ` q66
2020-05-05  7:17 ` [PR PATCH] [Updated] " Gottox
2020-05-05  7:17 ` Gottox
2020-05-05 15:07 ` q66
2020-05-07  7:29 ` [PR PATCH] [Updated] " Gottox
2020-05-07  7:29 ` Gottox
2020-05-07  7:29 ` [PR PATCH] [Merged]: " Gottox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-21629@inbox.vuxu.org \
    --to=gottox@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).