Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 726804 | Differences between
and this patch

Collapse All | Expand All

(-)gnucash-3.8b-r1.ebuild (-23 / +38 lines)
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-79 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
Lines 93-117 Link Here
93
95
94
S="${WORKDIR}/${PN}-$(ver_cut 1-2)"
96
S="${WORKDIR}/${PN}-$(ver_cut 1-2)"
95
97
98
pkg_pretend() {
99
	if tc-is-gcc; then
100
		if [[ $(gcc-major-version) -lt 8 ]]; then
101
			die "Gnucash needs at least GCC version 8."
102
		fi
103
	elif tc-is-clang; then
104
		if [[ $(clang-major-version) -lt 6 ]]; then
105
			die "Gnucash needs at least clang version 6."
106
		fi
107
	fi
108
}
109
96
pkg_setup() {
110
pkg_setup() {
97
	use python && python-single-r1_pkg_setup
111
	use python && python-single-r1_pkg_setup
98
	xdg_environment_reset
112
	xdg_environment_reset
99
}
113
}
100
114
101
src_prepare() {
115
src_prepare() {
102
	cmake-utils_src_prepare
116
	cmake_src_prepare
103
117
104
	# Fix tests writing to /tmp
118
	# Fix tests writing to /tmp
105
	local fixtestfiles=(
119
	local fixtestfiles=(
106
		"${S}"/gnucash/report/report-system/test/test-commodity-utils.scm
120
		gnucash/report/test/test-report-html.scm
107
		"${S}"/gnucash/report/report-system/test/test-extras.scm
121
		gnucash/report/reports/standard/test/test-invoice.scm
108
		"${S}"/gnucash/report/report-system/test/test-report-html.scm
122
		gnucash/report/reports/standard/test/test-new-owner-report.scm
109
		"${S}"/gnucash/report/report-system/test/test-report-system.scm
123
		gnucash/report/reports/standard/test/test-owner-report.scm
110
		"${S}"/libgnucash/backend/xml/test/test-xml-pricedb.cpp
124
		gnucash/report/reports/standard/test/test-transaction.scm
111
		"${S}"/libgnucash/backend/dbi/test/test-backend-dbi-basic.cpp
125
		gnucash/report/reports/standard/test/test-portfolios.scm
126
		gnucash/report/reports/standard/test/test-charts.scm
127
		gnucash/report/test/test-report.scm
128
		gnucash/report/test/test-commodity-utils.scm
129
		gnucash/report/test/test-report-extras.scm
130
		libgnucash/backend/dbi/test/test-backend-dbi-basic.cpp
131
		libgnucash/backend/xml/test/test-xml-pricedb.cpp
112
	)
132
	)
113
	for x in "${fixtestfiles[@]}"; do
133
	for x in "${fixtestfiles[@]}"; do
114
		sed -i -e "s|\"/tmp/|\"${T}/|g" "${x}" || die "sed of "${x}" failed"
134
		sed -i -e "s|\"/tmp/|\"${T}/|g" "${S}/${x}" || die "sed of "${S}/${x}" failed"
115
	done
135
	done
116
}
136
}
117
137
Lines 134-140 Link Here
134
		-DWITH_GNUCASH=$(usex gui)
154
		-DWITH_GNUCASH=$(usex gui)
135
	)
155
	)
136
156
137
	cmake-utils_src_configure
157
	cmake_src_configure
138
}
158
}
139
159
140
src_test() {
160
src_test() {
Lines 168-176 Link Here
168
}
188
}
169
189
170
src_install() {
190
src_install() {
171
	cmake-utils_src_install
191
	cmake_src_install
172
173
	rm "${ED}"/usr/share/doc/${PF}/*win32-bin.txt
174
192
175
	if use examples ; then
193
	if use examples ; then
176
		docompress -x /usr/share/doc/${PF}/examples
194
		docompress -x /usr/share/doc/${PF}/examples
Lines 178-186 Link Here
178
		rm -r "${ED}"/usr/share/doc/${PF}/examples
196
		rm -r "${ED}"/usr/share/doc/${PF}/examples
179
	fi
197
	fi
180
198
181
	use aqbanking && dodoc doc/README.HBCI
182
	use ofx && dodoc doc/README.OFX
183
184
	if use python ; then
199
	if use python ; then
185
		python_optimize
200
		python_optimize
186
		python_optimize "${ED}"/usr/share/gnucash/python
201
		python_optimize "${ED}"/usr/share/gnucash/python

Return to bug 726804