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: dev-util/biew/
Date: Tue, 18 Feb 2020 19:11:48 +0000 (UTC)	[thread overview]
Message-ID: <1582053091.94afb8682a30f5e6d1b45c01cd863e0782cf54f5.soap@gentoo> (raw)

commit:     94afb8682a30f5e6d1b45c01cd863e0782cf54f5
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 18 19:11:31 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Feb 18 19:11:31 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94afb868

dev-util/biew: Port to EAPI 7

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

 dev-util/biew/biew-6.1.0-r3.ebuild | 43 +++++++++++++++++++-------------------
 1 file changed, 22 insertions(+), 21 deletions(-)

diff --git a/dev-util/biew/biew-6.1.0-r3.ebuild b/dev-util/biew/biew-6.1.0-r3.ebuild
index d35ab26a959..9c225d4a5e5 100644
--- a/dev-util/biew/biew-6.1.0-r3.ebuild
+++ b/dev-util/biew/biew-6.1.0-r3.ebuild
@@ -1,15 +1,15 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
-inherit eutils flag-o-matic toolchain-funcs versionator
+EAPI=7
 
-MY_P=${PN}-$(replace_all_version_separators "")
+inherit flag-o-matic toolchain-funcs
+
+MY_P=${PN}-$(ver_rs 1- "")
 
 DESCRIPTION="A portable viewer of binary files, hexadecimal and disassembler modes"
 HOMEPAGE="http://beye.sourceforge.net/"
 SRC_URI="mirror://sourceforge/beye/${PV}/${MY_P}-src.tar.bz2"
-S=${WORKDIR}/${MY_P}
 
 LICENSE="GPL-2"
 SLOT="0"
@@ -20,30 +20,31 @@ REQUIRED_USE="cpu_flags_x86_mmx cpu_flags_x86_sse"
 RDEPEND="gpm? ( sys-libs/gpm )"
 DEPEND="${RDEPEND}"
 
-pkg_setup() {
-	append-flags -mmmx -msse #362043
-}
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-610-fix_localedep-1.patch
+	"${FILESDIR}"/${PN}-610-portable_configure-1.patch
+	"${FILESDIR}"/${PN}-610-crash.patch
+)
 
 src_prepare() {
-	epatch "${FILESDIR}/${PN}-610-fix_localedep-1.patch"
-	epatch "${FILESDIR}/${PN}-610-portable_configure-1.patch"
-	epatch "${FILESDIR}/${PN}-610-crash.patch"
-	sed -i -e 's^man/man1/biew.1^share/man/man1/biew.1^' makefile || die "Failed to edit makefile."
+	default
+	sed -i -e 's^man/man1/biew.1^share/man/man1/biew.1^' makefile || die
 }
 
 src_configure() {
-	if use gpm; then
-		append-cppflags -DHAVE_MOUSE
-	else
-		append-cppflags -UHAVE_MOUSE
-	fi
-	./configure --datadir=/usr/share/${PN} \
-		--prefix=/usr \
+	append-flags -mmmx -msse #362043
+	append-cppflags $(usex gpm -DHAVE_MOUSE -UHAVE_MOUSE)
+
+	./configure \
+		--datadir="${EPREFIX}"/usr/share/${PN} \
+		--prefix="${EPREFIX}"/usr \
 		--cc="$(tc-getCC)" \
 		--ld="$(tc-getCC)" \
 		--ar="$(tc-getAR) -rcu" \
 		--as="$(tc-getAS)" \
-		--ranlib="$(tc-getRANLIB)" || die "configure failed."
+		--ranlib="$(tc-getRANLIB)" || die "configure failed"
 }
 
 src_compile() {
@@ -51,7 +52,7 @@ src_compile() {
 }
 
 src_install() {
-	emake DESTDIR="${D}" install
+	default
 	dodoc doc/{biew_en,release,unix}.txt
 }
 


                 reply	other threads:[~2020-02-18 19:11 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=1582053091.94afb8682a30f5e6d1b45c01cd863e0782cf54f5.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