1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 if [[ ${PV} == "99999999" ]] ; then
8 EGIT_REPO_URI="git://git.savannah.gnu.org/config.git
9 http://git.savannah.gnu.org/r/config.git"
13 SRC_URI="mirror://gentoo/${P}.tar.bz2"
14 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
18 DESCRIPTION="Updated config.sub and config.guess file from GNU"
19 HOMEPAGE="https://savannah.gnu.org/projects/config"
28 local ver=$(gawk '{ gsub(/-/, "", $1); print $1; exit }' ChangeLog)
29 [[ ${#ver} != 8 ]] && die "invalid version '${ver}'"
31 cp "${FILESDIR}"/${PV}/*.patch . || die
33 local tar="${T}/gnuconfig-${ver}.tar.bz2"
34 tar -jcf ${tar} ./* || die "creating tar failed"
35 einfo "Packaged tar now available:"
36 einfo "$(du -b ${tar})"
40 if [[ ${PV} == "99999999" ]] ; then
50 use elibc_uclibc && sed -i 's:linux-gnu:linux-uclibc:' testsuite/config-guess.data #180637
60 insinto /usr/share/${PN}
61 doins config.{sub,guess} || die
62 fperms +x /usr/share/${PN}/config.{sub,guess}