net-p2p/saku: distutils-r1, EAPI=6

This commit is contained in:
Michał Górny
2017-02-17 18:21:06 +01:00
parent 5ef8fde846
commit 36df70d6d2

View File

@@ -1,12 +1,12 @@
# Copyright 1999-2014 Gentoo Foundation
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=3
EAPI=6
PYTHON_DEPEND="2:2.5"
PYTHON_COMPAT=( python2_7 )
inherit distutils eutils user
inherit distutils-r1 user
DESCRIPTION="a clone of P2P anonymous BBS shinGETsu"
HOMEPAGE="http://shingetsu.info/"
@@ -17,7 +17,7 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="dev-python/cheetah"
DEPEND="dev-python/cheetah[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
pkg_setup() {
@@ -25,21 +25,22 @@ pkg_setup() {
enewuser saku -1 -1 /var/run/saku saku
}
src_prepare() {
python_prepare_all() {
sed -i -e "/^prefix/s:/usr:${EPREFIX}/usr:" file/saku.ini || die
sed -i -e "s:root/share/doc/saku/:root/share/doc/${PF}/:" setup.py || die
distutils-r1_python_prepare_all
}
src_install() {
distutils_src_install
python_install_all() {
distutils-r1_python_install_all
dodir /etc/saku
insinto /etc/saku
doins "${FILESDIR}"/saku.ini
doinitd "${FILESDIR}"/saku
diropts -o saku -g saku
dodir /var/log/saku
dodir /var/spool/saku
keepdir /var/log/saku
keepdir /var/spool/saku
}