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

Collapse All | Expand All

(-)/var/portage/portage/app-office/gnucash/gnucash-2.0.5.ebuild (-29 / +35 lines)
Lines 4-28 Link Here
4
4
5
inherit eutils gnome2
5
inherit eutils gnome2
6
6
7
DOC_VER="2.0.1"
7
DOC_VER="2.2.0"
8
8
9
DESCRIPTION="A personal finance manager."
9
DESCRIPTION="A personal finance manager."
10
HOMEPAGE="http://www.gnucash.org/"
10
HOMEPAGE="http://www.gnucash.org/"
11
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
11
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
12
	mirror://sourceforge/${PN}/${PN}-docs-${DOC_VER}.tar.bz2"
12
	mirror://sourceforge/${PN}/${PN}-docs-${DOC_VER}.tar.gz"
13
13
14
SLOT="0"
14
SLOT="0"
15
LICENSE="GPL-2"
15
LICENSE="GPL-2"
16
KEYWORDS="alpha amd64 ppc sparc x86"
16
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
17
17
18
IUSE="ofx hbci chipcard doc debug quotes nls"
18
IUSE="ofx hbci chipcard doc debug quotes nls"
19
19
20
RDEPEND=">=dev-libs/glib-2.4.0
20
RDEPEND=">=dev-libs/glib-2.6.3
21
	dev-scheme/guile
21
	>=dev-scheme/guile-1.8
22
	~dev-scheme/slib-3.1.1-r1
22
	=dev-scheme/slib-3.1.1*
23
	>=sys-libs/zlib-1.1.4
23
	>=sys-libs/zlib-1.1.4
24
	>=dev-libs/popt-1.5
24
	>=dev-libs/popt-1.5
25
	>=x11-libs/gtk+-2.4
25
	>=x11-libs/gtk+-2.6
26
	>=gnome-base/libgnomeui-2.4
26
	>=gnome-base/libgnomeui-2.4
27
	>=gnome-base/libgnomeprint-2.10
27
	>=gnome-base/libgnomeprint-2.10
28
	>=gnome-base/libgnomeprintui-2.10
28
	>=gnome-base/libgnomeprintui-2.10
Lines 32-41 Link Here
32
		=gnome-extra/gtkhtml-3.10*
32
		=gnome-extra/gtkhtml-3.10*
33
	)
33
	)
34
	>=dev-libs/libxml2-2.5.10
34
	>=dev-libs/libxml2-2.5.10
35
	=dev-libs/g-wrap-1.9.6*
36
	>=gnome-base/gconf-2
35
	>=gnome-base/gconf-2
37
	>=app-text/scrollkeeper-0.3
36
	>=app-text/scrollkeeper-0.3
38
	>=x11-libs/goffice-0.0.4
37
	>=x11-libs/goffice-0.1.0
39
	gnome-extra/yelp
38
	gnome-extra/yelp
40
	ofx? ( >=dev-libs/libofx-0.7.0 )
39
	ofx? ( >=dev-libs/libofx-0.7.0 )
41
	hbci? ( net-libs/aqbanking
40
	hbci? ( net-libs/aqbanking
Lines 46-97 Link Here
46
		dev-perl/HTML-TableExtract )
45
		dev-perl/HTML-TableExtract )
47
	app-text/docbook-xsl-stylesheets
46
	app-text/docbook-xsl-stylesheets
48
	=app-text/docbook-xml-dtd-4.1.2*
47
	=app-text/docbook-xml-dtd-4.1.2*
49
	nls? ( dev-util/intltool )"
48
	nls? ( dev-util/intltool )
49
	media-libs/libart_lgpl
50
	x11-libs/pango"
50
51
51
DEPEND="${RDEPEND}
52
DEPEND="${RDEPEND}
52
	doc? ( app-doc/doxygen
53
	doc? ( app-doc/doxygen
53
		media-gfx/graphviz
54
		media-gfx/graphviz
54
		virtual/tetex )
55
		virtual/tetex )
55
	dev-util/pkgconfig"
56
	dev-util/pkgconfig
57
	sys-devel/libtool
58
	>=dev-lang/swig-1.3.28"
