diff --git a/dev-python/gdata/Manifest b/dev-python/gdata/Manifest new file mode 100644 index 000000000..cf5040e1f --- /dev/null +++ b/dev-python/gdata/Manifest @@ -0,0 +1,4 @@ +AUX gdata-1.0.8-test-fix.patch 3672 RMD160 9592c71dfec756fb7c67afc8c54d5f380956c07c SHA1 57d3aa0437b81280e6c6f917ba6166a2b4bc5368 SHA256 2ef30211fdecb966f6cf30b2aba6a7fc336ed9f99de54bc5031cadcb9e2a6322 +DIST gdata.py-1.1.1.tar.gz 400450 RMD160 1cb3920d72948e84cdb753dd3f37dc7e03d56717 SHA1 aa0120a6f5a724461d885f6ebce29245f9b2e65e SHA256 2039c5b3d8e49a4bad914547da01103c28d301d277ebd23fd0e29f5fc10eb6f7 +EBUILD gdata-1.1.1.ebuild 1071 RMD160 589c56ad26fff6cd2d86044daf1e2b6b7fe5a476 SHA1 de3c1d42760a67ea5868390a3b29c87f9b1e8c4f SHA256 465666b7da25e3077973033b833e6a555918e23d508278f1f0fefd9218afa80e +MISC Reasons 196 RMD160 98b1a80ec23627ade1cc6ed9c04dd9a7f0392ae1 SHA1 b816d4f014e858c3a1945b30b6341d6313c703eb SHA256 b72015e3401848c2941f6221a4db2ee940577ba8f9587a40cfbad7a4c17f0741 diff --git a/dev-python/gdata/Reasons b/dev-python/gdata/Reasons new file mode 100644 index 000000000..9aa35cc7e --- /dev/null +++ b/dev-python/gdata/Reasons @@ -0,0 +1,9 @@ +dev-python/gdata + +Ebuild originally added Jul. 17, 2008 +Added by Fabio Erculiani + +Portage one is outdated (1.0.8) and doesn't support youtube + +====== +17.7.08 - pushed in! diff --git a/dev-python/gdata/files/gdata-1.0.8-test-fix.patch b/dev-python/gdata/files/gdata-1.0.8-test-fix.patch new file mode 100644 index 000000000..4ff4de0c3 --- /dev/null +++ b/dev-python/gdata/files/gdata-1.0.8-test-fix.patch @@ -0,0 +1,81 @@ +--- gdata.py-1.0.8/tests/atom/service_test.py 2007-07-21 00:25:54.000000000 +0300 ++++ gdata.py-1.0.8/tests/atom/service_test.py 2008-03-28 08:40:16.044330089 +0200 +@@ -69,7 +69,7 @@ + self.assertEquals(ssl, False) + self.assertEquals(host, 'www.google.com') + self.assertEquals(port, 80) +- self.assertEquals(path, 'http://www.google.com:80/service/subservice?name=value') ++ self.assertEquals(path, '/service/subservice?name=value') + + def testParseHttpUrlWithPort(self): + as = atom.service.AtomService('code.google.com') +@@ -81,7 +81,7 @@ + self.assertEquals(host, 'www.google.com') + self.assertEquals(port, 12) + #self.assertEquals(path, '/service/subservice?name=value&newname=newvalue') +- self.assertEquals(path, 'http://www.google.com:12/service/subservice?name=value&newname=newvalue') ++ self.assertEquals(path, '/service/subservice?name=value&newname=newvalue') + + def testParseHttpsUrl(self): + as = atom.service.AtomService('code.google.com') +@@ -92,7 +92,7 @@ + self.assertEquals(ssl, True) + self.assertEquals(host, 'www.google.com') + self.assertEquals(port, 443) +- self.assertEquals(path, 'https://www.google.com:443/service/subservice?name=value&newname=newvalue') ++ self.assertEquals(path, '/service/subservice?name=value&newname=newvalue') + + def testParseHttpsUrlWithPort(self): + as = atom.service.AtomService('code.google.com') +@@ -103,50 +103,8 @@ + self.assertEquals(ssl, True) + self.assertEquals(host, 'www.google.com') + self.assertEquals(port, 13981) +- self.assertEquals(path, 'https://www.google.com:13981/service/subservice?name=value&newname=newvalue') ++ self.assertEquals(path, '/service/subservice?name=value&newname=newvalue') + +- def testParseUrlWithFullProxyURL(self): +- as = atom.service.AtomService('code.google.com') +- as.proxy_url = 'https://proxy.example.com:8080' +- self.assert_(as.server == 'code.google.com') +- self.assert_(as.proxy_url == 'https://proxy.example.com:8080') +- (host, port, ssl, path) = as._ProcessUrl( +- 'http://www.google.com:13981/service/subservice?name=value&newname=newvalue') +- self.assertEquals(ssl, True) +- self.assertEquals(host, 'proxy.example.com') +- self.assertEquals(port, 8080) +- self.assertEquals(path, 'http://www.google.com:13981/service/subservice?name=value&newname=newvalue') +- +- def testParseUrlWithHostOnlyProxyURL(self): +- as = atom.service.AtomService('code.google.com') +- as.proxy_url = 'http://proxy.example.com' +- self.assert_(as.server == 'code.google.com') +- self.assert_(as.proxy_url == 'http://proxy.example.com:80') +- (host, port, ssl, path) = as._ProcessUrl( +- 'https://www.google.com/service/subservice') +- self.assertEquals(ssl, False) +- self.assertEquals(host, 'proxy.example.com') +- self.assertEquals(port, 80) +- self.assertEquals(path, 'https://www.google.com:443/service/subservice') +- +- def testSetProxyUrlToIllegalValues(self): +- as = atom.service.AtomService('code.google.com') +- try: +- as.proxy_url = 'proxy.example.com' +- self.fail('A URL with no protocol should trigger InvalidProxyUrl') +- except atom.service.InvalidProxyUrl: +- pass +- try: +- as.proxy_url = 'http://:80' +- self.fail('A URL with no server should trigger InvalidProxyUrl') +- except atom.service.InvalidProxyUrl: +- pass +- try: +- as.proxy_url = 'http://' +- self.fail('A URL with only the protocol should trigger InvalidProxyUrl') +- except atom.service.InvalidProxyUrl: +- pass +- + def testSetBasicAuth(self): + client = atom.service.AtomService() + client.UseBasicAuth('foo', 'bar') diff --git a/dev-python/gdata/gdata-1.1.1.ebuild b/dev-python/gdata/gdata-1.1.1.ebuild new file mode 100644 index 000000000..ffb766936 --- /dev/null +++ b/dev-python/gdata/gdata-1.1.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/gdata/gdata-1.0.8.ebuild,v 1.6 2008/06/02 09:30:49 aballier Exp $ + +inherit distutils eutils + +MY_P="gdata.py-${PV}" + +DESCRIPTION="Python client library for Google data APIs" +HOMEPAGE="http://code.google.com/p/gdata-python-client/" +SRC_URI="http://gdata-python-client.googlecode.com/files/${MY_P}.tar.gz" +RESTRICT="nomirror" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd" +IUSE="examples" + +DEPEND="" +RDEPEND="|| ( >=dev-lang/python-2.5 dev-python/elementtree )" + +PYTHON_MODNAME="atom gdata" +S="${WORKDIR}/${MY_P}" + +src_unpack() { + distutils_src_unpack +} + +src_install() { + distutils_src_install + + if use examples; then + insinto /usr/share/doc/${PF} + doins -r samples + fi +} + +src_test() { + cd tests + export PYTHONPATH=../src + for x in $(find -name "*.py"); do + grep -q raw_input ${x} && continue + einfo "Running ${x}..." + "${python}" ${x} -v || die "${x} failed" + done +}