# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/rox-base/traylib/traylib-0.2.5.ebuild,v 1.7 2012/02/10 03:06:30 patrick Exp $ PYTHON_DEPEND="2:2.5" inherit python eutils multilib MY_PN="TrayLib" DESCRIPTION="TrayLib is a library for tray-based rox panel applets." HOMEPAGE="http://rox4debian.berlios.de" SRC_URI="ftp://ftp.berlios.de/pub/rox4debian/libs/${MY_PN}-${PV}.tgz" RDEPEND=">=rox-base/rox-lib-1.9.6" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ~sparc x86" IUSE="" src_install() { local baselibdir="/usr/$(get_libdir)" dodir "${baselibdir}" cp -r ${MY_PN}/ "${D}${baselibdir}/${MY_PN}" dodir /usr/share/doc/ dosym ${baselibdir}/${MY_PN}/Help /usr/share/doc/${P} } pkg_postinst() { local baselibdir="/usr/$(get_libdir)" python_mod_optimize "${baselibdir}/${MY_PN}/" } pkg_postrm() { local baselibdir="/usr/$(get_libdir)" python_mod_cleanup "${baselibdir}/${MY_PN}/" }