mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-28 17:11:34 +02:00
sys-devel/gnuconfig: Sync with Gentoo
It's from Gentoo commit f86d0346281747c5f5b83a04bab7e7dfb9a29b79.
This commit is contained in:
parent
4521e976ef
commit
e604c27073
@ -1,3 +1 @@
|
||||
DIST gnuconfig-20221007.tar.xz 71208 BLAKE2B 9112bd82af083043d5eae3a5ffde8174df842f3a817b1b42c17e3202a9189cff8e9f422e956e1cdd82e326949a23e27a353f72f98a6f63818e5a67096f650fed SHA512 91ca2faca02d5d78f937da70a4af026b1ba585519b9eaa2463cacd79f0f6a85ef6e1f7e0bed4243474b6e880c0b6387ca09f00eb2d40a27c3a26b6817b1bb70a
|
||||
DIST gnuconfig-20230121.tar.xz 71276 BLAKE2B c136c11f2836cc01c4a75b54853b14943b1e4b29a99102360b436854b1a6e445f578fea494b5c7fe2f744d35941c0ea888a08a386dff716b99dd231a308bffcf SHA512 5ac6c50b9c0abe7c007717aeff2d2d6a8e616d7c8514ed22489ad0164c16966cf44f2312bc3295765f5beaf98bb14022d91c5c59e9fb41e920617092a22d42ec
|
||||
DIST gnuconfig-20230731.tar.xz 73112 BLAKE2B c6502d6b339e56440dbfc9abb0ba49e3eec5a573c5e44779dd326e6f11b55b7fc3a6d99fec73abbcc271e8f6f125699ce87f512cb3a825144307cf820df0067a SHA512 d8e24a30f86f1983c69a37a901e2357a0aefbe15fcd3f8a331d1c6f8eabc81b7436930055756a764ae874e406090d8029403f1c0faa3737acb94bd937cd577ef
|
||||
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
if [[ ${PV} == 99999999 ]] ; then
|
||||
EGIT_REPO_URI="https://git.savannah.gnu.org/r/config.git"
|
||||
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}.tar.xz"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
S="${WORKDIR}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Updated config.sub and config.guess file from GNU"
|
||||
HOMEPAGE="https://savannah.gnu.org/projects/config"
|
||||
|
||||
LICENSE="GPL-3+-with-autoconf-exception"
|
||||
SLOT="0"
|
||||
|
||||
maint_pkg_create() {
|
||||
cd "${S}" || die
|
||||
|
||||
emake ChangeLog
|
||||
local ver=$(gawk '{ gsub(/-/, "", $1); print $1; exit }' ChangeLog)
|
||||
[[ ${#ver} != 8 ]] && die "invalid version '${ver}'"
|
||||
|
||||
local tar="${T}/gnuconfig-${ver}.tar.xz"
|
||||
tar -Jcf "${tar}" ./* || die "creating tar failed"
|
||||
einfo "Packaged tar now available:"
|
||||
einfo "$(du -b "${tar}")"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == 99999999 ]] ; then
|
||||
git-r3_src_unpack
|
||||
maint_pkg_create
|
||||
else
|
||||
unpack ${A}
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/${PN}
|
||||
doins config.{sub,guess}
|
||||
fperms +x /usr/share/${PN}/config.{sub,guess}
|
||||
dodoc ChangeLog
|
||||
}
|
@ -1,49 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
if [[ ${PV} == 99999999 ]] ; then
|
||||
EGIT_REPO_URI="https://git.savannah.gnu.org/r/config.git"
|
||||
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}.tar.xz"
|
||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||
S="${WORKDIR}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Updated config.sub and config.guess file from GNU"
|
||||
HOMEPAGE="https://savannah.gnu.org/projects/config"
|
||||
|
||||
LICENSE="GPL-3+-with-autoconf-exception"
|
||||
SLOT="0"
|
||||
|
||||
maint_pkg_create() {
|
||||
cd "${S}" || die
|
||||
|
||||
emake ChangeLog
|
||||
local ver=$(gawk '{ gsub(/-/, "", $1); print $1; exit }' ChangeLog)
|
||||
[[ ${#ver} != 8 ]] && die "invalid version '${ver}'"
|
||||
|
||||
local tar="${T}/gnuconfig-${ver}.tar.xz"
|
||||
tar -Jcf "${tar}" ./* || die "creating tar failed"
|
||||
einfo "Packaged tar now available:"
|
||||
einfo "$(du -b "${tar}")"
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == 99999999 ]] ; then
|
||||
git-r3_src_unpack
|
||||
maint_pkg_create
|
||||
else
|
||||
unpack ${A}
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /usr/share/${PN}
|
||||
doins config.{sub,guess}
|
||||
fperms +x /usr/share/${PN}/config.{sub,guess}
|
||||
dodoc ChangeLog
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user