public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/tiers/
Date: Sat,  9 Nov 2019 13:18:42 +0000 (UTC)	[thread overview]
Message-ID: <1573305510.2acce2cca3427b50d26a717f81ed3313255bb7a4.mgorny@gentoo> (raw)

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() {


                 reply	other threads:[~2019-11-10 10:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1573305510.2acce2cca3427b50d26a717f81ed3313255bb7a4.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox