# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 #$Headers:$ inherit eutils python DESCRIPTION="A PyGTK program for editing fstab" HOMEPAGE="http://pysdm.sourceforge.net" SRC_URI="mirror://sourceforge/pysdm/${P}.tar.gz" LICENCE="GPL-2" SLOT="0" IUSE="doc" KEYWORDS="~x86 ~amd64" DEPEND="dev-python/pygtk >=dev-lang/python-2.4" RDEPENT=${DEPEND} src_unpack(){ einfo "Unpacking ${P}" unpack ${A} } src_compile(){ econf||die "econf failed" make check emake ||die "emake failed" } src_install(){ make DESTDIR="${D}" install if use doc;then dodoc README NEWS TODO INSTALL COPYING fi dobin pysdm doexe ${S} } pkg_setup(){ ewarn ewarn "You must have root priviledges to run this program" ewarn "Bugs report at kronoss@users.sourceforge.org" ewarn "Ebuild bug report should be reported at hwoarang_gr@users.sourceforge.net" ewarn } pkg_postinst() { python_version python_mod_optimize /usr/share/pysdm/fsdata/ } pkg_postrm() { python_version python_mod_cleanup /usr/share/pysdm/fsdata/ python_mod_cleanup }