* [gentoo-commits] repo/gentoo:master commit in: net-misc/tiers/
@ 2019-11-09 13:18 Michał Górny
0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2019-11-09 13:18 UTC (permalink / raw
To: gentoo-commits
commit: 2acce2cca3427b50d26a717f81ed3313255bb7a4
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 9 13:13:36 2019 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 9 13:18:30 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2acce2cc
net-misc/tiers: Bump to EAPI 7
Closes: https://bugs.gentoo.org/697226
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
net-misc/tiers/tiers-1.1.ebuild | 43 ++++++++++++++++++++++-------------------
1 file changed, 23 insertions(+), 20 deletions(-)
diff --git a/net-misc/tiers/tiers-1.1.ebuild b/net-misc/tiers/tiers-1.1.ebuild
index c8d77c98bb1..5d489c5a595 100644
--- a/net-misc/tiers/tiers-1.1.ebuild
+++ b/net-misc/tiers/tiers-1.1.ebuild
@@ -1,42 +1,45 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=0
-
-inherit eutils
+EAPI=7
MY_P="${PN}${PV}"
DESCRIPTION="Random network topography generator"
HOMEPAGE="http://www.isi.edu/nsnam/ns/ns-topogen.html#tiers"
SRC_URI="http://www.isi.edu/nsnam/dist/topogen/${MY_P}.tar.gz
- http://www.isi.edu/nsnam/dist/topogen/tiers2ns-lan.awk"
+ http://www.isi.edu/nsnam/dist/topogen/tiers2ns-lan.awk"
LICENSE="mapm"
SLOT="0"
KEYWORDS="~amd64 ~ppc x86"
IUSE=""
-DEPEND="sys-devel/gcc"
-RDEPEND="virtual/awk
- sci-visualization/gnuplot"
-
-S=${WORKDIR}/${PN}${PV}
+RDEPEND="sci-visualization/gnuplot
+ virtual/awk"
-src_unpack() {
- unpack ${MY_P}.tar.gz
- cd "${S}"
+S=${WORKDIR}/${MY_P}
- epatch "${FILESDIR}"/${MY_P}-gccfixes.patch
- epatch "${FILESDIR}"/${P}-gcc43.patch
- sed -e '1a\#!/bin/sh' -e '1d' -e "s|-f |-f /usr/share/${PN}/|g" -i "${S}"/bin/strip4gnuplot3.5
+src_prepare() {
+ default
+ eapply "${FILESDIR}"/${MY_P}-gccfixes.patch
+ eapply "${FILESDIR}"/${P}-gcc43.patch
+ sed -e '1a\#!/bin/sh' \
+ -e '1d' \
+ -e "s|-f |-f /usr/share/${PN}/|g" \
+ -i "${S}"/bin/strip4gnuplot3.5 || die
}
src_compile() {
- cd "${S}"/src
- emake CFLAGS="${CFLAGS}" CONFIGFILE="/etc/tiers-gnuplot.conf" EXEC="../bin/tiers-gnuplot" || die
+ emake -C src \
+ CFLAGS="${CFLAGS}" \
+ CONFIGFILE="/etc/tiers-gnuplot.conf" \
+ EXEC="../bin/tiers-gnuplot"
# cleanup for a sec
- rm *.o
- emake CFLAGS="${CFLAGS}" CONFIGFILE="/etc/tiers.conf" EXEC="../bin/tiers" || die
+ rm src/*.o || die
+ emake -C src \
+ CFLAGS="${CFLAGS}" \
+ CONFIGFILE="/etc/tiers.conf" \
+ EXEC="../bin/tiers"
}
src_install() {
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-11-10 10:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-09 13:18 [gentoo-commits] repo/gentoo:master commit in: net-misc/tiers/ Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox