summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-02-17 21:51:18 +0100
committerMichał Górny <mgorny@gentoo.org>2017-02-17 21:53:26 +0100
commitd47abc394732d47765fa5560581dfde698e52607 (patch)
tree159676848c4ab5805b433662872a622ab6b82dfc
parentnet-firewall/firehol: version bump (diff)
downloadgentoo-d47abc394732d47765fa5560581dfde698e52607.tar.gz
gentoo-d47abc394732d47765fa5560581dfde698e52607.tar.bz2
gentoo-d47abc394732d47765fa5560581dfde698e52607.zip
www-apps/pyblosxom: distutils-r1, EAPI=6
-rw-r--r--www-apps/pyblosxom/files/pyblosxom-1.4.2-gentoo.patch4
-rw-r--r--www-apps/pyblosxom/pyblosxom-1.4.3-r1.ebuild50
-rw-r--r--www-apps/pyblosxom/pyblosxom-1.4.3.ebuild65
3 files changed, 52 insertions, 67 deletions
diff --git a/www-apps/pyblosxom/files/pyblosxom-1.4.2-gentoo.patch b/www-apps/pyblosxom/files/pyblosxom-1.4.2-gentoo.patch
index cc7d59f8a021..5f55faf5fb58 100644
--- a/www-apps/pyblosxom/files/pyblosxom-1.4.2-gentoo.patch
+++ b/www-apps/pyblosxom/files/pyblosxom-1.4.2-gentoo.patch
@@ -1,5 +1,5 @@
---- setup.py.orig 2007-12-18 11:13:36.439046250 +0100
-+++ setup.py 2007-12-18 11:14:05.216844750 +0100
+--- a/setup.py 2007-12-18 11:13:36.439046250 +0100
++++ b/setup.py 2007-12-18 11:14:05.216844750 +0100
@@ -73,9 +73,7 @@
# we want to move the web script files as well, so we sneak them
# in here.
diff --git a/www-apps/pyblosxom/pyblosxom-1.4.3-r1.ebuild b/www-apps/pyblosxom/pyblosxom-1.4.3-r1.ebuild
new file mode 100644
index 000000000000..3c31e6dd0eda
--- /dev/null
+++ b/www-apps/pyblosxom/pyblosxom-1.4.3-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 webapp
+
+DESCRIPTION="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=""
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.4.2-gentoo.patch"
+)
+
+src_install() {
+ webapp_src_preinst
+
+ distutils-r1_src_install
+
+ keepdir /usr/share/${P}/plugins
+ keepdir "${MY_HTDOCSDIR}"/data
+ keepdir "${MY_HTDOCSDIR}"/log
+
+ insinto "${MY_CGIBINDIR}"/pyblosxom
+ doins web/{config.py,pyblosxom.cgi}
+
+ 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
+}
diff --git a/www-apps/pyblosxom/pyblosxom-1.4.3.ebuild b/www-apps/pyblosxom/pyblosxom-1.4.3.ebuild
deleted file mode 100644
index 524311ead17d..000000000000
--- a/www-apps/pyblosxom/pyblosxom-1.4.3.ebuild
+++ /dev/null
@@ -1,65 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-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
-}