commit:     c4ff5cfc49313068a4591a6e192b50cde40c5f32
Author:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
AuthorDate: Sun Oct 15 10:45:36 2023 +0000
Commit:     Horodniceanu Andrei <a.horodniceanu <AT> proton <DOT> me>
CommitDate: Fri Nov 17 20:54:30 2023 +0000
URL:        https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=c4ff5cfc

dev-libs/gtkd: upgrade to EAPI 7, replace unzip calls

Closes: https://github.com/gentoo/dlang/pull/125
Signed-off-by: Horodniceanu Andrei <a.horodniceanu <AT> proton.me>

 dev-libs/gtkd/gtkd-2.4.2-r1.ebuild | 13 ++++++++-----
 dev-libs/gtkd/gtkd-3.9.0.ebuild    |  7 +++++--
 2 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/dev-libs/gtkd/gtkd-2.4.2-r1.ebuild 
b/dev-libs/gtkd/gtkd-2.4.2-r1.ebuild
index ad07352..16d99d0 100644
--- a/dev-libs/gtkd/gtkd-2.4.2-r1.ebuild
+++ b/dev-libs/gtkd/gtkd-2.4.2-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
 DESCRIPTION="D binding and OO wrapper of GTK+ and is released on the LGPL 
license"
 HOMEPAGE="http://gtkd.org/";
@@ -15,9 +15,9 @@ SRC_URI="https://gtkd.org/Downloads/sources/GtkD-${PV}.zip";
 DLANG_VERSION_RANGE="2.063-2.067 2.071-2.080"
 DLANG_PACKAGE_TYPE="multi"
 
-inherit eutils dlang
+inherit dlang multilib-build
 
-DEPEND="app-arch/unzip"
+BDEPEND="app-arch/unzip"
 RDEPEND="
        >=x11-libs/gtk+-3.10:3[${MULTILIB_USEDEP}]
        sourceview? ( >=x11-libs/gtksourceview-3.10:3.0 )
@@ -34,7 +34,10 @@ MAJOR=$(ver_cut 1)
 MINOR=$(ver_cut 2-)
 
 src_unpack() {
-       unzip -q "${DISTDIR}/${A}" -d "${S}"
+       mkdir "${S}" || die "Could not create source directory"
+       pushd "${S}" >/dev/null
+       unpack "${A}"
+       popd >/dev/null
 }
 
 d_src_compile() {

diff --git a/dev-libs/gtkd/gtkd-3.9.0.ebuild b/dev-libs/gtkd/gtkd-3.9.0.ebuild
index bfea972..0d016fb 100644
--- a/dev-libs/gtkd/gtkd-3.9.0.ebuild
+++ b/dev-libs/gtkd/gtkd-3.9.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -39,7 +39,10 @@ MAJOR=$(ver_cut 1)
 MINOR=$(ver_cut 2-)
 
 src_unpack() {
-       unzip -q "${DISTDIR}/${A}" -d "${S}"
+       mkdir "${S}" || die "Could not create source directory"
+       pushd "${S}" >/dev/null
+       unpack "${DISTDIR}/${A}"
+       popd "${S}" >/dev/null
 }
 
 d_src_compile() {

Reply via email to