diff options
author | Rafael Martins <rafaelmartins@gentoo.org> | 2013-11-29 03:54:22 +0000 |
---|---|---|
committer | Rafael Martins <rafaelmartins@gentoo.org> | 2013-11-29 03:54:22 +0000 |
commit | ccd38a4c5df1e5ca6ea2a97660aadddffddcbaab (patch) | |
tree | fdc37ba847acad3dd20ebf9d177f0fb3aaa03c51 /www-apps | |
parent | Bump pygit2 for the live ebuild (diff) | |
download | gentoo-2-ccd38a4c5df1e5ca6ea2a97660aadddffddcbaab.tar.gz gentoo-2-ccd38a4c5df1e5ca6ea2a97660aadddffddcbaab.tar.bz2 gentoo-2-ccd38a4c5df1e5ca6ea2a97660aadddffddcbaab.zip |
Added mercurial USE flag for live ebuild
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key )
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/blohg/ChangeLog | 6 | ||||
-rw-r--r-- | www-apps/blohg/blohg-9999.ebuild | 29 | ||||
-rw-r--r-- | www-apps/blohg/metadata.xml | 13 |
3 files changed, 34 insertions, 14 deletions
diff --git a/www-apps/blohg/ChangeLog b/www-apps/blohg/ChangeLog index 145fd81b5a08..bd091c46f0f6 100644 --- a/www-apps/blohg/ChangeLog +++ b/www-apps/blohg/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for www-apps/blohg # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/blohg/ChangeLog,v 1.29 2013/11/29 03:13:00 rafaelmartins Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/blohg/ChangeLog,v 1.30 2013/11/29 03:54:22 rafaelmartins Exp $ + + 29 Nov 2013; Rafael G. Martins <rafaelmartins@gentoo.org> blohg-9999.ebuild, + metadata.xml: + Added mercurial USE flag for live ebuild 29 Nov 2013; Rafael G. Martins <rafaelmartins@gentoo.org> blohg-9999.ebuild: Bump pygit2 for the live ebuild diff --git a/www-apps/blohg/blohg-9999.ebuild b/www-apps/blohg/blohg-9999.ebuild index 152b24b7a19e..230ca141b8c1 100644 --- a/www-apps/blohg/blohg-9999.ebuild +++ b/www-apps/blohg/blohg-9999.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/blohg/blohg-9999.ebuild,v 1.17 2013/11/29 03:13:00 rafaelmartins Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/blohg/blohg-9999.ebuild,v 1.18 2013/11/29 03:54:22 rafaelmartins Exp $ -EAPI="3" +EAPI=5 PYTHON_DEPEND="2:2.7" SUPPORT_PYTHON_ABIS="1" @@ -30,7 +30,10 @@ fi LICENSE="GPL-2" SLOT="0" -IUSE="doc git test" +IUSE="doc git +mercurial test" + +REQUIRED_USE="|| ( git mercurial ) + test? ( git mercurial )" RDEPEND="=dev-python/docutils-0.10* >=dev-python/flask-0.10.1 @@ -38,17 +41,27 @@ RDEPEND="=dev-python/docutils-0.10* >=dev-python/flask-script-0.5.3 >=dev-python/frozen-flask-0.7 >=dev-python/jinja-2.5.2 - >=dev-vcs/mercurial-1.6 dev-python/pyyaml dev-python/setuptools dev-python/pygments - git? ( =dev-python/pygit2-0.20* )" + git? ( =dev-python/pygit2-0.20* ) + mercurial? ( >=dev-vcs/mercurial-1.6 )" DEPEND="${RDEPEND} doc? ( dev-python/sphinx ) - test? ( - dev-python/mock - =dev-python/pygit2-0.20* )" + test? ( dev-python/mock )" + +src_prepare() { + if ! use git; then + rm -rf blohg/vcs_backends/git || die 'rm failed' + fi + + if ! use mercurial; then + rm -rf blohg/vcs_backends/hg || die 'rm failed' + fi + + distutils_src_prepare +} src_compile() { distutils_src_compile diff --git a/www-apps/blohg/metadata.xml b/www-apps/blohg/metadata.xml index cac8fec37933..f7cb22f5c7ee 100644 --- a/www-apps/blohg/metadata.xml +++ b/www-apps/blohg/metadata.xml @@ -5,11 +5,13 @@ <email>rafaelmartins@gentoo.org</email> <name>Rafael G. Martins</name> </maintainer> - <longdescription lang="en">blohg is a Mercurial-based blogging engine written in Python, built with - the Flask micro-framework and some of his available extensions. All the - content of the blogs are stored inside Mercurial repositories and the - repository history is used for build the posts and pages. blohg uses - Jinja2 as template engine.</longdescription> + <longdescription lang="en"> + blohg is a Mercurial (or Git) based blogging engine written in Python, + built with the Flask micro-framework and some of his available extensions. + All the content of the blogs are stored inside repositories and the + repository history is used for build the posts and pages. blohg uses + Jinja2 as template engine. + </longdescription> <upstream> <maintainer status="active"> <email>rafaelmartins@gentoo.org</email> @@ -20,5 +22,6 @@ </upstream> <use> <flag name="git">Enable Git support</flag> + <flag name="mercurial">Enable Mercurial support</flag> </use> </pkgmetadata> |