Lines 5-11
Link Here
|
5 |
|
5 |
|
6 |
PYTHON_COMPAT=( python3_{6,7,8} ) |
6 |
PYTHON_COMPAT=( python3_{6,7,8} ) |
7 |
|
7 |
|
8 |
inherit cmake-utils gnome2-utils python-single-r1 xdg-utils |
8 |
# The generated .go files from guile can't be stripped. |
|
|
9 |
RESTRICT="strip" |
10 |
|
11 |
inherit cmake gnome2-utils python-single-r1 xdg-utils toolchain-funcs |
9 |
|
12 |
|
10 |
DESCRIPTION="A personal finance manager" |
13 |
DESCRIPTION="A personal finance manager" |
11 |
HOMEPAGE="http://www.gnucash.org/" |
14 |
HOMEPAGE="http://www.gnucash.org/" |
Lines 27-39
Link Here
|
27 |
# libdbi version requirement for sqlite taken from bug #455134 |
30 |
# libdbi version requirement for sqlite taken from bug #455134 |
28 |
# |
31 |
# |
29 |
# dev-libs/boost must always be built with nls enabled. |
32 |
# dev-libs/boost must always be built with nls enabled. |
30 |
# guile[deprecated] because of SCM_LIST*() use. |
|
|
31 |
# net-libs/aqbanking dropped gtk with v6, so to simplify the dependency, |
33 |
# net-libs/aqbanking dropped gtk with v6, so to simplify the dependency, |
32 |
# we just rely on that. |
34 |
# we just rely on that. |
33 |
RDEPEND=" |
35 |
RDEPEND=" |
34 |
>=dev-libs/glib-2.46.0:2 |
36 |
>=dev-libs/glib-2.56.1:2 |
35 |
>=dev-libs/libxml2-2.7.0:2 |
37 |
>=dev-libs/libxml2-2.9.4:2 |
36 |
>=dev-scheme/guile-2.2.0:12=[deprecated,regex] |
38 |
>=dev-scheme/guile-2.2.0:12=[regex] |
37 |
>=sys-libs/zlib-1.1.4 |
39 |
>=sys-libs/zlib-1.1.4 |
38 |
dev-libs/boost:=[icu,nls] |
40 |
dev-libs/boost:=[icu,nls] |
39 |
dev-libs/icu:= |
41 |
dev-libs/icu:= |
Lines 45-53
Link Here
|
45 |
) |
47 |
) |
46 |
gnome-keyring? ( >=app-crypt/libsecret-0.18 ) |
48 |
gnome-keyring? ( >=app-crypt/libsecret-0.18 ) |
47 |
gui? ( |
49 |
gui? ( |
48 |
>=x11-libs/gtk+-3.14.0:3 |
50 |
>=x11-libs/gtk+-3.22.30:3 |
49 |
gnome-base/dconf |
51 |
gnome-base/dconf |
50 |
net-libs/webkit-gtk:4= |
52 |
>=net-libs/webkit-gtk-2.14.1:4= |
51 |
aqbanking? ( sys-libs/gwenhywfar[gtk] ) |
53 |
aqbanking? ( sys-libs/gwenhywfar[gtk] ) |
52 |
) |
54 |
) |
53 |
mysql? ( |
55 |
mysql? ( |
Lines 73-85
Link Here
|
73 |
|
75 |
|
74 |
DEPEND="${RDEPEND} |
76 |
DEPEND="${RDEPEND} |
75 |
>=dev-cpp/gtest-1.8.0 |
77 |
>=dev-cpp/gtest-1.8.0 |
76 |
>=sys-devel/gettext-0.19.6 |
78 |
>=sys-devel/gettext-0.20 |
77 |
dev-lang/perl |
79 |
dev-lang/perl |
78 |
dev-perl/XML-Parser |
80 |
dev-perl/XML-Parser |
79 |
sys-devel/libtool |
81 |
sys-devel/libtool |
80 |
virtual/pkgconfig |
82 |
virtual/pkgconfig |
81 |
" |
83 |
" |
82 |
|
84 |
|
|
|
85 |
BDEPEND=">=dev-lang/swig-3.0.12" |
86 |
|
83 |
PDEPEND="doc? ( |
87 |
PDEPEND="doc? ( |
84 |
~app-doc/gnucash-docs-${PV} |
88 |
~app-doc/gnucash-docs-${PV} |
85 |
gnome-extra/yelp |
89 |
gnome-extra/yelp |
Lines 93-117
Link Here
|
93 |
|
97 |
|
94 |
S="${WORKDIR}/${PN}-$(ver_cut 1-2)" |
98 |
S="${WORKDIR}/${PN}-$(ver_cut 1-2)" |
95 |
|
99 |
|
|
|
100 |
pkg_pretend() { |
101 |
if tc-is-gcc; then |
102 |
if [[ $(gcc-major-version) -lt 8 ]]; then |
103 |
die "Gnucash needs at least GCC version 8." |
104 |
fi |
105 |
elif tc-is-clang; then |
106 |
if [[ $(clang-major-version) -lt 6 ]]; then |
107 |
die "Gnucash needs at least clang version 6." |
108 |
fi |
109 |
fi |
110 |
} |
111 |
|
96 |
pkg_setup() { |
112 |
pkg_setup() { |
97 |
use python && python-single-r1_pkg_setup |
113 |
use python && python-single-r1_pkg_setup |
98 |
xdg_environment_reset |
114 |
xdg_environment_reset |
99 |
} |
115 |
} |
100 |
|
116 |
|
101 |
src_prepare() { |
117 |
src_prepare() { |
102 |
cmake-utils_src_prepare |
118 |
cmake_src_prepare |
103 |
|
119 |
|
104 |
# Fix tests writing to /tmp |
120 |
# Fix tests writing to /tmp |
105 |
local fixtestfiles=( |
121 |
local fixtestfiles=( |
106 |
"${S}"/gnucash/report/report-system/test/test-commodity-utils.scm |
122 |
gnucash/report/test/test-report-html.scm |
107 |
"${S}"/gnucash/report/report-system/test/test-extras.scm |
123 |
gnucash/report/reports/standard/test/test-invoice.scm |
108 |
"${S}"/gnucash/report/report-system/test/test-report-html.scm |
124 |
gnucash/report/reports/standard/test/test-new-owner-report.scm |
109 |
"${S}"/gnucash/report/report-system/test/test-report-system.scm |
125 |
gnucash/report/reports/standard/test/test-owner-report.scm |
110 |
"${S}"/libgnucash/backend/xml/test/test-xml-pricedb.cpp |
126 |
gnucash/report/reports/standard/test/test-transaction.scm |
111 |
"${S}"/libgnucash/backend/dbi/test/test-backend-dbi-basic.cpp |
127 |
gnucash/report/reports/standard/test/test-portfolios.scm |
|
|
128 |
gnucash/report/reports/standard/test/test-charts.scm |
129 |
gnucash/report/test/test-report.scm |
130 |
gnucash/report/test/test-commodity-utils.scm |
131 |
gnucash/report/test/test-report-extras.scm |
132 |
libgnucash/backend/dbi/test/test-backend-dbi-basic.cpp |
133 |
libgnucash/backend/xml/test/test-xml-pricedb.cpp |
112 |
) |
134 |
) |
113 |
for x in "${fixtestfiles[@]}"; do |
135 |
for x in "${fixtestfiles[@]}"; do |
114 |
sed -i -e "s|\"/tmp/|\"${T}/|g" "${x}" || die "sed of "${x}" failed" |
136 |
sed -i -e "s|\"/tmp/|\"${T}/|g" "${S}/${x}" || die "sed of "${S}/${x}" failed" |
115 |
done |
137 |
done |
116 |
} |
138 |
} |
117 |
|
139 |
|
Lines 134-140
Link Here
|
134 |
-DWITH_GNUCASH=$(usex gui) |
156 |
-DWITH_GNUCASH=$(usex gui) |
135 |
) |
157 |
) |
136 |
|
158 |
|
137 |
cmake-utils_src_configure |
159 |
cmake_src_configure |
138 |
} |
160 |
} |
139 |
|
161 |
|
140 |
src_test() { |
162 |
src_test() { |
Lines 168-176
Link Here
|
168 |
} |
190 |
} |
169 |
|
191 |
|
170 |
src_install() { |
192 |
src_install() { |
171 |
cmake-utils_src_install |
193 |
cmake_src_install |
172 |
|
|
|
173 |
rm "${ED}"/usr/share/doc/${PF}/*win32-bin.txt |
174 |
|
194 |
|
175 |
if use examples ; then |
195 |
if use examples ; then |
176 |
docompress -x /usr/share/doc/${PF}/examples |
196 |
docompress -x /usr/share/doc/${PF}/examples |
Lines 178-186
Link Here
|
178 |
rm -r "${ED}"/usr/share/doc/${PF}/examples |
198 |
rm -r "${ED}"/usr/share/doc/${PF}/examples |
179 |
fi |
199 |
fi |
180 |
|
200 |
|
181 |
use aqbanking && dodoc doc/README.HBCI |
|
|
182 |
use ofx && dodoc doc/README.OFX |
183 |
|
184 |
if use python ; then |
201 |
if use python ; then |
185 |
python_optimize |
202 |
python_optimize |
186 |
python_optimize "${ED}"/usr/share/gnucash/python |
203 |
python_optimize "${ED}"/usr/share/gnucash/python |