public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/vconfig/
Date: Fri, 18 Oct 2019 12:19:54 +0000 (UTC)	[thread overview]
Message-ID: <1571401114.9b978eedab0fcb5f8ee8e4abbe1824126c9e50a1.soap@gentoo> (raw)

commit:     9b978eedab0fcb5f8ee8e4abbe1824126c9e50a1
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 18 12:18:34 2019 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Oct 18 12:18:34 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b978eed

net-misc/vconfig: Port to EAPI 7

Closes: https://bugs.gentoo.org/697222
Package-Manager: Portage-2.3.77, Repoman-2.3.17
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 net-misc/vconfig/vconfig-1.9.ebuild | 38 +++++++++++++++++++++++++------------
 1 file changed, 26 insertions(+), 12 deletions(-)

diff --git a/net-misc/vconfig/vconfig-1.9.ebuild b/net-misc/vconfig/vconfig-1.9.ebuild
index 4671806983b..68ad081deee 100644
--- a/net-misc/vconfig/vconfig-1.9.ebuild
+++ b/net-misc/vconfig/vconfig-1.9.ebuild
@@ -1,37 +1,51 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=0
+EAPI=7
 
-inherit eutils flag-o-matic toolchain-funcs
+inherit flag-o-matic toolchain-funcs
 
 MY_PN="vlan"
-S=${WORKDIR}/${MY_PN}
 
 DESCRIPTION="802.1Q vlan control utility"
 HOMEPAGE="http://www.candelatech.com/~greear/vlan.html"
 SRC_URI="http://www.candelatech.com/~greear/vlan/${MY_PN}.${PV}.tar.gz"
+
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~alpha amd64 ~arm hppa ~ppc ~ppc64 sparc x86"
 IUSE="static"
 
+S="${WORKDIR}/${MY_PN}"
+
+src_prepare() {
+	default
+	sed -e "s:/usr/local/bin/vconfig:/sbin/vconfig:g" -i vlan_test.pl || die
+	sed -e "s:/usr/local/bin/vconfig:/sbin/vconfig:g" -i vlan_test2.pl || die
+}
+
+src_configure() {
+	use static && append-ldflags -static
+}
+
 src_compile() {
-	use static && appened-ldflags -static
 	emake purge
-	emake CC="$(tc-getCC)" CCFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" STRIP="true" vconfig || die
+	emake \
+		CC="$(tc-getCC)" \
+		CCFLAGS="${CFLAGS}" \
+		LDFLAGS="${LDFLAGS}" \
+		STRIP="true" vconfig
 }
 
 src_install() {
 	into /
-	dosbin vconfig || die "dosbin error"
+	dosbin vconfig
 
-	sed -e "s:/usr/local/bin/vconfig:/sbin/vconfig:g" -i vlan_test.pl
-	sed -e "s:/usr/local/bin/vconfig:/sbin/vconfig:g" -i vlan_test2.pl
+	local HTML_DOCS=( {howto,vlan}.html )
+	einstalldocs
+	dodoc vlan_test*.pl
 
-	doman vconfig.8 || die "doman error"
-	dohtml howto.html vlan.html || die "dohtml error"
-	dodoc CHANGELOG README vlan_test*.pl || die "dodoc error"
+	doman vconfig.8
 }
 
 pkg_postinst() {


             reply	other threads:[~2019-10-18 12:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-18 12:19 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-07-25 20:09 [gentoo-commits] repo/gentoo:master commit in: net-misc/vconfig/ Sam James
2021-07-27  3:21 Sam James
2022-05-26  5:06 WANG Xuerui
2022-05-27 19:34 Jakov Smolić
2024-04-24 10:32 Sam James

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=1571401114.9b978eedab0fcb5f8ee8e4abbe1824126c9e50a1.soap@gentoo \
    --to=soap@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