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: sci-electronics/netgen/
Date: Fri, 13 Dec 2019 17:41:05 +0000 (UTC)	[thread overview]
Message-ID: <1576258842.1abf0f8ccce5e2d8275bb0b4fc1c12fd128bdec1.soap@gentoo> (raw)

commit:     1abf0f8ccce5e2d8275bb0b4fc1c12fd128bdec1
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 13 17:40:42 2019 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Dec 13 17:40:42 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1abf0f8c

sci-electronics/netgen: Port to EAPI 7

Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 sci-electronics/netgen/netgen-1.4.52.ebuild | 49 +++++++----------------------
 1 file changed, 12 insertions(+), 37 deletions(-)

diff --git a/sci-electronics/netgen/netgen-1.4.52.ebuild b/sci-electronics/netgen/netgen-1.4.52.ebuild
index 0c90872fda8..c07ac1310bc 100644
--- a/sci-electronics/netgen/netgen-1.4.52.ebuild
+++ b/sci-electronics/netgen/netgen-1.4.52.ebuild
@@ -1,9 +1,7 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
-
-inherit eutils
+EAPI=7
 
 DESCRIPTION="LVS tool (layout versus schematic comparison)"
 HOMEPAGE="http://www.opencircuitdesign.com/netgen/index.html"
@@ -14,46 +12,23 @@ SLOT="0"
 KEYWORDS="~amd64"
 IUSE="X"
 
-DEPEND="X? (
+DEPEND="
+	X? (
 		dev-lang/tcl:0
 		dev-lang/tk:0
-		x11-libs/libX11 )"
+		x11-libs/libX11
+	)"
 RDEPEND="${DEPEND}"
 
-src_prepare() {
-	epatch "${FILESDIR}"/${PN}-1.4.40-tcl-bin-name.patch
-
-	if $(use X) ; then
-		cp -r "${S}" "${WORKDIR}"/with-x || die
-	fi
-}
+PATCHES=( "${FILESDIR}"/${PN}-1.4.40-tcl-bin-name.patch )
 
 src_configure() {
-	cd scripts
-	econf --without-x
-
-	if $(use X) ; then
-		cd "${WORKDIR}"/with-x/scripts || die
-		econf --with-x
-	fi
-}
-
-src_compile() {
-	emake
-
-	if $(use X) ; then
-		cd "${WORKDIR}"/with-x || die
-		emake
-	fi
+	cd scripts || die
+	econf $(use_with X x)
 }
 
 src_install() {
-	emake DESTDIR="${D}" DOCDIR=/usr/share/doc/${PF} install
-
-	if $(use X) ; then
-		cd "${WORKDIR}"/with-x || die
-		emake DESTDIR="${D}" DOCDIR=/usr/share/doc/${PF} install
-	fi
-
-	dodoc Changes README TO_DO
+	emake DESTDIR="${D}" DOCDIR="${EPREFIX}"/usr/share/doc/${PF} install
+	einstalldocs
+	dodoc Changes TO_DO
 }


             reply	other threads:[~2019-12-13 17:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-13 17:41 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-11-13 19:58 [gentoo-commits] repo/gentoo:master commit in: sci-electronics/netgen/ Aaron Bauman
2016-03-06 23:35 David Seifert

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=1576258842.1abf0f8ccce5e2d8275bb0b4fc1c12fd128bdec1.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