diff options
author | Ali Polatel <hawking@gentoo.org> | 2007-06-30 06:01:21 +0000 |
---|---|---|
committer | Ali Polatel <hawking@gentoo.org> | 2007-06-30 06:01:21 +0000 |
commit | ca23ddc5bf2a4c17d4ad4d046f1a53b301286c55 (patch) | |
tree | fc8e4a8fb19555791ecd9d01c307107e6e9a52ef /dev-python | |
parent | Change comment regarding pcsc-lite mask (diff) | |
download | gentoo-2-ca23ddc5bf2a4c17d4ad4d046f1a53b301286c55.tar.gz gentoo-2-ca23ddc5bf2a4c17d4ad4d046f1a53b301286c55.tar.bz2 gentoo-2-ca23ddc5bf2a4c17d4ad4d046f1a53b301286c55.zip |
Initial ebuild (bug #166914)
(Portage version: 2.1.3_rc6)
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/mechanize/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/mechanize/Manifest | 16 | ||||
-rw-r--r-- | dev-python/mechanize/files/digest-mechanize-0.1.7b | 3 | ||||
-rw-r--r-- | dev-python/mechanize/mechanize-0.1.7b.ebuild | 52 | ||||
-rw-r--r-- | dev-python/mechanize/metadata.xml | 20 |
5 files changed, 101 insertions, 0 deletions
diff --git a/dev-python/mechanize/ChangeLog b/dev-python/mechanize/ChangeLog new file mode 100644 index 000000000000..8a6826de739d --- /dev/null +++ b/dev-python/mechanize/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-python/mechanize +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/mechanize/ChangeLog,v 1.1 2007/06/30 06:01:21 hawking Exp $ + +*mechanize-0.1.7b (30 Jun 2007) + + 30 Jun 2007; Ali Polatel <hawking@gentoo.org> +metadata.xml, + +mechanize-0.1.7b.ebuild: + Initial ebuild (bug #166914) + diff --git a/dev-python/mechanize/Manifest b/dev-python/mechanize/Manifest new file mode 100644 index 000000000000..b303b937965c --- /dev/null +++ b/dev-python/mechanize/Manifest @@ -0,0 +1,16 @@ +DIST mechanize-0.1.7b.tar.gz 240993 RMD160 2eb07b217059a0f2e9b55cbd53f9cb67b6cd99fa SHA1 10bd41a31cb90630a69013a626bd47d43b09d6c8 SHA256 e58a2f23e607634c29c0e2067415f365aa448c3400f0d615c0f2fa53c90640c3 +EBUILD mechanize-0.1.7b.ebuild 1138 RMD160 3f2008dacf4375f9de6453ff6520b9cd21dab3ef SHA1 cd72eed8bd02d5143364fdcf273c4f4559c66169 SHA256 360d6d5763b11adfc87724b8cb18dc619e0aa975e6cc87790fa039da329cf11f +MD5 e49b0b224ac5287c37fbac756a6dad61 mechanize-0.1.7b.ebuild 1138 +RMD160 3f2008dacf4375f9de6453ff6520b9cd21dab3ef mechanize-0.1.7b.ebuild 1138 +SHA256 360d6d5763b11adfc87724b8cb18dc619e0aa975e6cc87790fa039da329cf11f mechanize-0.1.7b.ebuild 1138 +MISC ChangeLog 277 RMD160 7b975b3048e224c5ce15cd928c8fc6cc36fac555 SHA1 4e8c14bb8765e3127277c7f352673e0c6b912d0a SHA256 f7781ff3dd2d2245abcaa033d95792d4d5dd1a33e654c9ecd9a0174417386601 +MD5 50547c6edb978c59abe5e072daaa8afe ChangeLog 277 +RMD160 7b975b3048e224c5ce15cd928c8fc6cc36fac555 ChangeLog 277 +SHA256 f7781ff3dd2d2245abcaa033d95792d4d5dd1a33e654c9ecd9a0174417386601 ChangeLog 277 +MISC metadata.xml 865 RMD160 b3d5d056da330200621178df4ee2253f835acb20 SHA1 4bb79b751e7f3b13be26dd66bb59f7446e023d95 SHA256 a5da515b0a1decde476e67045a53f31c61e5f9ceb61b426ada2aed387f45fdd3 +MD5 022e048af190dfb26f659a4e832ad69a metadata.xml 865 +RMD160 b3d5d056da330200621178df4ee2253f835acb20 metadata.xml 865 +SHA256 a5da515b0a1decde476e67045a53f31c61e5f9ceb61b426ada2aed387f45fdd3 metadata.xml 865 +MD5 20f99c669ad5c34da79382a4538e53ce files/digest-mechanize-0.1.7b 250 +RMD160 72f8716437b406990552ba06001db09c621fa1a7 files/digest-mechanize-0.1.7b 250 +SHA256 3c10a2ebf6831fce517a4373320a2d0d50a9bafd885503eaff0b4517b48e9104 files/digest-mechanize-0.1.7b 250 diff --git a/dev-python/mechanize/files/digest-mechanize-0.1.7b b/dev-python/mechanize/files/digest-mechanize-0.1.7b new file mode 100644 index 000000000000..8c4fa0d1db43 --- /dev/null +++ b/dev-python/mechanize/files/digest-mechanize-0.1.7b @@ -0,0 +1,3 @@ +MD5 7d431ccec4e64063c7378ce3be53ea34 mechanize-0.1.7b.tar.gz 240993 +RMD160 2eb07b217059a0f2e9b55cbd53f9cb67b6cd99fa mechanize-0.1.7b.tar.gz 240993 +SHA256 e58a2f23e607634c29c0e2067415f365aa448c3400f0d615c0f2fa53c90640c3 mechanize-0.1.7b.tar.gz 240993 diff --git a/dev-python/mechanize/mechanize-0.1.7b.ebuild b/dev-python/mechanize/mechanize-0.1.7b.ebuild new file mode 100644 index 000000000000..5b04784bf298 --- /dev/null +++ b/dev-python/mechanize/mechanize-0.1.7b.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/mechanize/mechanize-0.1.7b.ebuild,v 1.1 2007/06/30 06:01:21 hawking Exp $ + +inherit distutils + +DESCRIPTION="Stateful programmatic web browsing in Python" +HOMEPAGE="http://wwwsearch.sourceforge.net/mechanize/" +SRC_URI="http://wwwsearch.sourceforge.net/${PN}/src/${P}.tar.gz" + +LICENSE="|| ( BSD ZPL )" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +DEPEND=">=dev-python/clientform-0.2.7" +RDEPEND="${DEPEND}" + +DOCS="0.1-changes.txt" + +src_unpack() { + unpack ${A} + cd "${S}" + + # use distutils instead of setuptools + sed -i \ + -e 's/not hasattr(sys, "version_info")/1/' \ + setup.py || die "sed in setup.py failed" + + # We don't run coverage tests or functional_tests + # which access the network, just doctests and unit tests + sed -i \ + -e '/import coverage/d' \ + test.py || die "sed in test.py failed" + + # For some weird reason README.txt + # is just a copy of README.html + rm README.txt +} + +src_install() { + # remove to prevent distutils_src_install from installing it + dohtml *.html + rm README.html* + + distutils_src_install +} + +src_test() { + PYTHONPATH=build/lib/ \ + ${python} test.py || die "tests failed" +} diff --git a/dev-python/mechanize/metadata.xml b/dev-python/mechanize/metadata.xml new file mode 100644 index 000000000000..311f16b043c5 --- /dev/null +++ b/dev-python/mechanize/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <maintainer> + <email>hawking@gentoo.org</email> + <name>Ali Polatel</name> + </maintainer> + <longdescription lang="en"> + mechanize is a Python module for static programmatic web browsing in + Python, after Andy Lester's Perl module WWW::Mechanize. With the Browser + subclass any url can be opened - not just http - and UserAgentBase + offers easy dynamic configuration of user-agent features like protocol, + cookie, redirection and robots.txt handling. Other functionalities + include easy HTML form filling using ClientForm interface, convenient + link parsing and following, browser history with .back() and .reload() + methods and automatic handling of HTTP-Equiv and Refresh. + </longdescription> +</pkgmetadata> + |