blob: 3723c4b355364e06901bd1c2be89fe3eb720c680 (
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
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/pyblosxom/pyblosxom-1.4.3.ebuild,v 1.4 2012/09/02 22:59:11 blueness Exp $
EAPI="3"
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS="1"
RESTRICT_PYTHON_ABIS="3.* *-jython"
inherit distutils eutils webapp
DESCRIPTION="PyBlosxom is a lightweight weblog system."
HOMEPAGE="http://pyblosxom.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="MIT"
KEYWORDS="~amd64 ~arm ~x86"
# This installs python library files.
SLOT=0
WEBAPP_MANUAL_SLOT=yes
IUSE=""
DEPEND=""
RDEPEND=""
PYTHON_MODNAME="Pyblosxom"
pkg_setup() {
python_pkg_setup
webapp_pkg_setup
}
src_prepare() {
distutils_src_prepare
epatch "${FILESDIR}/${PN}-1.4.2-gentoo.patch"
}
src_install() {
webapp_src_preinst
distutils_src_install
dodoc README
keepdir /usr/share/${P}/plugins
keepdir "${MY_HTDOCSDIR}"/data
keepdir "${MY_HTDOCSDIR}"/log
mkdir -p "${D}${MY_CGIBINDIR}"/pyblosxom
cp web/{config.py,pyblosxom.cgi} "${D}${MY_CGIBINDIR}"/pyblosxom/
webapp_configfile "${MY_CGIBINDIR}"/pyblosxom/config.py
webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
webapp_postupgrade_txt en "${FILESDIR}"/postupgrade-en.txt
webapp_hook_script "${FILESDIR}"/config-hook.sh
webapp_src_install
}
pkg_postinst() {
distutils_pkg_postinst
webapp_pkg_postinst
}
|