net-p2p/saku: distutils-r1, EAPI=6
authorMichał Górny <mgorny@gentoo.org>
Fri, 17 Feb 2017 17:21:06 +0000 (18:21 +0100)
committerMichał Górny <mgorny@gentoo.org>
Fri, 17 Feb 2017 17:21:47 +0000 (18:21 +0100)
net-p2p/saku/saku-3.11.0-r2.ebuild [moved from net-p2p/saku/saku-3.11.0-r1.ebuild with 67% similarity]

similarity index 67%
rename from net-p2p/saku/saku-3.11.0-r1.ebuild
rename to net-p2p/saku/saku-3.11.0-r2.ebuild
index f04cbd8797d0dd8cede5b237720b168c448b8b7a..a92eee2ce807e94ba9a815e2a60e8cacd3fc1259 100644 (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
 }