blob: 6b6e5992275b22f405bd2265186d2dc84880fbb5 [file] [log] [blame]
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/gnome-specimen/gnome-specimen-0.4.ebuild,v 1.1 2008/06/01 07:01:53 drac Exp $
GCONF_DEBUG=no
inherit gnome2 multilib python
DESCRIPTION="Font preview application"
HOMEPAGE="http://uwstopia.nl"
SRC_URI="http://uwstopia.nl/geek/projects/${PN}/releases/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=gnome-base/gconf-2
dev-python/gnome-python"
DEPEND="${RDEPEND}
dev-util/pkgconfig
dev-util/intltool
sys-devel/gettext"
src_unpack() {
unpack ${A}
cd "${S}"
ln -nfs $(type -P true) py-compile || die "ln failed."
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed."
dodoc AUTHORS ChangeLog NEWS README TODO
}
pkg_postinst() {
python_version
python_mod_optimize \
/usr/$(get_libdir)/python${PYVER}/site-packages/specimen
gnome2_pkg_postinst
}
pkg_postrm() {
python_mod_cleanup /usr/$(get_libdir)/python*/site-packages/specimen
gnome2_pkg_postrm
}