56
59
57
pkg_setup() {
60
pkg_setup() {
58
	built_with_use gnome-extra/libgsf gnome || die "gnome-extra/libgsf must be built with gnome"
61
	local will_die=false
59
	built_with_use x11-libs/goffice gnome || die "x11-libs/goffice must be built with gnome"
62
	if ! built_with_use gnome-extra/libgsf gnome ; then
63
		einfo "gnome-extra/libgsf must be built with gnome use flag"
64
		will_die=true
65
	fi
66
	if ! built_with_use x11-libs/goffice gnome ; then
67
		einfo "x11-libs/goffice must be built with gnome use flag"
68
		will_die=true
69
	fi
60
70
61
	if has_version =dev-scheme/guile-1.8*; then
71
	if has_version =dev-scheme/guile-1.8*; then
62
		local flags="deprecated regex"
72
		local flags="deprecated regex"
63
		if ! built_with_use dev-scheme/guile ${flags}; then
73
		if ! built_with_use dev-scheme/guile ${flags}; then
64
			einfo "guile must be built with \"${flags}\" use flags"
74
			einfo "dev-scheme/guile must be built with \"${flags}\" use flags"
65
			die "guile must be built with \"${flags}\" use flags"
75
			will_die=true
66
		fi
76
		fi
67
	fi
77
	fi
78
	if ${will_die}; then
79
		die "Please rebuilt the packages with the use flags above."
80
	fi
68
}
81
}
69
82
70
src_compile() {
83
src_compile() {
71
72
	local myconf
73
74
	if use doc ; then
75
		myconf="${myconf} --enable-latex-docs"
76
	fi
77
78
	econf \
84
	econf \
79
		$(use_enable debug) \
85
		$(use_enable debug) \
80
		$(use_enable ofx) \
86
		$(use_enable ofx) \
81
		$(use_enable doc doxygen) \
87
		$(use_enable doc doxygen) \
82
		$(use_enable doc html-docs) \
88
		$(use_enable doc html-docs) \
89
		$(use_enable doc latex-docs) \
83
		$(use_enable doc dot) \
90
		$(use_enable doc dot) \
84
		$(use_enable hbci) \
91
		$(use_enable hbci) \
85
		$(use_enable hbci mt940) \
86
		--enable-locale-specific-tax \
92
		--enable-locale-specific-tax \
87
		${myconf} || die "econf failed"
93
		|| die "econf failed"
88
94
89
	MAKEOPTS="-j1"
90
	emake || die "emake failed"
95
	emake || die "emake failed"
96
#	emake -j1 || die "emake failed"
91
97
92
	cd "${WORKDIR}/gnucash-docs-${DOC_VER}"
98
	cd "${WORKDIR}/gnucash-docs-${DOC_VER}"
93
	econf || die "doc econf failed"
99
	econf || die "doc econf failed"
94
	emake || die "doc emake failed"
100
	emake || die "doc emake failed"
101
#	emake -j1 || die "doc emake failed"
95
}
102
}
96
103
97
src_test() {
104
src_test() {
Lines 106-112 Link Here
106
src_install() {
113
src_install() {
107
	gnome2_src_install || die "gnome2_src_install failed"
114
	gnome2_src_install || die "gnome2_src_install failed"
108
	dodoc AUTHORS ChangeLog* DOCUMENTERS HACKING INSTALL NEWS TODO README* doc/README*
115
	dodoc AUTHORS ChangeLog* DOCUMENTERS HACKING INSTALL NEWS TODO README* doc/README*
109
	make_desktop_entry ${P} "GnuCash ${PV}" gnucash-icon.png "GNOME;Office;Finance"
110
116
111
	cd "${WORKDIR}/${PN}-docs-${DOC_VER}"
117
	cd "${WORKDIR}/${PN}-docs-${DOC_VER}"
112
	make DESTDIR="${D}" \
118
	make DESTDIR="${D}" \
Lines 116-122 Link Here
116
}
122
}
117
123
118
pkg_postinst() {
124
pkg_postinst() {
119
	elog "Please note that postgresql support has been removed."
125
	ewarn "If you are using Scheduled Transactions, the data file saved by"
120
	elog "Please see: https://bugs.gentoo.org/show_bug.cgi?id=146769#c9"
126
	ewarn "GnuCash 2.2 is NOT backward-compatible with GnuCash 2.0."
121
	elog "for an explanation."
127
	ewarn "Please make a safe backup of your 2.0 data before upgrading to 2.2"
122
}
128
}

Return to bug 174967