Gentoo Archives: gentoo-commits

From: "Rafael Martins (rafaelmartins)" <rafaelmartins@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apps/blohg: blohg-0.13.ebuild ChangeLog blohg-0.12.ebuild
Date: Tue, 10 Jun 2014 01:04:18
Message-Id: 20140610010415.89E322004E@flycatcher.gentoo.org
1 rafaelmartins 14/06/10 01:04:15
2
3 Modified: ChangeLog
4 Added: blohg-0.13.ebuild
5 Removed: blohg-0.12.ebuild
6 Log:
7 version bump
8
9 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key )
10
11 Revision Changes Path
12 1.32 www-apps/blohg/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/blohg/ChangeLog?rev=1.32&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/blohg/ChangeLog?rev=1.32&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/blohg/ChangeLog?r1=1.31&r2=1.32
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-apps/blohg/ChangeLog,v
21 retrieving revision 1.31
22 retrieving revision 1.32
23 diff -u -r1.31 -r1.32
24 --- ChangeLog 9 Jun 2014 03:33:49 -0000 1.31
25 +++ ChangeLog 10 Jun 2014 01:04:15 -0000 1.32
26 @@ -1,6 +1,12 @@
27 # ChangeLog for www-apps/blohg
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-apps/blohg/ChangeLog,v 1.31 2014/06/09 03:33:49 rafaelmartins Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-apps/blohg/ChangeLog,v 1.32 2014/06/10 01:04:15 rafaelmartins Exp $
31 +
32 +*blohg-0.13 (10 Jun 2014)
33 +
34 + 10 Jun 2014; Rafael G. Martins <rafaelmartins@g.o> +blohg-0.13.ebuild,
35 + -blohg-0.12.ebuild:
36 + version bump
37
38 09 Jun 2014; Rafael G. Martins <rafaelmartins@g.o> blohg-9999.ebuild:
39 ported 9999 to distutils-r1, fixed deps
40
41
42
43 1.1 www-apps/blohg/blohg-0.13.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/blohg/blohg-0.13.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apps/blohg/blohg-0.13.ebuild?rev=1.1&content-type=text/plain
47
48 Index: blohg-0.13.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/www-apps/blohg/blohg-0.13.ebuild,v 1.1 2014/06/10 01:04:15 rafaelmartins Exp $
53
54 EAPI=5
55
56 PYTHON_COMPAT=( python2_7 )
57
58 GIT_ECLASS=""
59 if [[ ${PV} = *9999* ]]; then
60 GIT_ECLASS="git-r3"
61 EGIT_REPO_URI="git://github.com/rafaelmartins/blohg.git
62 https://github.com/rafaelmartins/blohg"
63 fi
64
65 inherit distutils-r1 ${GIT_ECLASS}
66
67 DESCRIPTION="A Mercurial (or Git) based blogging engine."
68 HOMEPAGE="http://blohg.org/ http://pypi.python.org/pypi/blohg"
69
70 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
71 KEYWORDS="~amd64 ~x86"
72 if [[ ${PV} = *9999* ]]; then
73 SRC_URI=""
74 KEYWORDS=""
75 fi
76
77 LICENSE="GPL-2"
78 SLOT="0"
79 IUSE="doc git +mercurial test"
80
81 REQUIRED_USE="|| ( git mercurial )
82 test? ( git mercurial )"
83
84 RDEPEND="
85 =dev-python/click-2.0
86 =dev-python/docutils-0.11*
87 >=dev-python/flask-0.10.1
88 >=dev-python/flask-babel-0.7
89 >=dev-python/frozen-flask-0.7
90 >=dev-python/jinja-2.5.2
91 dev-python/pyyaml
92 dev-python/setuptools
93 dev-python/pygments
94 git? ( =dev-python/pygit2-0.20* )
95 mercurial? ( >=dev-vcs/mercurial-1.6 )"
96
97 DEPEND="${RDEPEND}
98 doc? ( dev-python/sphinx )
99 test? ( dev-python/mock )"
100
101 python_prepare_all() {
102 if ! use git; then
103 rm -rf blohg/vcs_backends/git || die 'rm failed'
104 fi
105
106 if ! use mercurial; then
107 rm -rf blohg/vcs_backends/hg || die 'rm failed'
108 fi
109
110 distutils-r1_python_prepare_all
111 }
112
113 python_compile_all() {
114 use doc && emake -C docs html
115 }
116
117 python_install_all() {
118 use doc && HTML_DOCS=( docs/_build/html/. )
119 distutils-r1_python_install_all
120 }
121
122 python_test() {
123 esetup.py test
124 }
125
126 pkg_postinst() {
127 local ver="${PV}"
128 [[ ${PV} = *9999* ]] && ver="latest"
129
130 elog "You may want to check the upgrade notes:"
131 elog "http://docs.blohg.org/en/${ver}/upgrade/"
132 }