Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 485688 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/www-apps/nikola/nikola-5.2.ebuild (-9 / +16 lines)
Lines 2-41 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/www-apps/nikola/nikola-5.2.ebuild,v 1.2 2013/06/09 19:03:24 floppym Exp $
3
# $Header: /var/cvsroot/gentoo-x86/www-apps/nikola/nikola-5.2.ebuild,v 1.2 2013/06/09 19:03:24 floppym Exp $
4
4
5
5
EAPI=5
6
EAPI=5
6
PYTHON_COMPAT=( python{2_6,2_7} ) # 3_2 should be possible now, but untested
7
PYTHON_COMPAT=( python{2_7,3_3} )
7
inherit distutils-r1
8
inherit distutils-r1
8
9
9
DESCRIPTION="A static website and blog generator"
10
DESCRIPTION="A static website and blog generator"
10
HOMEPAGE="http://nikola.ralsina.com.ar/"
11
HOMEPAGE="http://nikola.ralsina.com.ar/"
12
MY_PN="Nikola"
11
13
12
if [[ ${PV} == *9999* ]]; then
14
if [[ ${PV} == *9999* ]]; then
13
	inherit git-2
15
	inherit git-2
14
	EGIT_REPO_URI="git://github.com/ralsina/${PN}.git"
16
	EGIT_REPO_URI="git://github.com/ralsina/${PN}.git"
15
	KEYWORDS=""
17
	KEYWORDS=""
16
else
18
else
17
	SRC_URI="http://nikola-generator.googlecode.com/files/${P}.zip"
19
	SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${P}.tar.gz"
18
	KEYWORDS="~amd64"
20
	KEYWORDS="~amd64"
19
fi
21
fi
20
22
21
LICENSE="MIT-with-advertising"
23
LICENSE="MIT-with-advertising"
22
SLOT="0"
24
SLOT="0"
23
IUSE="jinja markdown"
25
IUSE="jinja markdown assets charts"
24
26
25
DEPEND="dev-python/docutils" # needs rst2man to build manpage
27
DEPEND="dev-python/docutils" # needs rst2man to build manpage
26
RDEPEND="${DEPEND}
28
RDEPEND="${DEPEND}
27
	=dev-python/configparser-3.2.0*
29
	python_targets_python2_7? ( =dev-python/configparser-3.2.0* )
28
	>=dev-python/doit-0.20.0
30
	>=dev-python/doit-0.20.0
29
	virtual/python-imaging
31
	virtual/python-imaging
30
	dev-python/lxml
32
	dev-python/lxml
31
	>=dev-python/mako-0.6
33
	>=dev-python/mako-0.6
32
	>=dev-python/mock-1.0.0
33
	dev-python/pygments
34
	dev-python/pygments
34
	dev-python/PyRSS2Gen
35
	dev-python/PyRSS2Gen
35
	dev-python/requests
36
	>=dev-python/requests-1.0
36
	dev-python/unidecode
37
	dev-python/unidecode
37
	dev-python/yapsy
38
	>=dev-python/yapsy-1.10.2
38
	jinja? ( dev-python/jinja )
39
	dev-python/logbook
40
	>=dev-python/pytz-2013d
41
	dev-python/python-dateutil
42
	assets? ( dev-python/assets )
43
	charts? ( dev-python/pygal )
44
	jinja? ( >=dev-python/jinja-2.7 )
39
	markdown? ( dev-python/markdown )"
45
	markdown? ( dev-python/markdown )"
40
46
41
src_install() {
47
src_install() {
Lines 44-50 Link Here
44
	# hackish way to remove docs that ended up in the wrong place
50
	# hackish way to remove docs that ended up in the wrong place
45
	rm -rf "${D}"/usr/share/doc/${PN}
51
	rm -rf "${D}"/usr/share/doc/${PN}
46
52
47
	dodoc AUTHORS.txt CHANGES.txt README.md docs/*.txt
53
	dodoc AUTHORS.txt CHANGES.txt README.rst docs/*.txt
54
	doman docs/man/*
48
}
55
}
49
56
50
pkg_postinst() {
57
pkg_postinst() {

Return to bug 485688