diff options
author | Marien Zwart <marienz@gentoo.org> | 2005-12-01 00:19:38 +0000 |
---|---|---|
committer | Marien Zwart <marienz@gentoo.org> | 2005-12-01 00:19:38 +0000 |
commit | bc85ff8221efbdabf9a5bba11e711bb4813f1240 (patch) | |
tree | a246ebe4294e63507e9f41fbe2435a9542c708d0 /dev-python | |
parent | Completely remove nsplugin logic in vlc 0.8.1, too bugged. (diff) | |
download | gentoo-2-bc85ff8221efbdabf9a5bba11e711bb4813f1240.tar.gz gentoo-2-bc85ff8221efbdabf9a5bba11e711bb4813f1240.tar.bz2 gentoo-2-bc85ff8221efbdabf9a5bba11e711bb4813f1240.zip |
New ebuild, based on a contribution from Andy Dustman <farcepest@gmail.com> (bug #79856).
(Portage version: 2.0.53_rc7)
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/utidylib/ChangeLog | 13 | ||||
-rw-r--r-- | dev-python/utidylib/Manifest | 5 | ||||
-rw-r--r-- | dev-python/utidylib/files/digest-utidylib-0.2 | 1 | ||||
-rw-r--r-- | dev-python/utidylib/files/utidylib-0.2-no-docs-in-site-packages.patch | 11 | ||||
-rw-r--r-- | dev-python/utidylib/files/utidylib-0.2-tests-twisted-2.1-compat.patch | 11 | ||||
-rw-r--r-- | dev-python/utidylib/metadata.xml | 5 | ||||
-rw-r--r-- | dev-python/utidylib/utidylib-0.2.ebuild | 51 |
7 files changed, 97 insertions, 0 deletions
diff --git a/dev-python/utidylib/ChangeLog b/dev-python/utidylib/ChangeLog new file mode 100644 index 000000000000..35a3a5eb4943 --- /dev/null +++ b/dev-python/utidylib/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for dev-python/utidylib +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/utidylib/ChangeLog,v 1.1 2005/12/01 00:19:37 marienz Exp $ + +*utidylib-0.2 (01 Dec 2005) + + 01 Dec 2005; Marien Zwart <marienz@gentoo.org> + +files/utidylib-0.2-no-docs-in-site-packages.patch, + +files/utidylib-0.2-tests-twisted-2.1-compat.patch, +metadata.xml, + +utidylib-0.2.ebuild: + New ebuild, based on a contribution from Andy Dustman <farcepest@gmail.com> + (bug #79856). + diff --git a/dev-python/utidylib/Manifest b/dev-python/utidylib/Manifest new file mode 100644 index 000000000000..1c7dbf44ced8 --- /dev/null +++ b/dev-python/utidylib/Manifest @@ -0,0 +1,5 @@ +MD5 48794b5a58ecddbbc0ffce1ed73393e8 files/digest-utidylib-0.2 60 +MD5 7249f3b046946a3f88bb2cd22f55b380 files/utidylib-0.2-no-docs-in-site-packages.patch 475 +MD5 bffb3127ccf1eb531a55550b17b91a1e files/utidylib-0.2-tests-twisted-2.1-compat.patch 437 +MD5 71c4638c9c88af75b58e5f5cb54fe008 metadata.xml 159 +MD5 3182d248b2d4563a8a90f99763f7887a utidylib-0.2.ebuild 948 diff --git a/dev-python/utidylib/files/digest-utidylib-0.2 b/dev-python/utidylib/files/digest-utidylib-0.2 new file mode 100644 index 000000000000..4519fa1fa97d --- /dev/null +++ b/dev-python/utidylib/files/digest-utidylib-0.2 @@ -0,0 +1 @@ +MD5 c9f16988f92ef660f46523192ef37462 uTidylib-0.2.zip 17575 diff --git a/dev-python/utidylib/files/utidylib-0.2-no-docs-in-site-packages.patch b/dev-python/utidylib/files/utidylib-0.2-no-docs-in-site-packages.patch new file mode 100644 index 000000000000..761c4947dfa8 --- /dev/null +++ b/dev-python/utidylib/files/utidylib-0.2-no-docs-in-site-packages.patch @@ -0,0 +1,11 @@ +--- uTidylib-0.2-orig/setup.py 2005-12-01 00:48:14.000000000 +0100 ++++ uTidylib-0.2/setup.py 2005-12-01 01:10:33.000000000 +0100 +@@ -54,7 +54,7 @@ + + + setup_data = dict(packages=['tidy', ], +- data_files=data_files, ++# data_files=data_files, + cmdclass=dict(install_data=install_data_utidylib, + bdist_wininst=bdist_wininst_utidylib, + install=install_utidylib, diff --git a/dev-python/utidylib/files/utidylib-0.2-tests-twisted-2.1-compat.patch b/dev-python/utidylib/files/utidylib-0.2-tests-twisted-2.1-compat.patch new file mode 100644 index 000000000000..0ee55e6d5631 --- /dev/null +++ b/dev-python/utidylib/files/utidylib-0.2-tests-twisted-2.1-compat.patch @@ -0,0 +1,11 @@ +diff -ur uTidylib-0.2-orig/tidy/test_tidy.py uTidylib-0.2/tidy/test_tidy.py +--- uTidylib-0.2-orig/tidy/test_tidy.py 2005-12-01 00:48:14.000000000 +0100 ++++ uTidylib-0.2/tidy/test_tidy.py 2005-12-01 00:48:40.000000000 +0100 +@@ -4,6 +4,7 @@ + + class TidyTestCase(unittest.TestCase): + def __init__(self, *args, **kwargs): ++ unittest.TestCase.__init__(self, *args, **kwargs) + foo = u'''<html> + <h1>woot</h1> + <hr> diff --git a/dev-python/utidylib/metadata.xml b/dev-python/utidylib/metadata.xml new file mode 100644 index 000000000000..de483c53568f --- /dev/null +++ b/dev-python/utidylib/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>python</herd> +</pkgmetadata> diff --git a/dev-python/utidylib/utidylib-0.2.ebuild b/dev-python/utidylib/utidylib-0.2.ebuild new file mode 100644 index 000000000000..79af7bde240c --- /dev/null +++ b/dev-python/utidylib/utidylib-0.2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/utidylib/utidylib-0.2.ebuild,v 1.1 2005/12/01 00:19:37 marienz Exp $ + +inherit distutils + +MY_P="uTidylib-${PV}" + +DESCRIPTION="TidyLib Python wrapper" +HOMEPAGE="http://utidylib.berlios.de/" +SRC_URI="http://download.berlios.de/utidylib/${MY_P}.zip" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~x86" +IUSE="doc test" + +RDEPEND=">=dev-lang/python-2.3 + dev-python/ctypes + app-text/htmltidy" + +DEPEND="${RDEPEND} + doc? ( dev-python/epydoc ) + test? ( dev-python/twisted )" + +S="${WORKDIR}/${MY_P}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-tests-twisted-2.1-compat.patch" + epatch "${FILESDIR}/${P}-no-docs-in-site-packages.patch" +} + +src_compile() { + distutils_src_compile + if use doc; then + python gendoc.py || die "building api docs failed" + fi +} + +src_test() { + trial tidy/test_tidy.py || die "tests failed" +} + +src_install() { + distutils_src_install + if use doc; then + dohtml -r apidoc + fi +} |