From 9853473d5594ddfd09ad9cf16d1aecf5ab99e994 Mon Sep 17 00:00:00 2001 From: Justin Lecher Date: Wed, 4 Dec 2013 17:02:00 +0100 Subject: sci-electronics/player: Bump EAPI to 5; Bump to python-single-r1 eclass Package-Manager: portage-2.2.7 --- sci-electronics/player/ChangeLog | 5 ++++- sci-electronics/player/player-2.0.4.ebuild | 29 ++++++++++++++--------------- 2 files changed, 18 insertions(+), 16 deletions(-) (limited to 'sci-electronics') diff --git a/sci-electronics/player/ChangeLog b/sci-electronics/player/ChangeLog index 566013e05..d9e7b1f47 100644 --- a/sci-electronics/player/ChangeLog +++ b/sci-electronics/player/ChangeLog @@ -1,7 +1,10 @@ # ChangeLog for sci-electronics/player -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 04 Dec 2013; Justin Lecher player-2.0.4.ebuild: + Bump EAPI to 5; Bump to python-single-r1 eclass + 14 Mar 2011; Justin Lecher player-2.0.4.ebuild: Moved media-libs/jpeg -> virtual/jpeg diff --git a/sci-electronics/player/player-2.0.4.ebuild b/sci-electronics/player/player-2.0.4.ebuild index c1234826b..15be88a47 100644 --- a/sci-electronics/player/player-2.0.4.ebuild +++ b/sci-electronics/player/player-2.0.4.ebuild @@ -1,12 +1,12 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ -EAPI=1 +EAPI=5 -PYTHON_DEPEND="2" +PYTHON_COMPAT=( python{2_6,2_7} ) -inherit eutils python +inherit eutils python-single-r1 DESCRIPTION="A network server for robot control" HOMEPAGE="http://playerstage.sourceforge.net/index.php?src=player" @@ -54,10 +54,10 @@ DEPEND="${RDEPEND} doc? ( app-doc/doxygen )" pkg_setup () { - python_set_active_version 2 + python-single-r1_pkg_setup } -src_compile() { +src_configure() { local drivers driver nodep_drivers nodep_drivers="acoustics acts amcl amtecpowercube @@ -96,25 +96,24 @@ src_compile() { $(use_enable test tests) \ --with-playercc \ ${drivers} +} +src_compile() { # Parallel make will fail - emake -j1 || die "emake failed" + emake -j1 if use doc; then - pushd doc > /dev/null - emake doc || die "emake doc failed" - popd > /dev/null + cd doc || die + emake doc fi } src_install() { - emake DESTDIR="${D}" install || die "emake install failed" + default if use doc; then - cd doc - emake DESTDIR="${D}" doc-install || die "emake doc-install failed" - cd .. + cd doc || die + emake DESTDIR="${D}" doc-install fi - dodoc AUTHORS ChangeLog NEWS README TODO || die } -- cgit v1.2.3-65-gdbad