summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-11-09 14:13:36 +0100
committerMichał Górny <mgorny@gentoo.org>2019-11-09 14:18:30 +0100
commit2acce2cca3427b50d26a717f81ed3313255bb7a4 (patch)
treee0dbefdaf7e3b588244f8cf604e852a671f7dca0 /net-misc/tiers
parentnet-dns/ndu: Bump to EAPI 7 (diff)
downloadgentoo-2acce2cca3427b50d26a717f81ed3313255bb7a4.tar.gz
gentoo-2acce2cca3427b50d26a717f81ed3313255bb7a4.tar.bz2
gentoo-2acce2cca3427b50d26a717f81ed3313255bb7a4.zip
net-misc/tiers: Bump to EAPI 7
Closes: https://bugs.gentoo.org/697226 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'net-misc/tiers')
-rw-r--r--net-misc/tiers/tiers-1.1.ebuild43
1 files changed, 23 insertions, 20 deletions
diff --git a/net-misc/tiers/tiers-1.1.ebuild b/net-misc/tiers/tiers-1.1.ebuild
index c8d77c98bb19..5d489c5a5959 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() {