Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-office/gnucash: ChangeLog gnucash-2.4.7.ebuild
Date: Mon, 29 Aug 2011 16:00:00
Message-Id: 20110829155950.DF4F92004C@flycatcher.gentoo.org
1 pacho 11/08/29 15:59:50
2
3 Modified: ChangeLog
4 Added: gnucash-2.4.7.ebuild
5 Log:
6 Version bump, find python in a faster way, bug #344231, thanks a lot to Arfrever Frehtes Taifersar Arahesis and Ed Catmur for their help.
7
8 (Portage version: 2.1.10.11/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.243 app-office/gnucash/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/gnucash/ChangeLog?rev=1.243&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/gnucash/ChangeLog?rev=1.243&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/gnucash/ChangeLog?r1=1.242&r2=1.243
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-office/gnucash/ChangeLog,v
20 retrieving revision 1.242
21 retrieving revision 1.243
22 diff -u -r1.242 -r1.243
23 --- ChangeLog 24 Jul 2011 10:59:27 -0000 1.242
24 +++ ChangeLog 29 Aug 2011 15:59:50 -0000 1.243
25 @@ -1,6 +1,13 @@
26 # ChangeLog for app-office/gnucash
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-office/gnucash/ChangeLog,v 1.242 2011/07/24 10:59:27 armin76 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-office/gnucash/ChangeLog,v 1.243 2011/08/29 15:59:50 pacho Exp $
30 +
31 +*gnucash-2.4.7 (29 Aug 2011)
32 +
33 + 29 Aug 2011; Pacho Ramos <pacho@g.o> +gnucash-2.4.7.ebuild,
34 + +files/gnucash-2.4.7-python-detection.patch:
35 + Version bump, find python in a faster way, bug #344231, thanks a lot to
36 + Arfrever Frehtes Taifersar Arahesis and Ed Catmur for their help.
37
38 24 Jul 2011; Raúl Porcel <armin76@g.o> gnucash-2.4.5.ebuild,
39 gnucash-2.4.6.ebuild:
40
41
42
43 1.1 app-office/gnucash/gnucash-2.4.7.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/gnucash/gnucash-2.4.7.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/gnucash/gnucash-2.4.7.ebuild?rev=1.1&content-type=text/plain
47
48 Index: gnucash-2.4.7.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-office/gnucash/gnucash-2.4.7.ebuild,v 1.1 2011/08/29 15:59:50 pacho Exp $
53
54 EAPI="3"
55 GNOME2_LA_PUNT="yes"
56 GCONF_DEBUG="no"
57 PYTHON_DEPEND="python? 2:2.4"
58
59 inherit gnome2 python eutils autotools
60
61 DOC_VER="2.2.0"
62
63 DESCRIPTION="A personal finance manager"
64 HOMEPAGE="http://www.gnucash.org/"
65 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
66
67 SLOT="0"
68 LICENSE="GPL-2"
69 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
70 IUSE="chipcard cxx debug +doc hbci mysql ofx postgres python quotes sqlite webkit"
71
72 # FIXME: rdepend on dev-libs/qof when upstream fix their mess (see configure.in)
73
74 RDEPEND=">=dev-libs/glib-2.13:2
75 >=dev-libs/popt-1.5
76 >=dev-libs/libxml2-2.5.10:2
77 >=dev-scheme/guile-1.8.3:12[deprecated,regex]
78 dev-scheme/guile-www
79 >=dev-scheme/slib-3.1.4
80 >=gnome-base/gconf-2:2
81 >=gnome-base/libgnomeui-2.4
82 >=gnome-base/libglade-2.4:2.0
83 || ( <gnome-base/gnome-keyring-2.29 gnome-base/libgnome-keyring )
84 media-libs/libart_lgpl
85 >=sys-libs/zlib-1.1.4
86 >=x11-libs/gtk+-2.14:2
87 x11-libs/goffice:0.8[gnome]
88 x11-libs/pango
89 cxx? ( dev-cpp/gtkmm:2.4 )
90 ofx? ( >=dev-libs/libofx-0.9.1 )
91 hbci? ( >=net-libs/aqbanking-5[gtk]
92 sys-libs/gwenhywfar[gtk]
93 chipcard? ( sys-libs/libchipcard )
94 )
95 quotes? ( dev-perl/DateManip
96 >=dev-perl/Finance-Quote-1.11
97 dev-perl/HTML-TableExtract )
98 webkit? ( net-libs/webkit-gtk:2 )
99 !webkit? ( >=gnome-extra/gtkhtml-3.16:3.14 )
100 sqlite? ( dev-db/libdbi dev-db/libdbi-drivers[sqlite3] )
101 postgres? ( dev-db/libdbi dev-db/libdbi-drivers[postgres] )
102 mysql? ( dev-db/libdbi dev-db/libdbi-drivers[mysql] )
103 "
104 DEPEND="${RDEPEND}
105 >=app-text/scrollkeeper-0.3
106 dev-util/pkgconfig
107 dev-util/intltool
108 gnome-base/gnome-common
109 sys-devel/libtool
110 "
111
112 PDEPEND="doc? ( >=app-doc/gnucash-docs-${DOC_VER} )"
113
114 pkg_setup() {
115 DOCS="doc/README.OFX doc/README.HBCI"
116
117 if use webkit ; then
118 G2CONF+=" --with-html-engine=webkit"
119 else
120 G2CONF+=" --with-html-engine=gtkhtml"
121 fi
122
123 if use sqlite || use mysql || use postgres ; then
124 G2CONF+=" --enable-dbi"
125 else
126 G2CONF+=" --disable-dbi"
127 fi
128
129 G2CONF+="
130 $(use_enable cxx gtkmm)
131 $(use_enable debug)
132 $(use_enable ofx)
133 $(use_enable hbci aqbanking)
134 $(use_enable python python-bindings)
135 --disable-doxygen
136 --enable-locale-specific-tax
137 --disable-error-on-warning"
138
139 if use python ; then
140 python_set_active_version 2
141 fi
142 }
143
144 src_configure() {
145 # guile wrongly exports LDFLAGS as LIBS which breaks modules
146 # Filter until a better ebuild is available, bug #202205
147 local GUILE_LIBS=""
148 local lib
149 for lib in $(guile-config link); do
150 if [ "${lib#-Wl}" = "$lib" ]; then
151 GUILE_LIBS="$GUILE_LIBS $lib"
152 fi
153 done
154
155 econf GUILE_LIBS="${GUILE_LIBS}" ${G2CONF}
156 }
157
158 src_prepare() {
159 gnome2_src_prepare
160 : > "${S}"/py-compile
161
162 use python && python_convert_shebangs -r 2 .
163
164 # Disable python binding tests because of missing file
165 sed 's/^\(SUBDIRS =.*\)tests\(.*\)$/\1\2/' \
166 -i src/optional/python-bindings/Makefile.{am,in} \
167 || die "python tests sed failed"
168
169 # Find python in a faster way, bug #344231, upstream bug #????
170 epatch "${FILESDIR}/${PN}-2.4.7-python-detection.patch"
171
172 intltoolize --force --copy --automake || die "intltoolize failed"
173 eautoreconf
174 }
175
176 src_test() {
177 unset DBUS_SESSION_BUS_ADDRESS
178 GUILE_WARN_DEPRECATED=no \
179 GNC_DOT_DIR="${T}"/.gnucash \
180 emake check \
181 || die "Make check failed. See above for details."
182 }
183
184 src_install() {
185 # Parallel installation fails from time to time, bug #359123
186 MAKEOPTS="${MAKEOPTS} -j1" gnome2_src_install GNC_DOC_INSTALL_DIR=/usr/share/doc/${PF}
187
188 rm -rf "${ED}"/usr/share/doc/${PF}/{examples/,COPYING,INSTALL,*win32-bin.txt,projects.html}
189 mv "${ED}"/usr/share/doc/${PF} "${T}"/cantuseprepalldocs || die
190 dodoc "${T}"/cantuseprepalldocs/* || die
191 }