# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ S=${WORKDIR}/${PN} inherit python eutils distutils subversion DESCRIPTION="Flexible print quota and accounting package for use with CUPS and lpd." ESVN_UPDATE_CMD="svn up -r svn://svn.librelogiciel.com/pykota/tags/${PV}" ESVN_REPO_URI="svn://svn.librelogiciel.com/pykota/tags/${PV}" ESVN_STORE_DIR="${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}/svn-src/" HOMEPAGE="http://www.pykota.com" LICENSE="GPL-2" IUSE="ldap mysql postgres snmp sqlite snmp xml" DEPEND="dev-lang/python dev-python/egenix-mx-base net-print/pkpgcounter ldap? ( dev-python/python-ldap ) mysql? ( dev-python/mysql-python ) postgres? ( dev-db/postgresql dev-db/pygresql ) sqlite? ( =dev-python/pysqlite-2* ) snmp? ( net-analyzer/net-snmp =dev-python/pysnmp-3.4.2 ) xml? ( dev-python/jaxml )" RDEPEND="${DEPEND}" KEYWORDS="~x86" SLOT="0" DOCS="README MANIFEST.in TODO SECURITY NEWS CREDITS FAQ" src_unpack() { ESVN_UPDATE_CMD="svn up" ESVN_FETCH_CMD="svn co" S=${WORKDIR}/${P} subversion_src_unpack } src_install() { mkdir -p "${D}"/etc/${PN} python_version distutils_src_install #cups backend ---------------------------------------------- mkdir -p "${D}"/usr/lib/cups/backend dosym /usr/share/pykota/cupspykota /usr/lib/cups/backend/cupspykota #extra docs: inits ----------------------------------------- init_dir=/usr/share/doc/${P}/initscripts insinto ${init_dir} cp -pPR initscripts/* "${D}"/${init_dir} # Fixes permissions for bug 155865 chmod 700 "${D}"/usr/share/pykota/cupspykota for doc in ${DOCS}; do rm -f "${D}"/usr/share/doc/${PN}/${doc} done rm -f "${D}"/usr/share/doc/${PN}/{LICENSE,COPYING} mv "${D}"/usr/share/doc/${PN}/* "${D}"/usr/share/doc/${P} rmdir "${D}"/usr/share/doc/${PN} }