Gentoo Archives: gentoo-commits

From: Aaron Swenson <titanofold@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-office/gnucash/
Date: Sun, 25 Mar 2018 14:01:13
Message-Id: 1521986457.5b63feab6361c8076ac6d33b9d8b59568776ac58.titanofold@gentoo
1 commit: 5b63feab6361c8076ac6d33b9d8b59568776ac58
2 Author: Aaron W. Swenson <titanofold <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 25 14:00:57 2018 +0000
4 Commit: Aaron Swenson <titanofold <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 25 14:00:57 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b63feab
7
8 app-office/gnucash: Drop Incorrect PYTHON_COMPAT
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 app-office/gnucash/gnucash-2.7.7.ebuild | 162 --------------------------------
13 1 file changed, 162 deletions(-)
14
15 diff --git a/app-office/gnucash/gnucash-2.7.7.ebuild b/app-office/gnucash/gnucash-2.7.7.ebuild
16 deleted file mode 100644
17 index 11fc957fcff..00000000000
18 --- a/app-office/gnucash/gnucash-2.7.7.ebuild
19 +++ /dev/null
20 @@ -1,162 +0,0 @@
21 -# Copyright 1999-2018 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=6
25 -
26 -# google{test,mock} version
27 -GV="1.8.0"
28 -PYTHON_COMPAT=( python2_7 )
29 -
30 -inherit cmake-utils gnome2-utils python-single-r1 xdg-utils
31 -
32 -DESCRIPTION="A personal finance manager"
33 -HOMEPAGE="http://www.gnucash.org/"
34 -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
35 - https://github.com/google/googletest/archive/release-${GV}.tar.gz -> gtest-${GV}.tar.gz"
36 -
37 -SLOT="0"
38 -LICENSE="GPL-2"
39 -KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
40 -
41 -# Add doc back in for 3.0 and bump app-doc/gnucash-docs
42 -IUSE="aqbanking chipcard debug examples gnome-keyring mysql nls ofx postgres
43 - python quotes -register2 sqlite"
44 -REQUIRED_USE="
45 - chipcard? ( aqbanking )
46 - python? ( ${PYTHON_REQUIRED_USE} )"
47 -
48 -# libdbi version requirement for sqlite taken from bug #455134
49 -#
50 -# dev-libs/boost must always be built with nls enabled.
51 -RDEPEND="
52 - >=dev-libs/glib-2.40.0:2
53 - >=dev-libs/libxml2-2.7.0:2
54 - >=dev-scheme/guile-2.0.0:12=[regex]
55 - >=sys-libs/zlib-1.1.4
56 - >=x11-libs/gtk+-3.14.0:3
57 - dev-libs/boost:=[icu,nls]
58 - dev-libs/icu:=
59 - dev-libs/libxslt
60 - gnome-base/dconf
61 - net-libs/webkit-gtk:4=
62 - aqbanking? (
63 - >=net-libs/aqbanking-5[gtk,ofx?]
64 - sys-libs/gwenhywfar[gtk]
65 - chipcard? ( sys-libs/libchipcard )
66 - )
67 - gnome-keyring? ( >=app-crypt/libsecret-0.18 )
68 - mysql? (
69 - dev-db/libdbi
70 - dev-db/libdbi-drivers[mysql]
71 - )
72 - ofx? ( >=dev-libs/libofx-0.9.1 )
73 - postgres? (
74 - dev-db/libdbi
75 - dev-db/libdbi-drivers[postgres]
76 - )
77 - python? ( ${PYTHON_DEPS} )
78 - quotes? (
79 - >=dev-perl/Finance-Quote-1.11
80 - dev-perl/Date-Manip
81 - dev-perl/HTML-TableExtract
82 - )
83 - sqlite? (
84 - >=dev-db/libdbi-0.9.0
85 - >=dev-db/libdbi-drivers-0.9.0[sqlite]
86 - )
87 -"
88 -
89 -DEPEND="${RDEPEND}
90 - ~dev-cpp/gtest-${GV}
91 - >=sys-devel/gettext-0.19.6
92 - dev-lang/perl
93 - dev-perl/XML-Parser
94 - gnome-base/gnome-common
95 - sys-devel/libtool
96 - virtual/pkgconfig
97 -"
98 -
99 -# Uncomment for 3.0
100 -# PDEPEND="doc? (
101 -# ~app-doc/gnucash-docs-${PV}
102 -# gnome-extra/yelp
103 -# )"
104 -
105 -#PATCHES=( "${FILESDIR}"/${PN}-2.7.4-fix-tests-for-32bit-platforms.patch )
106 -
107 -pkg_setup() {
108 - use python && python-single-r1_pkg_setup
109 - xdg_environment_reset
110 -}
111 -
112 -src_configure() {
113 - local sql_on_off="OFF"
114 - if use mysql || use postgres || use sqlite ; then
115 - sql_on_off="ON"
116 - fi
117 -
118 - local mycmakeargs=(
119 - -DGMOCK_ROOT="${WORKDIR}"/googletest-release-${GV}/googlemock
120 - -DGTEST_ROOT="${WORKDIR}"/googletest-release-${GV}/googletest
121 -
122 - -DDISABLE_NLS=$(usex !nls)
123 - -DENABLE_REGISTER2=$(usex register2)
124 - -DWITH_AQBANKING=$(usex aqbanking)
125 - -DWITH_OFX=$(usex ofx)
126 - -DWITH_PYTHON=$(usex python)
127 - -DWITH_SQL=${sql_on_off}
128 - )
129 -
130 - cmake-utils_src_configure
131 -}
132 -
133 -src_test() {
134 - if use python ; then
135 - cp common/test-core/unittest_support.py \
136 - "${BUILD_DIR}"/common/test-core/ || die
137 - fi
138 -
139 - cd "${BUILD_DIR}" || die
140 - XDG_DATA_HOME="${T}/$(whoami)" emake check
141 -}
142 -
143 -src_install() {
144 - cmake-utils_src_install
145 -
146 - rm "${ED%/}"/usr/share/doc/${PF}/README.dependencies || die
147 - rm "${ED%/}"/usr/share/glib-2.0/schemas/gschemas.compiled || die
148 -
149 - if use examples ; then
150 - mv "${ED%/}"/usr/share/doc/gnucash \
151 - "${ED%/}"/usr/share/doc/${PF}/examples || die
152 - pushd "${ED%/}"/usr/share/doc/${PF}/examples/ > /dev/null || die
153 - rm AUTHORS DOCUMENTERS LICENSE NEWS projects.html ChangeLog* \
154 - *win32-bin.txt || die
155 - popd > /dev/null || die
156 - docompress -x /usr/share/doc/${PF}/examples/
157 - else
158 - rm -r "${ED%/}"/usr/share/doc/gnucash || die
159 - fi
160 -
161 - use aqbanking && dodoc doc/README.HBCI
162 - use ofx && dodoc doc/README.OFX
163 -}
164 -
165 -pkg_postinst() {
166 - gnome2_icon_cache_update
167 - gnome2_schemas_update
168 - xdg_desktop_database_update
169 - xdg_mimeinfo_database_update
170 -
171 - ewarn "Backup all financial files or databases before using GnuCash >=2.7.0!"
172 - ewarn
173 - ewarn "GnuCash 2.7.0 introduced large changes in its file format and database"
174 - ewarn "schema that WILL prevent you from reverting back to GnuCash 2.6."
175 -}
176 -
177 -pkg_postrm() {
178 - gnome2_icon_cache_update
179 - gnome2_schemas_update
180 - xdg_desktop_database_update
181 - xdg_mimeinfo_database_update
182 -}