mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 08:56:58 +02:00
sys-devel/gnuconfig: Sync with Gentoo
It's from Gentoo commit 57c55b6e2bacfc5af986df9639d92bc7ddce3127.
This commit is contained in:
parent
90a815ea4e
commit
a49e8e6035
@ -1 +1,2 @@
|
|||||||
DIST gnuconfig-20210107.tar.xz 65944 BLAKE2B 209952ca349c9859b695df5a4f8b49df689cba47b439e715108cb66ccef7ec3742162113a2ee4948a85a96b44c45d4d553f9e41c15823403f451fea6ea61bd36 SHA512 e1485b7b719994441f49b18a88f922405f74aff2ba1df16050802a311fb5438e598d989fdb7fa008734e5ec0e567e7e90486f8bc6655787bc053ad8a89650213
|
DIST gnuconfig-20210107.tar.xz 65944 BLAKE2B 209952ca349c9859b695df5a4f8b49df689cba47b439e715108cb66ccef7ec3742162113a2ee4948a85a96b44c45d4d553f9e41c15823403f451fea6ea61bd36 SHA512 e1485b7b719994441f49b18a88f922405f74aff2ba1df16050802a311fb5438e598d989fdb7fa008734e5ec0e567e7e90486f8bc6655787bc053ad8a89650213
|
||||||
|
DIST gnuconfig-20220508.tar.xz 87616 BLAKE2B 80b981cc85153af1cdf5ba8ca3f4e22843443ee062dacf0fa104749cebb4d25e28c83a1ba82ae326457b4cd58fe17e0f28423e9b1d0cbd3ff53b72dbc3e414b3 SHA512 c77363d30733b509d9e2a795189d0a7a556f87c6d2333ad5b376175bd8df34c48777d27e85b766c7b557f151ee2d877c6cf94940dedb4d85793427daeed5c7cd
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI="7"
|
EAPI="7"
|
||||||
@ -9,7 +9,7 @@ if [[ ${PV} == "99999999" ]] ; then
|
|||||||
inherit git-r3
|
inherit git-r3
|
||||||
else
|
else
|
||||||
SRC_URI="https://dev.gentoo.org/~polynomial-c/dist/${PN}/${P}.tar.xz"
|
SRC_URI="https://dev.gentoo.org/~polynomial-c/dist/${PN}/${P}.tar.xz"
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
||||||
S="${WORKDIR}"
|
S="${WORKDIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
61
sdk_container/src/third_party/portage-stable/sys-devel/gnuconfig/gnuconfig-20220508.ebuild
vendored
Normal file
61
sdk_container/src/third_party/portage-stable/sys-devel/gnuconfig/gnuconfig-20220508.ebuild
vendored
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
# Copyright 1999-2022 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 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
||||||
|
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}'"
|
||||||
|
|
||||||
|
cp "${FILESDIR}"/${PV}/*.patch . || die
|
||||||
|
|
||||||
|
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_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
eapply "${S}"/*.patch
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
emake check
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /usr/share/${PN}
|
||||||
|
doins config.{sub,guess}
|
||||||
|
fperms +x /usr/share/${PN}/config.{sub,guess}
|
||||||
|
dodoc ChangeLog
|
||||||
|
}
|
@ -1,15 +1,15 @@
|
|||||||
# Copyright 1999-2021 Gentoo Authors
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI="7"
|
EAPI="7"
|
||||||
|
|
||||||
if [[ ${PV} == "99999999" ]] ; then
|
if [[ ${PV} == 99999999 ]] ; then
|
||||||
EGIT_REPO_URI="https://git.savannah.gnu.org/r/config.git"
|
EGIT_REPO_URI="https://git.savannah.gnu.org/r/config.git"
|
||||||
|
|
||||||
inherit git-r3
|
inherit git-r3
|
||||||
else
|
else
|
||||||
SRC_URI="https://dev.gentoo.org/~whissi/dist/${PN}/${P}.tar.xz"
|
SRC_URI="https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}.tar.xz"
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
|
||||||
S="${WORKDIR}"
|
S="${WORKDIR}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -18,12 +18,11 @@ HOMEPAGE="https://savannah.gnu.org/projects/config"
|
|||||||
|
|
||||||
LICENSE="GPL-3+-with-autoconf-exception"
|
LICENSE="GPL-3+-with-autoconf-exception"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
maint_pkg_create() {
|
maint_pkg_create() {
|
||||||
cd "${S}"
|
cd "${S}" || die
|
||||||
|
|
||||||
make ChangeLog || die
|
emake ChangeLog
|
||||||
local ver=$(gawk '{ gsub(/-/, "", $1); print $1; exit }' ChangeLog)
|
local ver=$(gawk '{ gsub(/-/, "", $1); print $1; exit }' ChangeLog)
|
||||||
[[ ${#ver} != 8 ]] && die "invalid version '${ver}'"
|
[[ ${#ver} != 8 ]] && die "invalid version '${ver}'"
|
||||||
|
|
||||||
@ -36,7 +35,7 @@ maint_pkg_create() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
src_unpack() {
|
src_unpack() {
|
||||||
if [[ ${PV} == "99999999" ]] ; then
|
if [[ ${PV} == 99999999 ]] ; then
|
||||||
git-r3_src_unpack
|
git-r3_src_unpack
|
||||||
maint_pkg_create
|
maint_pkg_create
|
||||||
else
|
else
|
||||||
@ -46,11 +45,10 @@ src_unpack() {
|
|||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
default
|
||||||
|
|
||||||
eapply "${S}"/*.patch
|
eapply "${S}"/*.patch
|
||||||
}
|
}
|
||||||
|
|
||||||
src_compile() { :;}
|
|
||||||
|
|
||||||
src_test() {
|
src_test() {
|
||||||
emake check
|
emake check
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user