aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-portage/g-octave')
-rw-r--r--app-portage/g-octave/ChangeLog6
-rw-r--r--app-portage/g-octave/g-octave-9999.ebuild44
-rw-r--r--app-portage/g-octave/metadata.xml10
3 files changed, 26 insertions, 34 deletions
diff --git a/app-portage/g-octave/ChangeLog b/app-portage/g-octave/ChangeLog
index 27a8cc36f..94d0a710e 100644
--- a/app-portage/g-octave/ChangeLog
+++ b/app-portage/g-octave/ChangeLog
@@ -1,7 +1,11 @@
# ChangeLog for app-portage/g-octave
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 03 Mar 2013; Justin Lecher <jlec@gentoo.org> g-octave-9999.ebuild,
+ metadata.xml:
+ Migrate to new python eclasses, git2 eclass and EAPI=5
+
25 Oct 2011; Justin Lecher <jlec@gentoo.org> metadata.xml:
Removed no-herd from herd tag in metadata.xml
diff --git a/app-portage/g-octave/g-octave-9999.ebuild b/app-portage/g-octave/g-octave-9999.ebuild
index 7bec90ae5..2e05b3fc4 100644
--- a/app-portage/g-octave/g-octave-9999.ebuild
+++ b/app-portage/g-octave/g-octave-9999.ebuild
@@ -1,13 +1,12 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-EAPI="2"
+EAPI=5
-SUPPORT_PYTHON_ABIS="1"
-PYTHON_DEPEND="*:2.6"
+PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2} pypy{1_9,2_0} )
-inherit distutils git
+inherit distutils-r1 git-2
DESCRIPTION="A tool that generates and installs ebuilds for Octave-Forge"
HOMEPAGE="http://www.g-octave.org/"
@@ -18,35 +17,24 @@ SLOT="0"
KEYWORDS=""
IUSE="doc test"
-DEPEND=">=dev-python/docutils-0.6
- doc? ( >=dev-python/sphinx-1.0 )"
+DEPEND="
+ dev-python/docutils[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
RDEPEND="sys-apps/portage"
S="${WORKDIR}/${PN}"
-PYTHON_MODNAME="g_octave"
-
-src_compile() {
- distutils_src_compile
- if use doc; then
- emake -C docs html
- fi
+python_compile_all() {
+ use doc && emake -C docs html
}
-src_install() {
- distutils_src_install
- dohtml ${PN}.html
- doman ${PN}.1
- if use doc; then
- mv docs/_build/{html,sphinx}
- dohtml -r docs/_build/sphinx
- fi
+python_test() {
+ ${PYTHON} scripts/run_tests.py || die
}
-src_test() {
- testing() {
- PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" \
- scripts/run_tests.py || die 'test failed.'
- }
- python_execute_function testing
+python_install_all() {
+ doman ${PN}.1
+ use doc && HTML_DOCS=( docs/_build/html/. )
+ HTML_DOCS+=( ${PN}.html )
+ distutils-r1_python_install_all
}
diff --git a/app-portage/g-octave/metadata.xml b/app-portage/g-octave/metadata.xml
index 772748d54..33a64d286 100644
--- a/app-portage/g-octave/metadata.xml
+++ b/app-portage/g-octave/metadata.xml
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <maintainer>
- <email>rafael@rafaelmartins.eng.br</email>
- <name>Rafael Goncalves Martins</name>
- </maintainer>
- <longdescription lang="en">
+ <maintainer>
+ <email>rafael@rafaelmartins.eng.br</email>
+ <name>Rafael Goncalves Martins</name>
+ </maintainer>
+ <longdescription lang="en">
g-octave is a tool that generates and installs ebuilds for Octave-Forge
packages "on-the-fly" to Gentoo Linux, using Portage. It's capable to
generate ebuilds and Manifest files for the packages, and to install