diff options
author | Donnie Berkholz <dberkholz@gentoo.org> | 2014-01-16 21:13:22 -0600 |
---|---|---|
committer | Donnie Berkholz <dberkholz@gentoo.org> | 2014-01-16 21:13:22 -0600 |
commit | fa61317395590cb0b69e5b723f4101510ea12dc1 (patch) | |
tree | 67f96c1621cf6e4baeba41f1601fad4870b9945a /dev-python/python-twitter/python-twitter-9999.ebuild | |
parent | docker: bump to 0.7.6 (diff) | |
download | dberkholz-master.tar.gz dberkholz-master.tar.bz2 dberkholz-master.zip |
Diffstat (limited to 'dev-python/python-twitter/python-twitter-9999.ebuild')
-rw-r--r-- | dev-python/python-twitter/python-twitter-9999.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/dev-python/python-twitter/python-twitter-9999.ebuild b/dev-python/python-twitter/python-twitter-9999.ebuild new file mode 100644 index 0000000..aec65da --- /dev/null +++ b/dev-python/python-twitter/python-twitter-9999.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/python-twitter/python-twitter-1.0.ebuild,v 1.2 2013/09/05 18:47:04 mgorny Exp $ + +EAPI=5 +PYTHON_COMPAT=( python{2_6,2_7,3_1,3_2,3_3} ) +EGIT_REPO_URI="git@github.com:bear/python-twitter.git" + +inherit distutils-r1 + +DESCRIPTION="This library provides a pure python interface for the Twitter API" +HOMEPAGE="https://github.com/bear/python-twitter.git" +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="git://github.com/bear/python-twitter.git" + inherit git-r3 +else + SRC_URI="https://github.com/bear/python-twitter/archive/v${PV}.tar.gz -> ${P}.tar.gz" +fi + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~x64-macos" +IUSE="examples test" + +RDEPEND=" + virtual/python-argparse + >=dev-python/httplib2-0.7.7 + >=dev-python/simplejson-3.3.1 + >=dev-python/requests-1.2.3 + >=dev-python/requests-oauthlib-0.3.3 + >=dev-python/oauth2-1.5.211 + >=dev-python/oauthlib-0.6.0 + " +DEPEND="${RDEPEND} + dev-python/setuptools" + +DOCS="CHANGES README.md" +PYTHON_MODNAME="twitter.py" + +src_prepare() { + # Fix for Python 3, backwards compat to at least 2.5 + sed -i -e "s:print \(.*\):print(\1):g" "${S}"/setup.py || die + + distutils_src_prepare + # Delete internal copy of simplejson. + rm -fr simplejson +} + +python_test() { + esetup.py test +} + +python_install_all() { + distutils_src_install + + dohtml doc/twitter.html + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins examples/* + fi +} |