/[gentoo-x86]/dev-python/sancho/sancho-0.11-r1.ebuild
Gentoo

Contents of /dev-python/sancho/sancho-0.11-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.23 - (show annotations) (download)
Tue Jun 29 04:43:16 2010 UTC (4 years, 4 months ago) by arfrever
Branch: MAIN
CVS Tags: HEAD
Changes since 1.22: +1 -1 lines
FILE REMOVED
Delete older ebuild.

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/sancho/sancho-0.11-r1.ebuild,v 1.22 2009/10/02 01:03:39 arfrever Exp $
4
5 EAPI="2"
6 SUPPORT_PYTHON_ABIS="1"
7
8 inherit distutils eutils
9
10 MY_P="${P/s/S}"
11
12 DESCRIPTION="Sancho is a unit testing framework"
13 HOMEPAGE="http://www.mems-exchange.org/software/sancho/"
14 SRC_URI="http://cheeseshop.python.org/packages/source/S/Sancho/${MY_P}.tar.gz"
15
16 LICENSE="CNRI"
17 SLOT="0.0"
18 KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
19 IUSE=""
20
21 DEPEND=""
22 RDEPEND=""
23 RESTRICT_PYTHON_ABIS="3.*"
24
25 S="${WORKDIR}/${MY_P}"
26
27 DOCS="CHANGES.txt"
28
29 src_prepare() {
30 epatch "${FILESDIR}/${P}-rename-package.patch"
31 }
32
33 src_test() {
34 testing() {
35 PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" "${S}/test/test_unittest.py"
36 }
37 python_execute_function testing
38 }
39
40 src_install() {
41 distutils_src_install
42
43 create_symlinks() {
44 insinto $(python_get_sitedir)/sancho-0
45 dosym $(python_get_sitedir)/sancho0 $(python_get_sitedir)/sancho-0/sancho
46 echo sancho-0 > "${D}$(python_get_sitedir)/sancho-0.pth"
47 }
48 python_execute_function -q create_symlinks
49 }
50
51 pkg_postinst() {
52 elog "This version of sancho is modified to allow parallel installation"
53 elog "with sancho-2.x. \"import sancho0\" will always give you this"
54 elog "version. \"import sancho\" will give you sancho 2.x if that is"
55 elog "installed, this version otherwise."
56 }

  ViewVC Help
Powered by ViewVC 1.1.20