--- referencer-1.1.5.ebuild 2009-05-28 18:41:43.000000000 +0200 +++ referencer-1.1.5-r1.ebuild 2009-05-28 21:27:58.000000000 +0200 @@ -1,13 +1,15 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ -inherit eutils autotools +EAPI="2" -DESCRIPTION="Referencer is a Gnome application to organise documents or -references, and ultimately generate a BibTeX bibliography file." -HOMEPAGE="http://icculus.org/~jcspray/referencer/" -SRC_URI="http://icculus.org/~jcspray/referencer/downloads/${P}.tar.gz" +inherit eutils autotools fdo-mime + +DESCRIPTION="Gnome application to organise documents or references, and to +generate BibTeX bibliography files." +HOMEPAGE="http://icculus.org/referencer/" +SRC_URI="http://icculus.org/referencer/downloads/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" @@ -22,23 +24,21 @@ >=dev-cpp/gconfmm-2.14.0 dev-libs/boost python? ( dev-lang/python )" -RDEPEND="" +RDEPEND="${DEPEND}" -src_compile() { - econf --disable-update-mime-database $(use_enable python) \ - || die "econf failed!" - emake || die "emake failed!" +src_configure() { + econf --disable-update-mime-database $(use_enable python) } src_install() { emake DESTDIR="${D}" install || die "emake install failed!" + dodoc AUTHORS ChangeLog NEWS README TODO || die } pkg_postinst() { - update-mime-database "/usr/share/mime" + fdo-mime_mime_database_update } pkg_postrm() { - update-mime-database "/usr/share/mime" + fdo-mime_mime_database_update } -