From c267edba089e0a2dac96fbdb23e654b150e30007 Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Thu, 24 Aug 2006 14:36:03 +0000 Subject: Make sure that docs are only installed to /usr/share/doc/${P}, and that there are no copies of the license installed (bug #143422). Make sure all uses of ${D} are quoted properly. (Portage version: 2.1.1_pre5-r3) --- net-print/pykota/pykota-1.23_p1869.ebuild | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'net-print/pykota/pykota-1.23_p1869.ebuild') diff --git a/net-print/pykota/pykota-1.23_p1869.ebuild b/net-print/pykota/pykota-1.23_p1869.ebuild index fe21878ca5c7..5ed8a18afbfd 100644 --- a/net-print/pykota/pykota-1.23_p1869.ebuild +++ b/net-print/pykota/pykota-1.23_p1869.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-print/pykota/pykota-1.23_p1869.ebuild,v 1.3 2006/06/08 10:56:06 satya Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-print/pykota/pykota-1.23_p1869.ebuild,v 1.4 2006/08/24 14:36:03 chutzpah Exp $ inherit python eutils distutils @@ -21,16 +21,26 @@ DEPEND="dev-lang/python KEYWORDS="~x86" SLOT="0" +DOCS="README MANIFEST.in TODO SECURITY NEWS CREDITS FAQ" + src_install() { - mkdir -p ${D}/etc/${PN} + mkdir -p "${D}"/etc/${PN} python_version distutils_src_install #cups backend ---------------------------------------------- - mkdir -p ${D}/usr/lib/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/${PN}/initscripts + init_dir=/usr/share/doc/${P}/initscripts insinto ${init_dir} - cp -pPR initscripts/* ${D}/${init_dir} + cp -pPR initscripts/* "${D}"/${init_dir} + + 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} } -- cgit v1.2.3-65-gdbad