summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-11-07 19:25:46 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-11-07 19:25:46 +0000
commitb5e3a2fef929595e37aedfeaa28a138ea50b0755 (patch)
tree998ccaa2cabd06ab3381115d585a21f1f2ea0c04 /dev-python/imaging
parentKeywording for ppc. (diff)
downloadhistorical-b5e3a2fef929595e37aedfeaa28a138ea50b0755.tar.gz
historical-b5e3a2fef929595e37aedfeaa28a138ea50b0755.tar.bz2
historical-b5e3a2fef929595e37aedfeaa28a138ea50b0755.zip
Add src_test().
Package-Manager: portage-14801-svn/cvs/Linux x86_64
Diffstat (limited to 'dev-python/imaging')
-rw-r--r--dev-python/imaging/Manifest2
-rw-r--r--dev-python/imaging/imaging-1.1.6.ebuild20
2 files changed, 14 insertions, 8 deletions
diff --git a/dev-python/imaging/Manifest b/dev-python/imaging/Manifest
index bd9d93f17918..02e9bcc8f800 100644
--- a/dev-python/imaging/Manifest
+++ b/dev-python/imaging/Manifest
@@ -5,6 +5,6 @@ AUX imaging-1.1.6-sane.patch 401 RMD160 11fe942260f5084c22ce1f3d526ba39bcee8faaa
AUX imaging-1.1.6-tiffendian.patch 1520 RMD160 3f8044fa191fa9fc3eb7b47fb0910d5f2adfbf8d SHA1 34781c005866cc6a8606ced80c9e54c710dd3486 SHA256 ceab8d51281f1227e4227c555c2c40469e0da5fc706c2f2175ebd6a40a182e1e
DIST Imaging-1.1.6.tar.gz 435854 RMD160 336bb92482eb833e5bb1c9e8c1e585c9bdc338d1 SHA1 952d241e4af8ba09f74e6926108b7c0c748d0f89 SHA256 7dd7358ab519161967c838df27465282d180a3206f693ba2db64273d688b3f90
EBUILD imaging-1.1.6-r1.ebuild 2252 RMD160 59e9ada2a64725bb8a1f3b26ec2c912520f212ef SHA1 52f81ec80802be5b1c56640c2285a8eb8b3db5a6 SHA256 bcf2078bf4e02e0f6065b0558a005dbc9766ecf44bfadfcb98c3661997888174
-EBUILD imaging-1.1.6.ebuild 1748 RMD160 389b2099fef5634711d65a72ab83ce72cb5602d1 SHA1 398100c0130bfd7bf3df7d2be61129a8ea772ec4 SHA256 11c1086b4efb2d0a3239ee259a51ebf2c112003d711f9b8127fefcd5d2c3ba82
+EBUILD imaging-1.1.6.ebuild 1859 RMD160 33ebab177bd395819dba4ae40ecbad22924bd34a SHA1 cf5889465ca649341f8f03c3c72163a36dd4c700 SHA256 cc8bed551f6aa0275cecec0485fffdb2446f90ced5c35e4c60e18e831b3f08a8
MISC ChangeLog 9275 RMD160 20e55339059d0050c0b011c26637f0fe80a68988 SHA1 bcd099ac3f39db17906ca7c619f033ed0a552855 SHA256 e60f60fd58f912ab150c8791bada19497fc9644f6599dacb0d96a7d5d8efb448
MISC metadata.xml 159 RMD160 900a8c55d7a7d2f6312594769aaf941bf9e99c7f SHA1 c8e604d56dae898258b5254d78cfeac0b981e288 SHA256 9f01104d3484792496faff4805eed0ecea2352a897151f3397d49a13800037b4
diff --git a/dev-python/imaging/imaging-1.1.6.ebuild b/dev-python/imaging/imaging-1.1.6.ebuild
index f67f19960e28..63a8fa17a15e 100644
--- a/dev-python/imaging/imaging-1.1.6.ebuild
+++ b/dev-python/imaging/imaging-1.1.6.ebuild
@@ -1,8 +1,9 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/imaging-1.1.6.ebuild,v 1.8 2009/03/20 18:52:16 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/imaging/imaging-1.1.6.ebuild,v 1.9 2009/11/07 19:25:46 arfrever Exp $
+
+EAPI="2"
-EAPI=2
inherit eutils distutils
MY_P=Imaging-${PV}
@@ -32,7 +33,7 @@ src_prepare() {
-e "s:\"lib\":\"$(get_libdir)\":" \
setup.py || die "sed failed"
- if ! use tk ; then
+ if ! use tk; then
# Make the test always fail
sed -i \
-e 's/import _tkinter/raise ImportError/' \
@@ -42,19 +43,24 @@ src_prepare() {
src_compile() {
distutils_src_compile
- if use scanner ; then
+ if use scanner; then
cd "${S}/Sane"
distutils_src_compile
fi
}
+src_test() {
+ python_version
+ PYTHONPATH="$(ls -d build/lib.*)" "${python}" selftest.py || die "Tests failed"
+}
+
src_install() {
local DOCS="CHANGES CONTENTS"
distutils_src_install
use doc && dohtml Docs/*
- if use scanner ; then
+ if use scanner; then
cd "${S}/Sane"
docinto sane
local DOCS="CHANGES sanedoc.txt"
@@ -68,10 +74,10 @@ src_install() {
doins libImaging/Imaging.h
doins libImaging/ImPlatform.h
- if use examples ; then
+ if use examples; then
insinto /usr/share/doc/${PF}/examples
doins Scripts/*
- if use scanner ; then
+ if use scanner; then
insinto /usr/share/doc/${PF}/examples/sane
doins Sane/demo_*.py
fi