|
Lines 20-44
Link Here
|
| 20 |
|
20 |
|
| 21 |
# Add doc back in for 3.0 and bump app-doc/gnucash-docs |
21 |
# Add doc back in for 3.0 and bump app-doc/gnucash-docs |
| 22 |
IUSE="aqbanking chipcard debug examples gnome-keyring mysql nls ofx postgres |
22 |
IUSE="aqbanking chipcard debug examples gnome-keyring mysql nls ofx postgres |
| 23 |
python quotes -register2 sqlite" |
23 |
python quotes -register2 sqlite gtk+" |
| 24 |
REQUIRED_USE=" |
24 |
REQUIRED_USE=" |
| 25 |
chipcard? ( aqbanking ) |
25 |
chipcard? ( aqbanking ) |
| 26 |
python? ( ${PYTHON_REQUIRED_USE} )" |
26 |
python? ( ${PYTHON_REQUIRED_USE} )" |
| 27 |
|
27 |
|
| 28 |
# libdbi version requirement for sqlite taken from bug #455134 |
|
|
| 29 |
# |
| 30 |
# dev-libs/boost must always be built with nls enabled. |
| 31 |
RDEPEND=" |
28 |
RDEPEND=" |
| 32 |
>=dev-libs/glib-2.40.0:2 |
29 |
>=dev-libs/glib-2.40.0:2 |
| 33 |
>=dev-libs/libxml2-2.7.0:2 |
30 |
>=dev-libs/libxml2-2.7.0:2 |
| 34 |
>=dev-scheme/guile-2.0.0:12=[regex] |
|
|
| 35 |
>=sys-libs/zlib-1.1.4 |
31 |
>=sys-libs/zlib-1.1.4 |
| 36 |
>=x11-libs/gtk+-3.14.0:3 |
32 |
>=dev-scheme/guile-2.0.0:12=[regex] |
|
|
33 |
gtk+? ( |
| 34 |
>=x11-libs/gtk+-3.14.0:3 |
| 35 |
gnome-base/dconf |
| 36 |
net-libs/webkit-gtk:4= |
| 37 |
) |
| 37 |
dev-libs/boost:=[icu,nls] |
38 |
dev-libs/boost:=[icu,nls] |
| 38 |
dev-libs/icu:= |
39 |
dev-libs/icu:= |
| 39 |
dev-libs/libxslt |
40 |
dev-libs/libxslt |
| 40 |
gnome-base/dconf |
|
|
| 41 |
net-libs/webkit-gtk:4= |
| 42 |
aqbanking? ( |
41 |
aqbanking? ( |
| 43 |
>=net-libs/aqbanking-5[gtk,ofx?] |
42 |
>=net-libs/aqbanking-5[gtk,ofx?] |
| 44 |
sys-libs/gwenhywfar[gtk] |
43 |
sys-libs/gwenhywfar[gtk] |
|
Lines 71-88
Link Here
|
| 71 |
dev-lang/perl |
70 |
dev-lang/perl |
| 72 |
dev-perl/XML-Parser |
71 |
dev-perl/XML-Parser |
| 73 |
dev-util/intltool |
72 |
dev-util/intltool |
| 74 |
gnome-base/gnome-common |
73 |
gtk+? ( gnome-base/gnome-common ) |
| 75 |
sys-devel/libtool |
74 |
sys-devel/libtool |
| 76 |
virtual/pkgconfig |
75 |
virtual/pkgconfig |
| 77 |
" |
76 |
" |
| 78 |
|
77 |
|
| 79 |
# Uncomment for 3.0 |
78 |
PATCHES=( "${FILESDIR}"/${PN}_compile_without_webkit.patch ) |
| 80 |
# PDEPEND="doc? ( |
|
|
| 81 |
# ~app-doc/gnucash-docs-${PV} |
| 82 |
# gnome-extra/yelp |
| 83 |
# )" |
| 84 |
|
| 85 |
PATCHES=( "${FILESDIR}"/${PN}-2.7.4-fix-tests-for-32bit-platforms.patch ) |
| 86 |
|
79 |
|
| 87 |
pkg_setup() { |
80 |
pkg_setup() { |
| 88 |
use python && python-single-r1_pkg_setup |
81 |
use python && python-single-r1_pkg_setup |
|
Lines 105-110
Link Here
|
| 105 |
-DWITH_OFX=$(usex ofx) |
98 |
-DWITH_OFX=$(usex ofx) |
| 106 |
-DWITH_PYTHON=$(usex python) |
99 |
-DWITH_PYTHON=$(usex python) |
| 107 |
-DWITH_SQL=${sql_on_off} |
100 |
-DWITH_SQL=${sql_on_off} |
|
|
101 |
-DWITH_GNUCASH=$(usex gtk+) |
| 108 |
) |
102 |
) |
| 109 |
|
103 |
|
| 110 |
cmake-utils_src_configure |
104 |
cmake-utils_src_configure |
|
Lines 123-131
Link Here
|
| 123 |
src_install() { |
117 |
src_install() { |
| 124 |
cmake-utils_src_install |
118 |
cmake-utils_src_install |
| 125 |
|
119 |
|
| 126 |
rm "${ED%/}"/usr/share/doc/${PF}/README.dependencies || die |
|
|
| 127 |
rm "${ED%/}"/usr/share/glib-2.0/schemas/gschemas.compiled || die |
| 128 |
|
| 129 |
if use examples ; then |
120 |
if use examples ; then |
| 130 |
mv "${ED%/}"/usr/share/doc/gnucash \ |
121 |
mv "${ED%/}"/usr/share/doc/gnucash \ |
| 131 |
"${ED%/}"/usr/share/doc/${PF}/examples || die |
122 |
"${ED%/}"/usr/share/doc/${PF}/examples || die |
|
Lines 138-150
Link Here
|
| 138 |
rm -r "${ED%/}"/usr/share/doc/gnucash || die |
129 |
rm -r "${ED%/}"/usr/share/doc/gnucash || die |
| 139 |
fi |
130 |
fi |
| 140 |
|
131 |
|
| 141 |
use aqbanking && dodoc doc/README.HBCI |
|
|
| 142 |
use ofx && dodoc doc/README.OFX |
| 143 |
} |
132 |
} |
| 144 |
|
133 |
|
| 145 |
pkg_postinst() { |
134 |
pkg_postinst() { |
| 146 |
gnome2_icon_cache_update |
135 |
if use gtk+ ; then |
| 147 |
gnome2_schemas_update |
136 |
gnome2_icon_cache_update |
|
|
137 |
gnome2_schemas_update |
| 138 |
fi |
| 148 |
xdg_desktop_database_update |
139 |
xdg_desktop_database_update |
| 149 |
xdg_mimeinfo_database_update |
140 |
xdg_mimeinfo_database_update |
| 150 |
|
141 |
|
|
Lines 155-162
Link Here
|
| 155 |
} |
146 |
} |
| 156 |
|
147 |
|
| 157 |
pkg_postrm() { |
148 |
pkg_postrm() { |
| 158 |
gnome2_icon_cache_update |
149 |
if use gtk+ ; then |
| 159 |
gnome2_schemas_update |
150 |
gnome2_icon_cache_update |
|
|
151 |
gnome2_schemas_update |
| 152 |
fi |
| 160 |
xdg_desktop_database_update |
153 |
xdg_desktop_database_update |
| 161 |
xdg_mimeinfo_database_update |
154 |
xdg_mimeinfo_database_update |
| 162 |
} |
155 |
} |