Skip to content

Commit

Permalink
sci-misc/simx: Bump to EAPI=6
Browse files Browse the repository at this point in the history
* Use git-r3.eclass

Package-Manager: portage-2.2.27
Signed-off-by: Justin Lecher <jlec@gentoo.org>
  • Loading branch information
jlec committed Feb 14, 2016
1 parent a9ea3c6 commit 17a5b8e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 29 deletions.
24 changes: 10 additions & 14 deletions sci-misc/simx/simx-0.2.ebuild
@@ -1,27 +1,20 @@
# Copyright 1999-2014 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
EAPI=6

PYTHON_COMPAT=( python2_7 )

inherit cmake-utils distutils-r1

if [ "${PV}" = "9999" ]; then
EGIT_REPO_URI="git://github.com/sim-x/${PN}.git http://github.com/sim-x/${PN}.git"
inherit git-2
KEYWORDS=""
else
SRC_URI="https://github.com/sim-x/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi

DESCRIPTION="a library for developing parallel, discrete-event simulations in Python"
DESCRIPTION="Library for developing parallel, discrete-event simulations in Python"
HOMEPAGE="https://github.com/sim-x"
SRC_URI="https://github.com/sim-x/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS="~amd64"
IUSE=""

RDEPEND="
Expand All @@ -31,7 +24,10 @@ RDEPEND="
DEPEND="${RDEPEND}
dev-util/cmake"

src_prepare() {
python_prepare_all() {
# don't do egg install
sed -i 's/self.do_egg_install()/_install.install.run(self)/' setup.py || die
sed \
-e 's/self.do_egg_install()/_install.install.run(self)/' \
-i setup.py || die
distutils-r1_python_prepare_all
}
27 changes: 12 additions & 15 deletions sci-misc/simx/simx-9999.ebuild
@@ -1,27 +1,21 @@
# Copyright 1999-2014 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5
EAPI=6

PYTHON_COMPAT=( python2_7 )

inherit cmake-utils distutils-r1
inherit cmake-utils distutils-r1 git-r3

if [ "${PV}" = "9999" ]; then
EGIT_REPO_URI="git://github.com/sim-x/${PN}.git http://github.com/sim-x/${PN}.git"
inherit git-2
KEYWORDS=""
else
SRC_URI="https://github.com/sim-x/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi

DESCRIPTION="a library for developing parallel, discrete-event simulations in Python"
DESCRIPTION="Library for developing parallel, discrete-event simulations in Python"
HOMEPAGE="https://github.com/sim-x"
SRC_URI=""
EGIT_REPO_URI="git://github.com/sim-x/${PN}.git http://github.com/sim-x/${PN}.git"

SLOT="0"
LICENSE="LGPL-2.1"
KEYWORDS=""
IUSE=""

RDEPEND="
Expand All @@ -31,7 +25,10 @@ RDEPEND="
DEPEND="${RDEPEND}
dev-util/cmake"

src_prepare() {
python_prepare_all() {
# don't do egg install
sed -i 's/self.do_egg_install()/_install.install.run(self)/' setup.py || die
sed \
-e 's/self.do_egg_install()/_install.install.run(self)/' \
-i setup.py || die
distutils-r1_python_prepare_all
}

0 comments on commit 17a5b8e

Please sign in to comment.