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: app-arch/pdv/
Date: Sat,  2 Jul 2022 20:07:09 +0000 (UTC)	[thread overview]
Message-ID: <1656792418.f4237237343bf492a60130d7e2e84e8be2f4488f.soap@gentoo> (raw)

commit:     f4237237343bf492a60130d7e2e84e8be2f4488f
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  2 20:06:58 2022 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Jul  2 20:06:58 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4237237

app-arch/pdv: update EAPI 6 -> 8

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../{pdv-1.5.1-r3.ebuild => pdv-1.5.1-r4.ebuild}   | 47 +++++++++++-----------
 1 file changed, 24 insertions(+), 23 deletions(-)

diff --git a/app-arch/pdv/pdv-1.5.1-r3.ebuild b/app-arch/pdv/pdv-1.5.1-r4.ebuild
similarity index 63%
rename from app-arch/pdv/pdv-1.5.1-r3.ebuild
rename to app-arch/pdv/pdv-1.5.1-r4.ebuild
index 8b712196c4de..b50f939fa91a 100644
--- a/app-arch/pdv/pdv-1.5.1-r3.ebuild
+++ b/app-arch/pdv/pdv-1.5.1-r4.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=8
+
 inherit autotools toolchain-funcs
 
 DESCRIPTION="build a self-extracting and self-installing binary package"
@@ -11,48 +12,48 @@ SRC_URI="mirror://sourceforge/pdv/${P}.tar.gz"
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="amd64 ~hppa ppc x86 ~x86-linux ~ppc-macos"
-IUSE="X"
+IUSE="gui"
 
-DEPEND="
-	X? (
+RDEPEND="
+	gui? (
 		>=x11-libs/motif-2.3:0
 		>=x11-libs/libX11-1.0.0
 		>=x11-libs/libXt-1.0.0
-		>=x11-libs/libXext-1.0.0 )
-"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-	default
+		>=x11-libs/libXext-1.0.0
+	)"
+DEPEND="${RDEPEND}"
 
+PATCHES=(
 	# fix a size-of-variable bug
-	eapply "${FILESDIR}"/${P}-opt.patch
+	"${FILESDIR}"/${P}-opt.patch
 	# fix a free-before-use bug
-	eapply "${FILESDIR}"/${P}-early-free.patch
+	"${FILESDIR}"/${P}-early-free.patch
 	# fix a configure script bug
-	eapply "${FILESDIR}"/${P}-x-config.patch
+	"${FILESDIR}"/${P}-x-config.patch
 	# fix default args bug from assuming 'char' is signed
-	eapply "${FILESDIR}"/${P}-default-args.patch
+	"${FILESDIR}"/${P}-default-args.patch
 	# prevent pre-stripped binaries
-	eapply "${FILESDIR}"/${P}-no-strip.patch
+	"${FILESDIR}"/${P}-no-strip.patch
+)
+
+src_prepare() {
+	default
 
 	# re-build configure script since patch was applied to configure.in
-	cd "${S}"/X11
-	mv configure.in configure.ac || die
+	cd X11 || die
 	eautoreconf
-	tc-export CC
 }
 
 src_configure() {
-	local myconf=""
-	use X || myconf="--without-x" # configure script is broken, cant use use_with
-	econf ${myconf}
+	tc-export CC
+
+	econf $(usev !gui --without-x) # configure script is broken, cant use use_with
 }
 
 src_install() {
 	dobin pdv pdvmkpkg
 	doman pdv.1 pdvmkpkg.1
-	if use X ; then
+	if use gui ; then
 		dobin X11/xmpdvmkpkg
 		doman xmpdvmkpkg.1
 	fi


             reply	other threads:[~2022-07-02 20:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-02 20:07 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-12-30 16:57 [gentoo-commits] repo/gentoo:master commit in: app-arch/pdv/ Petr Vaněk
2018-04-01 23:59 Matt Turner
2018-04-01 23:59 Matt Turner
2018-04-01 23:59 Matt Turner
2018-04-01 23:56 Matt Turner
2018-03-01 18:28 Pacho Ramos

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=1656792418.f4237237343bf492a60130d7e2e84e8be2f4488f.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