diff options
author | Ian Delaney <idella4@gentoo.org> | 2013-01-14 04:50:46 +0000 |
---|---|---|
committer | Ian Delaney <idella4@gentoo.org> | 2013-01-14 04:50:46 +0000 |
commit | 18a1a8f16e8c833150175695fc2c0614b71821ac (patch) | |
tree | d6bb957b332dae59547b85f5f12c8918740bf6c0 /dev-python/Djblets | |
parent | version bump (diff) | |
download | gentoo-2-18a1a8f16e8c833150175695fc2c0614b71821ac.tar.gz gentoo-2-18a1a8f16e8c833150175695fc2c0614b71821ac.tar.bz2 gentoo-2-18a1a8f16e8c833150175695fc2c0614b71821ac.zip |
Support for py2.5 dropped due to test failure, support for multiple 'impls' set in favour of setting active py2, DEPEND upgraded to cater to tests, mising test file sample.rss added to files/ to cater to tests, test phase added, test suites files removed in src_install to avoid file collisions
(Portage version: 2.1.11.30/cvs/Linux x86_64, signed Manifest commit with key 0xB8072B0D)
Diffstat (limited to 'dev-python/Djblets')
-rw-r--r-- | dev-python/Djblets/ChangeLog | 11 | ||||
-rw-r--r-- | dev-python/Djblets/Djblets-0.6.22.ebuild | 43 | ||||
-rw-r--r-- | dev-python/Djblets/files/sample.rss | 77 |
3 files changed, 122 insertions, 9 deletions
diff --git a/dev-python/Djblets/ChangeLog b/dev-python/Djblets/ChangeLog index 5d15a71235f4..6f2e9ec56c47 100644 --- a/dev-python/Djblets/ChangeLog +++ b/dev-python/Djblets/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-python/Djblets -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/Djblets/ChangeLog,v 1.14 2012/08/03 08:03:20 xmw Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/Djblets/ChangeLog,v 1.15 2013/01/14 04:50:46 idella4 Exp $ + + 14 Jan 2013; Ian Delaney <idella4@gentoo.org> +files/sample.rss, + Djblets-0.6.22.ebuild: + Support for py2.5 dropped due to test failure, support for multiple 'impls' + set in favour of setting active py2, DEPEND upgraded to cater to tests, mising + test file sample.rss added to files/ to cater to tests, test phase added, test + suites files removed in src_install to avoid file collisions *Djblets-0.7 (03 Aug 2012) *Djblets-0.6.22 (03 Aug 2012) diff --git a/dev-python/Djblets/Djblets-0.6.22.ebuild b/dev-python/Djblets/Djblets-0.6.22.ebuild index b4caf92d0623..a1a87be0ea9b 100644 --- a/dev-python/Djblets/Djblets-0.6.22.ebuild +++ b/dev-python/Djblets/Djblets-0.6.22.ebuild @@ -1,10 +1,12 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/Djblets/Djblets-0.6.22.ebuild,v 1.1 2012/08/03 08:03:20 xmw Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/Djblets/Djblets-0.6.22.ebuild,v 1.2 2013/01/14 04:50:46 idella4 Exp $ EAPI=4 -PYTHON_DEPEND="2" - +PYTHON_DEPEND="2:2.6" +SUPPORT_PYTHON_ABIS=1 +# pypy included below to just a single test failure +RESTRICT_PYTHON_ABIS="2.5 3.* *-jython 2.7-pypy-*" inherit distutils versionator DESCRIPTION="A collection of useful extensions for Django" @@ -18,10 +20,37 @@ IUSE="" RDEPEND="dev-python/django dev-python/imaging" +DEPEND="${RDEPEND} + test? ( dev-python/django-pipeline + dev-python/django-evolution + >=dev-python/django-1.4.1 )" PYTHON_MODNAME="djblets" -pkg_setup() { - python_set_active_version 2 - python_pkg_setup +src_prepare() { + # Easier to add the file since upstream (currently) unresponsive to request + # https://github.com/djblets/djblets/pull/6 + mkdir djblets/feedview/testdata || die + cp "${FILESDIR}"/sample.rss djblets/feedview/testdata || die + distutils_src_prepare +} + +src_test() { + export DJANGO_SETTINGS_MODULE="django.conf" + testing() { + PYTHONPATH="build/lib" "$(PYTHON)" -m tests.runtests + } + python_execute_function testing +} + +src_install() { + distutils_src_install + + local msg="Remove un-needed tests and also avoid file collisions" + rmTests() { + rm -rf ${ED}/$(python_get_sitedir)/tests/ || die + } + einfo $msg + einfo "" + python_execute_function rmTests } diff --git a/dev-python/Djblets/files/sample.rss b/dev-python/Djblets/files/sample.rss new file mode 100644 index 000000000000..2e2c90ef3ca2 --- /dev/null +++ b/dev-python/Djblets/files/sample.rss @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet +href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss +xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" +xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" +version="2.0"> + +<channel> + <title>Review Board News</title> + + <link>http://www.review-board.org/news</link> + <description>News on Review Board releases and important updates</description> + <pubDate>Wed, 23 Jul 2008 10:27:05 +0000</pubDate> + <generator>http://wordpress.org/?v=2.5.1</generator> + <language>en</language> + <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/ReviewBoardNews" +type="application/rss+xml" /><item> + <title>Django 1.0 alpha released</title> + <link>http://feeds.feedburner.com/~r/ReviewBoardNews/~3/343422891/</link> + <comments>http://www.review-board.org/news/2008/07/23/django-10-alpha-released/#comments</comments> + <pubDate>Wed, 23 Jul 2008 10:27:05 +0000</pubDate> + <dc:creator>chipx86</dc:creator> + + <category><![CDATA[Project Updates]]></category> + + <guid isPermaLink="false">http://www.review-board.org/news/?p=7</guid> + <description><![CDATA[Django, the web framework Review Board is built upon, is approaching their 1.0 release and have released +Django 1.0 alpha for download. In order to keep up with Django development, Review Board has required the Django Subversion development tree to +run, requiring that users develop a basic understanding of Subversion and keeping their copy up-to-date. +With [...]]]></description> + <content:encoded><![CDATA[<p><a href="http://www.djangoproject.com/">Django</a>, the web framework Review Board is built +upon, is approaching their 1.0 release and have <a href="http://www.djangoproject.com/download/">released</a> Django 1.0 alpha for download. In +order to keep up with Django development, Review Board has required the Django Subversion development tree to run, requiring that users develop a +basic understanding of Subversion and keeping their copy up-to-date.</p> +<p>With the new Django alpha release, we’re now able to remove this extra burden. As of tonight, Review Board now requires Django 1.0 alpha +or higher. Simply download the new release and install it. Of course, if you’re currently using a Subversion checkout of Django, you can +continue to use it.</p> +<p>The Django 1.0 release will bring us a step closer to our own 1.0. There’s a few major features still planned, and lots of bug fixing. +We’ll have a roadmap up in the coming weeks detailing our plans. Stay tuned!</p> +<div class="feedflare"> +<a href="http://feeds.feedburner.com/~f/ReviewBoardNews?a=Ur95Vj"><img src="http://feeds.feedburner.com/~f/ReviewBoardNews?i=Ur95Vj" +border="0"></img></a> <a href="http://feeds.feedburner.com/~f/ReviewBoardNews?a=T7dICj"><img +src="http://feeds.feedburner.com/~f/ReviewBoardNews?i=T7dICj" border="0"></img></a> +</div><img src="http://feeds.feedburner.com/~r/ReviewBoardNews/~4/343422891" height="1" width="1"/>]]></content:encoded> + <wfw:commentRss>http://www.review-board.org/news/2008/07/23/django-10-alpha-released/feed/</wfw:commentRss> + <feedburner:origLink>http://www.review-board.org/news/2008/07/23/django-10-alpha-released/</feedburner:origLink></item> + <item> + <title>Introducing Review Board News</title> + <link>http://feeds.feedburner.com/~r/ReviewBoardNews/~3/307288497/</link> + <comments>http://www.review-board.org/news/2008/05/30/introducing-review-board-news/#comments</comments> + <pubDate>Fri, 30 May 2008 23:50:12 +0000</pubDate> + <dc:creator>chipx86</dc:creator> + + <category><![CDATA[Site Updates]]></category> + + <guid isPermaLink="false">http://www.review-board.org/news/?p=3</guid> + <description><![CDATA[In the past, we’ve always brought information on new Review Board development to our blogs and the +mailing list. However, as the software continues to mature, we need a better way of informing people about major releases and important updates, +without making them sift through development discussions and technical updates. +In the future, we’ll be posting [...]]]></description> + <content:encoded><![CDATA[<p>In the past, we’ve always brought information on new Review Board development to our <a +href="/blogs/">blogs</a> and the <a href="/http://groups.google.com/group/reviewboard">mailing list</a>. However, as the software continues to +mature, we need a better way of informing people about major releases and important updates, without making them sift through development +discussions and technical updates.</p> +<p>In the future, we’ll be posting critical updates (such as required database migrations) here, as well as software releases (once we hit +1.0). News posts will soon begin to appear in your Review Board administration dashboard, making it easy to keep up. And, of course, you can +subscribe to our RSS feed in your favorite news reader.</p> +<div class="feedflare"> +<a href="http://feeds.feedburner.com/~f/ReviewBoardNews?a=XTHVGi"><img src="http://feeds.feedburner.com/~f/ReviewBoardNews?i=XTHVGi" +border="0"></img></a> <a href="http://feeds.feedburner.com/~f/ReviewBoardNews?a=HMHeYi"><img +src="http://feeds.feedburner.com/~f/ReviewBoardNews?i=HMHeYi" border="0"></img></a> +</div><img src="http://feeds.feedburner.com/~r/ReviewBoardNews/~4/307288497" height="1" width="1"/>]]></content:encoded> + <wfw:commentRss>http://www.review-board.org/news/2008/05/30/introducing-review-board-news/feed/</wfw:commentRss> + <feedburner:origLink>http://www.review-board.org/news/2008/05/30/introducing-review-board-news/</feedburner:origLink></item> + </channel> +</rss> + |