76 lines
1.5 KiB
Bash
76 lines
1.5 KiB
Bash
# Copyright 1999-2006 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id:$
|
|
|
|
inherit eutils
|
|
|
|
IUSE="print nls ofx"
|
|
|
|
DESCRIPTION="Grisbi is a personal accounting application for Linux"
|
|
HOMEPAGE="http://www.grisbi.org"
|
|
SRC_URI="mirror://sourceforge/grisbi/${P}.tar.bz2"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
|
|
|
|
DEPEND="dev-libs/libxml2
|
|
>=dev-util/pkgconfig-0.20
|
|
>=x11-libs/gtk+-2.2.0
|
|
ofx? ( >=dev-libs/libofx-0.7.0 )
|
|
print? ( virtual/tetex
|
|
>=dev-tex/latex-unicode-20041017 )"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
pkg_setup() {
|
|
if ! use print; then
|
|
echo
|
|
einfo
|
|
einfo "NOTE: The USE variable 'print' is not in your USE flags."
|
|
einfo "For printing support in grisbi, you will need to restart"
|
|
einfo "the build with USE=\"print\""
|
|
einfo
|
|
echo
|
|
ebeep 5
|
|
fi
|
|
}
|
|
|
|
src_unpack() {
|
|
unpack ${A}; cd ${S}
|
|
|
|
# Apply location patchs
|
|
ebegin "Applying Gentoo documentation location patch"
|
|
for i in \
|
|
`find ./ -name 'Makefile.*'` \
|
|
`find ./ -name 'grisbi-manuel/html'`
|
|
do
|
|
sed -i "s;doc/grisbi/help;doc/${PF}/help;g" ${i}
|
|
done
|
|
eend 0
|
|
}
|
|
|
|
src_compile() {
|
|
|
|
econf \
|
|
$(use_with ofx) \
|
|
$(use_enable nls) || die
|
|
|
|
emake || die
|
|
}
|
|
|
|
src_install() {
|
|
einstall || die
|
|
dodoc AUTHORS COPYING ChangeLog NEWS README
|
|
insinto /usr/share/applications
|
|
doins ${FILESDIR}/grisbi.desktop
|
|
}
|
|
|
|
pkg_postinst() {
|
|
pkg_setup
|
|
|
|
einfo "The first thing you should do is set up the browser command in"
|
|
einfo "preferences after you start up grisbi. Otherwise you will not"
|
|
einfo "be able to see the help and manuals"
|
|
}
|