From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F1B3B1582EF for ; Mon, 10 Mar 2025 02:46:04 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id DA76834313F for ; Mon, 10 Mar 2025 02:46:04 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 56B081103C2; Mon, 10 Mar 2025 02:45:56 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 51A971103C2 for ; Mon, 10 Mar 2025 02:45:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F2072343145 for ; Mon, 10 Mar 2025 02:45:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 491A428B9 for ; Mon, 10 Mar 2025 02:45:54 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1741574406.d45ab8d1f8e6c707351eaf2ae221ff0769a6ba25.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/unadf/, app-arch/unadf/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-arch/unadf/Manifest app-arch/unadf/files/unadf-0.9.0-make-test-build-conditional.patch app-arch/unadf/unadf-0.9.0.ebuild X-VCS-Directories: app-arch/unadf/ app-arch/unadf/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: d45ab8d1f8e6c707351eaf2ae221ff0769a6ba25 X-VCS-Branch: master Date: Mon, 10 Mar 2025 02:45:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 208cd4e2-3022-4cb7-a5a8-75591d5b48f2 X-Archives-Hash: 8b75eba7ccb696ee814ac5d7314b095f commit: d45ab8d1f8e6c707351eaf2ae221ff0769a6ba25 Author: Alfred Wingate protonmail com> AuthorDate: Thu Feb 27 01:02:44 2025 +0000 Commit: Sam James gentoo org> CommitDate: Mon Mar 10 02:40:06 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d45ab8d1 app-arch/unadf: add 0.9.0 Signed-off-by: Alfred Wingate protonmail.com> Signed-off-by: Sam James gentoo.org> app-arch/unadf/Manifest | 1 + .../unadf-0.9.0-make-test-build-conditional.patch | 22 ++++++++++ app-arch/unadf/unadf-0.9.0.ebuild | 48 ++++++++++++++++++++++ 3 files changed, 71 insertions(+) diff --git a/app-arch/unadf/Manifest b/app-arch/unadf/Manifest index 02ff444b7eec..25d8f56817ef 100644 --- a/app-arch/unadf/Manifest +++ b/app-arch/unadf/Manifest @@ -1 +1,2 @@ +DIST ADFlib-0.9.0.tar.gz 2262331 BLAKE2B 3bb9a061de6b4a009f3c266cce20d7a2aa826b2fbaf2bd91db5b40f991471922889dfa5cb70f29a6fa8d954b24ec6d8ab63a1d51f08f983daeac4f0fecd47cb8 SHA512 1abd1ba06a1150780397eff48e2334ba4e2d11679847966f9a1ef7bf4b9f16557ac2ec891e8810296c534ab2cf38dfa3e8d780b67cf160b7710aec5075e10846 DIST adflib-0.7.12.tar.bz2 135412 BLAKE2B 964ef195c0539779c33acb2f3c103f97f7fd7f78bb32a83af9d586157700664f5e531908121aea8234592bb00fb8bff2e8f754e620f989d6d4e52537675c030e SHA512 d63846f0780bd57cae5ff667eb70f98a0ba3659cfd0b12b3ae2f29ac96631e522088f911b1ba6e5ee3b00620a28a802f14d93cdf8462e18a7e3f749915ab5af3 diff --git a/app-arch/unadf/files/unadf-0.9.0-make-test-build-conditional.patch b/app-arch/unadf/files/unadf-0.9.0-make-test-build-conditional.patch new file mode 100644 index 000000000000..011edd7789ed --- /dev/null +++ b/app-arch/unadf/files/unadf-0.9.0-make-test-build-conditional.patch @@ -0,0 +1,22 @@ +diff --git a/configure.ac b/configure.ac +index a37d6f7..ec7d410 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -103,8 +103,14 @@ AC_PROG_INSTALL + AM_PROG_AR + LT_INIT + +-# Checks for libraries. +-PKG_CHECK_MODULES([CHECK], [check >= 0.11.0], [tests=yes], [tests=no]) ++AC_ARG_ENABLE([tests], ++ AS_HELP_STRING([--enable-tests], [Build tests])) ++ ++AS_IF([test "x$enable_tests" = "xyes"], ++ [PKG_CHECK_MODULES([CHECK], [check >= 0.11.0], ++ [tests=yes], ++ [AC_MSG_FAILURE([--enable-tests was given, but dependency check wasn't found])])], ++ []) + AM_CONDITIONAL([TESTS], [test x${tests} = xyes]) + + # Checks for typedefs, structures, and compiler characteristics. + diff --git a/app-arch/unadf/unadf-0.9.0.ebuild b/app-arch/unadf/unadf-0.9.0.ebuild new file mode 100644 index 000000000000..6e6637346344 --- /dev/null +++ b/app-arch/unadf/unadf-0.9.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# autotools has automagic test building +# cmake has half baked installation +inherit autotools + +MY_PN="ADFlib" + +DESCRIPTION="Extract files from Amiga adf disk images" +HOMEPAGE="https://github.com/adflib/ADFlib/" +SRC_URI=" + https://github.com/adflib/ADFlib/archive/refs/tags/v${PV}.tar.gz + -> ${MY_PN}-${PV}.tar.gz +" +S="${WORKDIR}/${MY_PN}-${PV}" + +LICENSE="|| ( GPL-2+ LGPL-2.1+ )" +SLOT="0/2" # see adflib_lt_version from configure.ac and util/bump_project_version for more details +KEYWORDS="~amd64 ~hppa ~ppc ~x86 ~x86-linux ~ppc-macos" + +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND="test? ( dev-libs/check )" + +PATCHES=( "${FILESDIR}"/unadf-0.9.0-make-test-build-conditional.patch ) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local detected_libtool_ver + detected_libtool_ver="$(sed -n -e 's/m4_define(\[adflib_lt_version\],\[\([0-9]*\):[0-9]*:[0-9]*\])/\1/p' configure.ac)" + if [[ "${SLOT}" != "0/${detected_libtool_ver}" ]]; then + die "SLOT ${SLOT} doesn't match upstream specified libtool version ${detected_libtool_ver}." + fi + econf $(use_enable test tests) $(use_enable test regtests) +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +}