From e2b9b40612088c160a64835b853dee6ad88f1c1f Mon Sep 17 00:00:00 2001 From: Lukasz Strzygowski Date: Thu, 18 Jan 2007 23:39:03 +0000 Subject: [PATCH] Added src_test, thanks to Eddy Mulyono (bug #155736). Package-Manager: portage-2.1.2_rc4-r9 --- dev-python/celementtree/ChangeLog | 6 ++++- dev-python/celementtree/Manifest | 26 +++++++++++++------ .../celementtree/celementtree-1.0.5.ebuild | 13 +++++++--- 3 files changed, 33 insertions(+), 12 deletions(-) diff --git a/dev-python/celementtree/ChangeLog b/dev-python/celementtree/ChangeLog index 9543d4a1a60d..6af008624575 100644 --- a/dev-python/celementtree/ChangeLog +++ b/dev-python/celementtree/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-python/celementtree # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/celementtree/ChangeLog,v 1.13 2007/01/18 15:10:33 fmccor Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/celementtree/ChangeLog,v 1.14 2007/01/18 23:39:03 lucass Exp $ + + 18 Jan 2007; Lukasz Strzygowski + celementtree-1.0.5.ebuild: + Added src_test, thanks to Eddy Mulyono (bug #155736). 18 Jan 2007; Ferris McCormick celementtree-1.0.5.ebuild: diff --git a/dev-python/celementtree/Manifest b/dev-python/celementtree/Manifest index 65c58dd8910a..c6e80147ede7 100644 --- a/dev-python/celementtree/Manifest +++ b/dev-python/celementtree/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + DIST cElementTree-1.0-20050126.zip 99366 RMD160 55977353f1a13ebfd616fdb732f3db1db6f661dd SHA1 aa8f8f7397d9d86d22f989058fe69abaf52ad809 SHA256 40e7220e49dc609f1b0f6121c5e44fd5b89ea6ab5039b8424225f8e33f9d648b DIST cElementTree-1.0.2-20050302.tar.gz 91541 RMD160 7097c5c7a8eb3829e03bbd8002a73a356e41b9ec SHA1 6a9de75ad39d02d6fd7136cdf17772564e1b8582 SHA256 7629df1dd79a400e1e2c9ee27456527bc0ee7773f7acdcab988a2d0be58f7154 DIST cElementTree-1.0.5-20051216.tar.gz 93766 RMD160 e079d10507bd4819b2ce4771b53671c2d9ac2418 SHA1 08f4206d209905ddf3f37cb72f9fc021791d7f99 SHA256 b2e528c99837124b32598bde7a19da579203c600d71f22f4c84da0933ba09751 @@ -5,18 +8,18 @@ EBUILD celementtree-1.0.2.ebuild 780 RMD160 b66c2c5807efd4a5ac09940deeb286cc0bb4 MD5 5c9b93d57356b4e01c9ddebe95b33f28 celementtree-1.0.2.ebuild 780 RMD160 b66c2c5807efd4a5ac09940deeb286cc0bb491d7 celementtree-1.0.2.ebuild 780 SHA256 1d035aab12486bac9979ca75971b3343efe4a796a9b4f7d3a19f5dff178bb28f celementtree-1.0.2.ebuild 780 -EBUILD celementtree-1.0.5.ebuild 810 RMD160 8d06efca1e405318e983fdac97f5eea0b9ad5ab1 SHA1 d21e51497170c54f9467dc5c3e58ace2ecf0e210 SHA256 a46a37528f909fd056bd5848761e14a8c52123fae4d068a97c93c8b331dd2478 -MD5 d505df9bfd8228627bec2f44dd31ca84 celementtree-1.0.5.ebuild 810 -RMD160 8d06efca1e405318e983fdac97f5eea0b9ad5ab1 celementtree-1.0.5.ebuild 810 -SHA256 a46a37528f909fd056bd5848761e14a8c52123fae4d068a97c93c8b331dd2478 celementtree-1.0.5.ebuild 810 +EBUILD celementtree-1.0.5.ebuild 1007 RMD160 2672a656bd51d2e71b5708719c333ed87796afef SHA1 dad8d335745a8a87b92fc534ae7165f46db52e0e SHA256 138cff0a20e12cdc630973f945a0e818ae6c883540f204ddde807eb10a29e49f +MD5 d5f19028a1e062213ce545fbb3c7e54b celementtree-1.0.5.ebuild 1007 +RMD160 2672a656bd51d2e71b5708719c333ed87796afef celementtree-1.0.5.ebuild 1007 +SHA256 138cff0a20e12cdc630973f945a0e818ae6c883540f204ddde807eb10a29e49f celementtree-1.0.5.ebuild 1007 EBUILD celementtree-1.0.ebuild 779 RMD160 2d1bfe3c60317679abfa11badc4651eea6b2e47d SHA1 d61cebf65a39f589039ed25ce728719065523662 SHA256 5944bf3a681abf3ed92a8039b442a0ef99cf0c24735d532a0bd2aa0fb1df3b80 MD5 b7ef6462120a252d886bfddc70ba8e55 celementtree-1.0.ebuild 779 RMD160 2d1bfe3c60317679abfa11badc4651eea6b2e47d celementtree-1.0.ebuild 779 SHA256 5944bf3a681abf3ed92a8039b442a0ef99cf0c24735d532a0bd2aa0fb1df3b80 celementtree-1.0.ebuild 779 -MISC ChangeLog 2053 RMD160 7420d15a9d9d6a97803b18f3235020058e369387 SHA1 243bd2465debb31c07cdf5e4e730998bcf49a057 SHA256 2c6cb7aae8f2dfcba22a54cd68086f56a6d69eacf59aa1abba18dcfa01d2e37a -MD5 b8f0022a501bd11f66350f047f815f8b ChangeLog 2053 -RMD160 7420d15a9d9d6a97803b18f3235020058e369387 ChangeLog 2053 -SHA256 2c6cb7aae8f2dfcba22a54cd68086f56a6d69eacf59aa1abba18dcfa01d2e37a ChangeLog 2053 +MISC ChangeLog 2193 RMD160 0245098ab40b34d3b98467364b4657111fcea310 SHA1 296bfcea2ff41397c224340fa2767b52bf504196 SHA256 ece3b8394076b87da76ab53109e10e68349e1358cf6f69dd336d268b4ca895b5 +MD5 0cada5c4033a88893ee644d82d4ef8d5 ChangeLog 2193 +RMD160 0245098ab40b34d3b98467364b4657111fcea310 ChangeLog 2193 +SHA256 ece3b8394076b87da76ab53109e10e68349e1358cf6f69dd336d268b4ca895b5 ChangeLog 2193 MISC metadata.xml 160 RMD160 e730f96ab97c5be577a6d6d05f04990374a0dffb SHA1 2aa5e6be9c265c0e7bceb78ee9fd20df5f818e36 SHA256 6cd954a9de2307c57d32b25fa3599dee2908a4ddc6a98594f593d53577307a3a MD5 9ac4199ebe7cd3e7e311274994767f82 metadata.xml 160 RMD160 e730f96ab97c5be577a6d6d05f04990374a0dffb metadata.xml 160 @@ -30,3 +33,10 @@ SHA256 20772bd285921ce1a6522842aa26252230bdaa2a51051be2e647b494f66c2446 files/di MD5 a9a2a2b36b51e8bced65285b3f366309 files/digest-celementtree-1.0.5 280 RMD160 e89cdc2388e78b3fc0acc2e353f7fa3727522a59 files/digest-celementtree-1.0.5 280 SHA256 ee20dd84fb1e9814d421384117eb4b607a4a665cbb13bccd87338744acdf77e8 files/digest-celementtree-1.0.5 280 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.1 (GNU/Linux) + +iD8DBQFFsAUj2jLqHNfbg2URAq09AJwNnonJL5Mi5sB0Nd/0ey6PZnhsOQCg0sXq +Nr0YQD0KssF8btmStCX0Wqg= +=jrGn +-----END PGP SIGNATURE----- diff --git a/dev-python/celementtree/celementtree-1.0.5.ebuild b/dev-python/celementtree/celementtree-1.0.5.ebuild index 5c2125399bc8..94fadac20fc7 100644 --- a/dev-python/celementtree/celementtree-1.0.5.ebuild +++ b/dev-python/celementtree/celementtree-1.0.5.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/celementtree/celementtree-1.0.5.ebuild,v 1.5 2007/01/18 15:10:33 fmccor Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/celementtree/celementtree-1.0.5.ebuild,v 1.6 2007/01/18 23:39:03 lucass Exp $ -inherit eutils distutils +inherit distutils MY_P="cElementTree-${PV}-20051216" DESCRIPTION="The cElementTree module is a C implementation of the ElementTree API" @@ -16,7 +16,7 @@ KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd" IUSE="doc" DEPEND=">=dev-lang/python-2.1.3-r1 >=dev-python/elementtree-1.2" -S=${WORKDIR}/${MY_P} +S="${WORKDIR}/${MY_P}" src_install() { distutils_src_install @@ -26,3 +26,10 @@ src_install() { doins selftest.py fi } + +src_test() { + "${python}" setup.py install --home="${T}/test" || die "test copy failed" + PYTHONPATH="${T}/test/lib/python" \ + "${python}" selftest.py || die "selftest.py failed" + rm -rf "${T}/test" +} -- 2.26.2