1 |
commit: 3d6091d06150c1b7318cbcb7fb472dc942d42848 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 6 05:02:53 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 6 05:03:07 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d6091d0 |
7 |
|
8 |
dev-libs/libofx: fix version in header file; fix parallel build |
9 |
|
10 |
Bug: https://github.com/libofx/libofx/issues/76 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
...ix-LIBOFX_MAJOR_VERSION-and-friends-in-li.patch | 45 ++++++++++++++++++++++ |
14 |
...ix-parallel-build-issue-with-ofxconnect-o.patch | 34 ++++++++++++++++ |
15 |
...ibofx-0.10.6.ebuild => libofx-0.10.6-r1.ebuild} | 14 ++++++- |
16 |
3 files changed, 92 insertions(+), 1 deletion(-) |
17 |
|
18 |
diff --git a/dev-libs/libofx/files/libofx-0.10.6-0001-autotools-fix-LIBOFX_MAJOR_VERSION-and-friends-in-li.patch b/dev-libs/libofx/files/libofx-0.10.6-0001-autotools-fix-LIBOFX_MAJOR_VERSION-and-friends-in-li.patch |
19 |
new file mode 100644 |
20 |
index 000000000000..283e852fef0f |
21 |
--- /dev/null |
22 |
+++ b/dev-libs/libofx/files/libofx-0.10.6-0001-autotools-fix-LIBOFX_MAJOR_VERSION-and-friends-in-li.patch |
23 |
@@ -0,0 +1,45 @@ |
24 |
+https://github.com/libofx/libofx/pull/77 |
25 |
+ |
26 |
+From a8326e0800c5c28228624005566ae9f37a775367 Mon Sep 17 00:00:00 2001 |
27 |
+From: Sam James <sam@g.o> |
28 |
+Date: Tue, 6 Sep 2022 05:47:00 +0100 |
29 |
+Subject: [PATCH 1/2] autotools: fix LIBOFX_MAJOR_VERSION and friends in |
30 |
+ libofx.h |
31 |
+ |
32 |
+Closes: https://github.com/libofx/libofx/issues/76 |
33 |
+Signed-off-by: Sam James <sam@g.o> |
34 |
+--- a/configure.ac |
35 |
++++ b/configure.ac |
36 |
+@@ -8,17 +8,15 @@ dnl Process this file with autoconf to produce a configure script. |
37 |
+ # FUNCTION: |
38 |
+ # implements checks for a variety of system-specific functions |
39 |
+ |
40 |
+- |
41 |
+- |
42 |
+-LIBOFX_MAJOR_VERSION=0 |
43 |
+-LIBOFX_MINOR_VERSION=10 |
44 |
+-LIBOFX_MICRO_VERSION=6 |
45 |
+-AC_INIT(libofx, 0.10.6) # must repeat the version number here, sorry |
46 |
++AC_INIT([libofx], [0.10.6]) # must repeat the version number here, sorry |
47 |
++AC_SUBST([LIBOFX_MAJOR_VERSION], [0]) |
48 |
++AC_SUBST([LIBOFX_MINOR_VERSION], [10]) |
49 |
++AC_SUBST([LIBOFX_MICRO_VERSION], [6]) |
50 |
+ |
51 |
+ LIBOFX_VERSION_RELEASE_STRING="$LIBOFX_MAJOR_VERSION.$LIBOFX_MINOR_VERSION.$LIBOFX_MICRO_VERSION" |
52 |
+ |
53 |
+ AC_CONFIG_SRCDIR(inc/libofx.h.in) |
54 |
+-AM_CONFIG_HEADER(config.h) |
55 |
++AM_CONFIG_HEADER([config.h]) |
56 |
+ AC_CONFIG_AUX_DIR(config) |
57 |
+ AC_CONFIG_MACRO_DIR(m4) |
58 |
+ AC_PROG_CC |
59 |
+@@ -57,9 +55,6 @@ CXXFLAGS="-DIN_LIBOFX $CXXFLAGS" |
60 |
+ |
61 |
+ LIBOFX_VERSION=$LIBOFX_MAJOR_VERSION.$LIBOFX_MINOR_VERSION.$LIBOFX_MICRO_VERSION |
62 |
+ |
63 |
+-AC_SUBST(LIBOFX_MAJOR_VERSION) |
64 |
+-AC_SUBST(LIBOFX_MINOR_VERSION) |
65 |
+-AC_SUBST(LIBOFX_MICRO_VERSION) |
66 |
+ LIBOFX_BUILD_VERSION=0 |
67 |
+ AC_SUBST(LIBOFX_BUILD_VERSION) |
68 |
+ AC_SUBST(LIBOFX_VERSION_RELEASE_STRING) |
69 |
|
70 |
diff --git a/dev-libs/libofx/files/libofx-0.10.6-0002-autotools-fix-parallel-build-issue-with-ofxconnect-o.patch b/dev-libs/libofx/files/libofx-0.10.6-0002-autotools-fix-parallel-build-issue-with-ofxconnect-o.patch |
71 |
new file mode 100644 |
72 |
index 000000000000..c6ac9035ff47 |
73 |
--- /dev/null |
74 |
+++ b/dev-libs/libofx/files/libofx-0.10.6-0002-autotools-fix-parallel-build-issue-with-ofxconnect-o.patch |
75 |
@@ -0,0 +1,34 @@ |
76 |
+https://github.com/libofx/libofx/pull/77 |
77 |
+ |
78 |
+From 8383d1245468db3aa944e77b38b681249073eb6b Mon Sep 17 00:00:00 2001 |
79 |
+From: Sam James <sam@g.o> |
80 |
+Date: Tue, 6 Sep 2022 06:00:04 +0100 |
81 |
+Subject: [PATCH 2/2] autotools: fix parallel build issue with ofxconnect, |
82 |
+ ofxdump |
83 |
+ |
84 |
+We need to build the relevant tool before calling help2man, as |
85 |
+help2man tries to call the tool itself. |
86 |
+ |
87 |
+Signed-off-by: Sam James <sam@g.o> |
88 |
+--- a/ofxconnect/Makefile.am |
89 |
++++ b/ofxconnect/Makefile.am |
90 |
+@@ -25,7 +25,7 @@ EXTRA_DIST = cmdline.ggo test-privateserver.sh CMakeLists.txt |
91 |
+ # the key needed to run this test. |
92 |
+ TESTS = test-privateserver.sh |
93 |
+ |
94 |
+-ofxconnect.1: $(top_srcdir)/configure.ac |
95 |
++ofxconnect.1: $(top_srcdir)/configure.ac ofxconnect |
96 |
+ if HAVE_HELP2MAN |
97 |
+ $(HELP2MAN) -n 'Create a statement request file' -N --output=ofxconnect.1 ./ofxconnect$(EXEEXT) |
98 |
+ else |
99 |
+--- a/ofxdump/Makefile.am |
100 |
++++ b/ofxdump/Makefile.am |
101 |
+@@ -15,7 +15,7 @@ cmdline.c cmdline.h: cmdline.ggo Makefile |
102 |
+ |
103 |
+ endif |
104 |
+ |
105 |
+-ofxdump.1: $(top_srcdir)/configure.ac |
106 |
++ofxdump.1: $(top_srcdir)/configure.ac ofxdump |
107 |
+ if HAVE_HELP2MAN |
108 |
+ $(HELP2MAN) -n 'Dump content of OFX files as human-readable text' -N --output=ofxdump.1 ./ofxdump$(EXEEXT) |
109 |
+ else |
110 |
|
111 |
diff --git a/dev-libs/libofx/libofx-0.10.6.ebuild b/dev-libs/libofx/libofx-0.10.6-r1.ebuild |
112 |
similarity index 76% |
113 |
rename from dev-libs/libofx/libofx-0.10.6.ebuild |
114 |
rename to dev-libs/libofx/libofx-0.10.6-r1.ebuild |
115 |
index 87cfdff2482d..fb768f5ba89e 100644 |
116 |
--- a/dev-libs/libofx/libofx-0.10.6.ebuild |
117 |
+++ b/dev-libs/libofx/libofx-0.10.6-r1.ebuild |
118 |
@@ -3,7 +3,7 @@ |
119 |
|
120 |
EAPI=8 |
121 |
|
122 |
-inherit flag-o-matic |
123 |
+inherit autotools flag-o-matic |
124 |
|
125 |
DESCRIPTION="Library to support the Open Financial eXchange XML format" |
126 |
HOMEPAGE="https://github.com/libofx/libofx" |
127 |
@@ -31,6 +31,18 @@ RDEPEND=" |
128 |
" |
129 |
DEPEND="${RDEPEND}" |
130 |
|
131 |
+PATCHES=( |
132 |
+ "${FILESDIR}"/${PN}-0.10.6-0001-autotools-fix-LIBOFX_MAJOR_VERSION-and-friends-in-li.patch |
133 |
+ "${FILESDIR}"/${PN}-0.10.6-0002-autotools-fix-parallel-build-issue-with-ofxconnect-o.patch |
134 |
+) |
135 |
+ |
136 |
+src_prepare() { |
137 |
+ default |
138 |
+ |
139 |
+ # Needed for header version patch |
140 |
+ eautoreconf |
141 |
+} |
142 |
+ |
143 |
src_configure() { |
144 |
# bug #566456 |
145 |
append-cxxflags -std=c++14 |