commit:     b9d764390dbe61ac6a11edc0838e6447a314ff8a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  5 05:35:02 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jul  5 05:35:02 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9d76439

dev-build/automake-vanilla: add 1.18.1

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-build/automake-vanilla/Manifest                |   1 +
 .../automake-vanilla-1.18.1.ebuild                 | 131 +++++++++++++++++++++
 2 files changed, 132 insertions(+)

diff --git a/dev-build/automake-vanilla/Manifest 
b/dev-build/automake-vanilla/Manifest
index b73e8f2cd652..9b0a9548bcb7 100644
--- a/dev-build/automake-vanilla/Manifest
+++ b/dev-build/automake-vanilla/Manifest
@@ -3,4 +3,5 @@ DIST automake-1.15.1.tar.xz 1509496 BLAKE2B 
e6ade31089f969140472004cd98543184702
 DIST automake-1.16.5-tests-c99.patch.xz 7176 BLAKE2B 
1fa1d3a499bacc5da9ee9d8ea6cb63d9ab91646a708a53d9bb08eef65fe02a6ab34ff95737042348ea7572bd70c6c7467e260d9441239a00c3571d25d73085f0
 SHA512 
0065b809219257cbce3c6f6f88459b91a5a29272e0027698e06246181357ffe8d5d40057086438f891d821836441a5a96f2568d52dcd3b5acb80e4d4968cbaf9
 DIST automake-1.16.5.tar.xz 1601740 BLAKE2B 
87408abc57e1d4317a2b518fb3606d0f6d156522e7333016dd84747cd8922f27ef7fcc93220b11f794ce52bf8fd9a788d0166a4d1964d7c283905f269977ac7c
 SHA512 
3084ae543aa3fb5a05104ffb2e66cfa9a53080f2343c44809707fd648516869511500dba50dae67ff10f92a1bf3b5a92b2a0fa01cda30adb69b9da03994d9d88
 DIST automake-1.17.tar.xz 1652632 BLAKE2B 
53c24c138faf3d2be4e30ababcccd4d157c03e815fc4b7f3e3063b6648cf254dfa63afe6e3285b21309dbf260335c3e67991db3825e7532b158b25ccaead83f5
 SHA512 
46aba1c9d64a6368b326020803a2999831c1deaf31eaa1c1dfdcfa5138a7f755643294e82a08b6daab3983b31eee725bdb7b9edc4e9a558374c7d1f1b8e854a7
+DIST automake-1.18.1.tar.xz 1652392 BLAKE2B 
4461062a4d596dd87caec7d388449f5f8fe7a4faede8fd0d77d1fb3bb5d23caabb3b715fbb9f29f33326bec527f3d8da6251d9282d4007cef9af146d28fe96cf
 SHA512 
8baa16831416a953a743f4e3c0f55cea5ebefe0f5a7a0e390581981d4461d02dc9038415124e974b2ec390c40daaa241802cd7d42c6fafb793f87cf355db2a61
 DIST automake-1.18.tar.xz 1652364 BLAKE2B 
45456d6d0fdcd1222c79980ede1df16dfbf18fa4d4698289dbef7c9e24ae8877881678974c5defcce0a9f46b72882b4603e457e8142722174ccf0e495f941550
 SHA512 
3488d9188a9e11a3e7f911f429ef49d2d92c5ea42262e3e288e1d4de39217facd5a7b7c7ccac06e6fd78a661985af1fe5638353575ebadffb36fc22553e5f782

