blob: d1807c365227fe3ede6288e7e2ebeace53d5ba49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-office/gnucash/gnucash-1.8.12.ebuild,v 1.1 2005/10/27 12:48:50 seemant Exp $
inherit flag-o-matic libtool eutils
# won't configure with this
filter-flags -fomit-frame-pointer
# gnucash uses GLIB_INLINE, this will break it
filter-flags -fno-inline
DOC_VER="1.8.5"
IUSE="nls postgres ofx hbci quotes chipcard"
DESCRIPTION="A personal finance manager"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
mirror://sourceforge/${PN}/${PN}-docs-${DOC_VER}.tar.gz"
HOMEPAGE="http://www.gnucash.org/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
RDEPEND=">=gnome-base/gnome-libs-1.4.1.2-r1
>=dev-util/guile-1.6
amd64? ( >=dev-util/guile-1.6.4-r2 )
>=dev-libs/slib-2.3.8
>=media-libs/libpng-1.0.9
>=media-libs/jpeg-6b
>=sys-libs/zlib-1.1.4
>=gnome-base/gnome-print-0.21
media-libs/gdk-pixbuf
>=gnome-extra/gtkhtml-0.14.0
<gnome-extra/gal-1.99
>=dev-libs/libxml-1.8.3
>=dev-libs/g-wrap-1.3.4
>=gnome-extra/guppi-0.35.5-r2
>=dev-libs/popt-1.5
>=app-text/scrollkeeper-0.3.1
app-text/docbook-xsl-stylesheets
=app-text/docbook-xml-dtd-4.1.2*
=sys-libs/db-1*
ofx? ( >=dev-libs/libofx-0.7.0 )
hbci? ( net-libs/aqbanking
chipcard? ( sys-libs/libchipcard )
)
quotes? ( dev-perl/DateManip
dev-perl/Finance-Quote
dev-perl/HTML-TableExtract )
postgres? ( dev-db/postgresql )"
DEPEND="${RDEPEND}
>=dev-lang/perl-5
>=dev-libs/slib-2.3.8
>=dev-lang/swig-1.3_alpha4
<gnome-base/libglade-2
gnome-base/libghttp
dev-util/pkgconfig
nls? ( sys-devel/gettext )"
MAKEOPTS="${MAKEOPTS} -j1"
pkg_setup() {
if built_with_use virtual/x11 bitmap-fonts
then
einfo "bitmap-fonts support is enabled in virtual/x11, continuing..."
else
eerror "Please rebuild virtual/x11 with bitmap font support!"
eerror "To do so: USE=\"bitmap-fonts\" emerge virtual/x11"
eerror "Or, add \"bitmap-fonts\" to your USE string in"
eerror "/etc/make.conf"
die "Will not build gnucash without bitmap-fonts support in virtual/x11"
fi
if use postgres; then
echo
ewarn "The postgreSQL backend is badly out of date, and will"
ewarn "probably go away in future releases of gnucash, in favour"
ewarn "of sqlite (at least initially). Please see bug #109920"
echo
fi
}
src_compile() {
elibtoolize
append-ldflags -L/usr/X11R6/$(get_libdir)
econf \
--enable-etags \
--enable-ctags \
--enable-compile-warnings=no \
--disable-error-on-warning \
`use_enable postgres sql` \
`use_enable nls` \
`use_enable ofx` \
`use_enable hbci` \
${myconf} || die "configure failed"
emake || die "make failed"
cd ${WORKDIR}/${PN}-docs-${DOC_VER}
econf --localstatedir=/var/lib || die "doc configure failed"
emake || die "doc make failed"
}
src_install() {
einstall pkgdatadir=${D}/usr/share/gnucash || die "install failed"
dodoc ABOUT-NLS AUTHORS ChangeLog HACKING NEWS README* TODO
dodoc docs/README*
cd ${WORKDIR}/${PN}-docs-${DOC_VER}
make DESTDIR=${D} \
scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper \
install || die "doc install failed"
rm -rf ${D}/var/lib/scrollkeeper
}
pkg_postinst() {
if [ -x ${ROOT}/usr/bin/scrollkeeper-update ]; then
echo ">>> Updating Scrollkeeper"
scrollkeeper-update -q -p ${ROOT}/var/lib/scrollkeeper
fi
if use postgres; then
echo
ewarn "The postgreSQL backend is badly out of date, and will"
ewarn "probably go away in future releases of gnucash, in favour"
ewarn "of sqlite (at least initially). Please see bug #109920"
echo
fi
if ! use quotes; then
ewarn
einfo "If you wish to enable Online Stock Quotes Retrieval,"
einfo "Please re-emerge gnucash with USE=\"quotes\""
ewarn
fi
}
pkg_postrm() {
if [ -x ${ROOT}/usr/bin/scrollkeeper-update ]; then
echo ">>> Updating Scrollkeeper"
scrollkeeper-update -q -p ${ROOT}/var/lib/scrollkeeper
fi
}
|