blob: e38a2d231b49668b3d51b3796737fbda60a1b703 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/nikola/nikola-5.2.ebuild,v 1.1 2013/02/14 07:43:28 yngwin Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} ) # 3_2 should be possible now, but untested
inherit distutils-r1
DESCRIPTION="A static website and blog generator"
HOMEPAGE="http://nikola.ralsina.com.ar/"
if [[ ${PV} == *9999* ]]; then
inherit git-2
EGIT_REPO_URI="git://github.com/ralsina/${PN}.git"
KEYWORDS=""
else
SRC_URI="http://nikola-generator.googlecode.com/files/${P}.zip"
KEYWORDS="~amd64"
fi
LICENSE="MIT-with-advertising"
SLOT="0"
IUSE="jinja markdown"
DEPEND="dev-python/docutils" # needs rst2man to build manpage
RDEPEND="${DEPEND}
=dev-python/configparser-3.2.0*
>=dev-python/doit-0.20.0
dev-python/imaging
dev-python/lxml
>=dev-python/mako-0.6
>=dev-python/mock-1.0.0
dev-python/pygments
dev-python/PyRSS2Gen
dev-python/requests
dev-python/unidecode
dev-python/yapsy
jinja? ( dev-python/jinja )
markdown? ( dev-python/markdown )"
src_install() {
distutils-r1_src_install
# hackish way to remove docs that ended up in the wrong place
rm -rf "${D}"/usr/share/doc/${PN}
dodoc AUTHORS.txt CHANGES.txt README.md docs/*.txt
}
pkg_postinst() {
if has_version '<www-apps/nikola-5.0'; then
elog 'Nikola has changed quite a lot since the previous major version.'
elog 'Please make sure to read the updated documentation.'
fi
}
|