diff --git a/dev-build/automake-vanilla/automake-vanilla-1.18.1.ebuild 
b/dev-build/automake-vanilla/automake-vanilla-1.18.1.ebuild
new file mode 100644
index 000000000000..da09d71579b2
--- /dev/null
+++ b/dev-build/automake-vanilla/automake-vanilla-1.18.1.ebuild
@@ -0,0 +1,131 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Please do not apply any patches which affect the generated output from
+# `automake`, as this package is used to submit patches upstream.
+
+PYTHON_COMPAT=( python3_{11..14} )
+
+inherit python-any-r1
+
+MY_PN=${PN/-vanilla}
+MY_P=${MY_PN}-${PV}
+
+if [[ ${PV} == 9999 ]] ; then
+       EGIT_REPO_URI="https://git.savannah.gnu.org/r/${MY_PN}.git";
+       inherit git-r3
+else
+       SRC_URI="mirror://gnu/${MY_PN}/${MY_P}.tar.xz"
+
+       S="${WORKDIR}/${MY_P}"
+fi
+
+DESCRIPTION="Used to generate Makefile.in from Makefile.am"
+HOMEPAGE="https://www.gnu.org/software/automake/";
+
+LICENSE="GPL-2+ FSFAP"
+# Use Gentoo versioning for slotting.
+SLOT="${PV:0:4}"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86 ~arm64-macos"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       >=dev-lang/perl-5.6
+       >=dev-build/automake-wrapper-11
+       >=dev-build/autoconf-2.69:*
+       sys-devel/gnuconfig
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       app-alternatives/gzip
+       sys-apps/help2man
+       test? (
+               ${PYTHON_DEPS}
+               dev-util/dejagnu
+               sys-devel/bison
+               sys-devel/flex
+       )
+"
+
+pkg_setup() {
+       # Avoid python-any-r1_pkg_setup
+       :
+}
+
+src_prepare() {
+       default
+
+       export WANT_AUTOCONF=2.5
+       # Don't try wrapping the autotools - this thing runs as it tends
+       # to be a bit esoteric, and the script does `set -e` itself.
+       ./bootstrap || die
+       sed -i -e "/APIVERSION=/s:=.*:=${SLOT}:" configure || die
+
+       # bug #628912
+       if ! has_version -b sys-apps/texinfo ; then
+               touch doc/{stamp-vti,version.texi,automake.info} || die
+       fi
+}
+
+src_configure() {
+       use test && python_setup
+       # Also used in install.
+       MY_INFODIR="${EPREFIX}/usr/share/${P}/info"
+       econf \
+               --datadir="${EPREFIX}"/usr/share/automake-vanilla-${PV} \
+               --program-suffix="-vanilla" \
+               --infodir="${MY_INFODIR}"
+}
+
+src_test() {
+       # Fails with byacc/flex
+       emake YACC="bison -y" LEX="flex" check
+}
+
+src_install() {
+       default
+
+       #rm "${ED}"/usr/share/aclocal/README || die
+       #rmdir "${ED}"/usr/share/aclocal || die
+       rm \
+               "${ED}"/usr/bin/{aclocal,automake}-vanilla \
+               "${ED}"/usr/share/man/man1/{aclocal,automake}-vanilla.1 || die
+
+       # remove all config.guess and config.sub files replacing them
+       # w/a symlink to a specific gnuconfig version
+       local x
+       for x in guess sub ; do
+               dosym ../gnuconfig/config.${x} \
+                       /usr/share/${PN}-${SLOT}/config.${x}
+       done
+
+       # Avoid QA message about pre-compressed file in docs
+       local 
tarfile="${ED}/usr/share/doc/automake-vanilla-${PVR}/amhello-1.0.tar.gz"
+       if [[ -f "${tarfile}" ]] ; then
+               gunzip "${tarfile}" || die
+       fi
+
+       pushd "${D}/${MY_INFODIR}" >/dev/null || die
+       for f in *.info*; do
+               # Install convenience aliases for versioned Automake pages.
+               ln -s "$f" "${f/./-vanilla-${PV}.}" || die
+       done
+       popd >/dev/null || die
+
+       if [[ ${PV} == 9999 ]]; then
+               local major="89"
+               local minor="999"
+       else
+               local major="$(ver_cut 1)"
+               local minor="$(ver_cut 2)"
+       fi
+       local idx="$((99999-(major*1000+minor)))"
+       newenvd - "07automake${idx}" <<-EOF
+       INFOPATH="${MY_INFODIR}"
+       EOF
+
+       docompress "${MY_INFODIR}"
+}

Reply via email to