summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/xsv/xsv-2.7.ebuild')
-rw-r--r--dev-python/xsv/xsv-2.7.ebuild39
1 files changed, 27 insertions, 12 deletions
diff --git a/dev-python/xsv/xsv-2.7.ebuild b/dev-python/xsv/xsv-2.7.ebuild
index 351b9535894b..d671e10e58fd 100644
--- a/dev-python/xsv/xsv-2.7.ebuild
+++ b/dev-python/xsv/xsv-2.7.ebuild
@@ -1,28 +1,43 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/xsv/xsv-2.7.ebuild,v 1.7 2010/06/15 19:38:07 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/xsv/xsv-2.7.ebuild,v 1.8 2010/10/31 22:55:12 arfrever Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
inherit distutils
-MY_P=${P/xsv/XSV}
-S=${WORKDIR}/${MY_P}
+MY_PN="XSV"
+MY_P="${MY_PN}-${PV}"
DESCRIPTION="Python XML Schema Validator"
-SRC_URI="ftp://ftp.cogsci.ed.ac.uk/pub/XSV/${MY_P}.tar.gz"
HOMEPAGE="http://www.ltg.ed.ac.uk/~ht/xsv-status.html"
+SRC_URI="ftp://ftp.cogsci.ed.ac.uk/pub/XSV/${MY_P}.tar.gz"
-KEYWORDS="~ppc x86"
-SLOT="0"
LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc x86"
IUSE=""
-DEPEND=">=dev-lang/python-2.2.2
- >=dev-python/pyltxml-1.3"
+DEPEND=">=dev-python/pyltxml-1.3"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+PYTHON_MODNAME="XSV"
src_install() {
distutils_src_install
- dodoc xsv-status.xml pc-shrinkwrap
- dohtml xsv-status.html
- rm -rf "${D}$(python_get_sitedir)/XSV/doc"
- mv "${D}$(python_get_sitedir)/XSV/example" "${D}usr/share/doc/${PF}"
+
+ dodoc xsv-status.xml pc-shrinkwrap || die "dodoc failed"
+ dohtml xsv-status.html || die "dohtml failed"
+ insinto /usr/share/doc/${PF}/examples
+ doins triv.xml triv.xsd tiny.xml tiny.xsd || die "doins failed"
+
+ delete_docs_and_examples() {
+ rm -fr "${ED}$(python_get_sitedir)/XSV/"{doc,example}
+ }
+ python_execute_function -q delete_docs_and_examples
}