--- referencer-1.1.5.ebuild 2009-05-28 18:41:43.000000000 +0200 +++ referencer-1.1.5-r2.ebuild 2009-06-23 11:14:04.000000000 +0200 @@ -1,20 +1,22 @@ -# 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" KEYWORDS="~amd64 ~x86" IUSE="python" -DEPEND=">=app-text/poppler-0.5.0 +DEPEND=">=virtual/poppler-0.5.0 >=dev-cpp/gtkmm-2.8 >=dev-cpp/libgnomeuimm-2.14.0 >=dev-cpp/gnome-vfsmm-2.14.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 } -