Github messages for voidlinux
 help / color / mirror / Atom feed
From: manfredu <manfredu@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] gnucash: update to 3.10
Date: Tue, 14 Apr 2020 21:05:28 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20986@inbox.vuxu.org> (raw)

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

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

https://github.com/manfredu/void-packages gnucash
https://github.com/void-linux/void-packages/pull/20986

gnucash: update to 3.10


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

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

From 8b25c227395610adf3224c8c3a5f588123f61981 Mon Sep 17 00:00:00 2001
From: Manfred Usselmann <mu@usselmann.it>
Date: Tue, 14 Apr 2020 20:47:13 +0200
Subject: [PATCH] gnucash: update to 3.10

---
 srcpkgs/gnucash/patches/python3.patch        | 28 -------------------
 srcpkgs/gnucash/patches/runTests_py_in.patch | 29 ++++++++++++++++++++
 srcpkgs/gnucash/template                     |  6 ++--
 3 files changed, 32 insertions(+), 31 deletions(-)
 delete mode 100644 srcpkgs/gnucash/patches/python3.patch
 create mode 100644 srcpkgs/gnucash/patches/runTests_py_in.patch

diff --git a/srcpkgs/gnucash/patches/python3.patch b/srcpkgs/gnucash/patches/python3.patch
deleted file mode 100644
index 63bfef53349..00000000000
--- a/srcpkgs/gnucash/patches/python3.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-Source: Hoshpak/upstream
-Upstream: partial
-Reason: compatibility of the remaining code with python3
---- gnucash/python/pycons/ishell.py	2018-09-27 12:30:44.136631542 +0200
-+++ gnucash/python/pycons/ishell.py	2018-09-27 12:46:51.636875378 +0200
-@@ -16,11 +16,10 @@
- import os
- import sys
- import re
--from StringIO import StringIO
- try:
-     import IPython
--    from IPython import ipapi
--except Exception,e:
-+    from IPython.core import interactiveshell
-+except Exception as e:
-     raise "Error importing IPython (%s)" % str(e)
- 
- 
-@@ -54,7 +53,7 @@
-                                                 header='IPython system call: ',
-                                                 verbose=self.IP.rc.system_verbose)
-         # Get a hold of the public IPython API object and use it
--        self.ip = ipapi.get()
-+        self.ip = interactiveshell.get_ipython()
-         self.ip.magic('colors LightBG')                
-         sys.excepthook = excepthook
-         self.iter_more = 0
diff --git a/srcpkgs/gnucash/patches/runTests_py_in.patch b/srcpkgs/gnucash/patches/runTests_py_in.patch
new file mode 100644
index 00000000000..d29ba404027
--- /dev/null
+++ b/srcpkgs/gnucash/patches/runTests_py_in.patch
@@ -0,0 +1,29 @@
+--- bindings/python/tests/CMakeLists.txt
++++ bindings/python/tests/CMakeLists.txt
+@@ -5,7 +5,7 @@ if (WITH_PYTHON)
+    # Because it hasn't been built yet
+    set(test_core_dir ${CMAKE_BINARY_DIR}/common/test-core)
+  endif()
+- add_custom_target(test-python-bindings ALL DEPENDS unittest_support gnucash-core-c-build gnucash-core-c-py swig-app-utils-python)
++ add_custom_target(test-python-bindings ALL DEPENDS unittest_support gnucash-core-c-build gnucash-core-c-py sw_app_utils)
+  add_dependencies(check test-python-bindings)
+  add_test(python-bindings ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/runTests.py.in)
+  set_property(TEST python-bindings PROPERTY ENVIRONMENT
+@@ -21,6 +21,7 @@ set(test_python_bindings_DATA
+        test_business.py
+        test_commodity.py
+        test_numeric.py
++       test_session.py
+        test_split.py
+        test_transaction.py
+        test_query.py)
+--- bindings/python/tests/runTests.py.in
++++ bindings/python/tests/runTests.py.in
+@@ -5,7 +5,6 @@ import os
+
+ os.environ["GNC_UNINSTALLED"] = "1"
+
+-from test_session import TestSession
+ from test_book import TestBook
+ from test_account import TestAccount
+ from test_split import TestSplit
diff --git a/srcpkgs/gnucash/template b/srcpkgs/gnucash/template
index ee930ebaaf0..5145a701ac6 100644
--- a/srcpkgs/gnucash/template
+++ b/srcpkgs/gnucash/template
@@ -1,7 +1,7 @@
 # Template file for 'gnucash'
 pkgname=gnucash
-version=3.9
-revision=2
+version=3.10
+revision=1
 wrksrc="${pkgname}-${version%b}"
 build_style=cmake
 configure_args="-DWITH_SQL=0 -DWITH_PYTHON=1"
@@ -15,7 +15,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
 license="GPL-2.0-or-later"
 homepage="http://www.gnucash.org"
 distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
-checksum=8d02dddc7cbc9d7324f4b577825dffffb8c4c938746701407e7b04bd647eb9ff
+checksum=b60772c276a63639964d1e24c795fbb9a7c0c6c45959168fe5cdfe08eb796f16
 
 pycompile_dirs="usr/share/gnucash/python"
 conf_files="/etc/gnucash/environment"

             reply	other threads:[~2020-04-14 19:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-14 19:05 manfredu [this message]
2020-04-15 14:36 ` [PR PATCH] [Merged]: " Hoshpak

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-20986@inbox.vuxu.org \
    --to=manfredu@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).