diff options
Diffstat (limited to 'sys-devel/gnuconfig')
-rw-r--r-- | sys-devel/gnuconfig/Manifest | 7 | ||||
-rw-r--r-- | sys-devel/gnuconfig/files/99999999/0002-Add-x32-support-to-config.guess.patch | 44 | ||||
-rw-r--r-- | sys-devel/gnuconfig/files/99999999/0002-add-ps2-targets-to-config.sub.patch | 59 | ||||
-rw-r--r-- | sys-devel/gnuconfig/gnuconfig-20130516.ebuild | 66 | ||||
-rw-r--r-- | sys-devel/gnuconfig/gnuconfig-20131128.ebuild | 66 | ||||
-rw-r--r-- | sys-devel/gnuconfig/gnuconfig-20140212.ebuild | 66 | ||||
-rw-r--r-- | sys-devel/gnuconfig/gnuconfig-20140728.ebuild | 66 | ||||
-rw-r--r-- | sys-devel/gnuconfig/gnuconfig-20150304.ebuild | 66 | ||||
-rw-r--r-- | sys-devel/gnuconfig/gnuconfig-20150308.ebuild | 66 | ||||
-rw-r--r-- | sys-devel/gnuconfig/gnuconfig-20150727.ebuild | 66 | ||||
-rw-r--r-- | sys-devel/gnuconfig/gnuconfig-99999999.ebuild | 66 | ||||
-rw-r--r-- | sys-devel/gnuconfig/metadata.xml | 8 |
12 files changed, 646 insertions, 0 deletions
diff --git a/sys-devel/gnuconfig/Manifest b/sys-devel/gnuconfig/Manifest new file mode 100644 index 000000000000..772c0b92f6ff --- /dev/null +++ b/sys-devel/gnuconfig/Manifest @@ -0,0 +1,7 @@ +DIST gnuconfig-20130516.tar.bz2 51563 SHA256 8af7190bbb63e8abd5e255e71bbff73b245c034325d10d67a2d3966a947c109f SHA512 bfb6c2eb2fb786bb3824c1ade93e1451a24ac0f6b9918c3c15c1d15de826f6e2d0fca49a6ebe64c5de82ff5b99b564dc09c13b0aafde2ae801431dfcf8ffaf22 WHIRLPOOL 83add41d228022e7caa37b12a87d4075ab45cb0ab50685889e24968ef604fa9eb2f7a996196ea160ae46b7a684498be2a722e532162deaf7529b8fda0d93edc8 +DIST gnuconfig-20131128.tar.bz2 45245 SHA256 69027e90f35296473da1bb9bb6ad2c013d0a05af4c4b4416d10ad135d092fce2 SHA512 67ec289b0f2e09c6a97c2141734f906db3d589aaabfa7cccb73720145a53c6a0a3ea26b143b236df43594392196b56429deab926e188cae74267fde71edb3986 WHIRLPOOL c36da74b8b0c96f6c698d2c5b67f0563d0ae653bfbe788371bea57a5adf7d21c147bb89f79ad69b007eb9bee6ceb0ee265cd898fe6c79c15740459250953f9aa +DIST gnuconfig-20140212.tar.bz2 44808 SHA256 57fd592676c549d4e4772273ec35b0cfe73b6b4b26b63c0a69260895a4e673ec SHA512 5c3b49733aa96a9418420d4232c01c02179cde4150104dee10713b963345e57feda3ba69b40016685370fd0d0d092f57c86a4b1ef0480b6403054666505d56ce WHIRLPOOL f09ac7cc01931ff7fda26ed56692bb0e6ba0a53096593fa90c95c0fdb98f2defb17a88cf72a18da5c5ae47842e866c23a83114a1c7043f3cdb9a2ccff06ebcfb +DIST gnuconfig-20140728.tar.bz2 45239 SHA256 a597514a41df7299a070948c9e6a7e14c03a356b14b4719b25be7d8f93debb3a SHA512 7f6c68de16a1f82430cf68d55a8cf5ef8e5d4dd546221c4674112683e5c1fd7525623c8164bbca5f07911eb778b298e1391dd5438fdcab7dc155b5f55fab7e7d WHIRLPOOL d61a162f4c621833c10470254c4fb7acb4f74692e3657835f9d73a63c62df383c0d51e822ed65d9feee9ea887632e4c2d43551c124adf44e1615804ee184928c +DIST gnuconfig-20150304.tar.bz2 46130 SHA256 6308cdb0aad50e24ab8afd39552582acb41ea8e45b0b0389b3b649b82640b7dd SHA512 937697dea538ba30dde6b3f1fa56963e0233d57418c86572ff4e25faf4ec0288cc1dbd96d05392bc317d70f99b9bc6965cf56263fd698035d2df99f4d9da597b WHIRLPOOL 4854791a0d43237fbd0274c118a7297d096af034f85a881aa7c6096f31093c32967b1051d7a04aa7d635817afc0c87208872a6d207d2d9e3a7e8cff6b6a27787 +DIST gnuconfig-20150308.tar.bz2 46295 SHA256 83b68fc5e3627f0f590dddbd7a2937d078be3daa5803fadebc8f9b5dd375536c SHA512 e09741289a92f68a88f8516622760ce627776e3484f740574ad84ba9e7ef2780abf237c85dc04bc731e7e4ccf9b301a880ef19947867d5618f7c95a1ec50c804 WHIRLPOOL 6b9b9d55c9c16d2613004042e1a20061b9df56542a842a3ff79b84682b4aeb8e7df496e77869ebfe26f3bc25eb1cf547840b997a3febc84ee68a221798ed3d0a +DIST gnuconfig-20150727.tar.bz2 46599 SHA256 38b0fc0467ebdede37ebe895aeb8bd8544755c6872ef034624d5fa53668aa215 SHA512 b183e4552ebed029a41be04cf08ad80f67e0a687a73a236cc581dcb35f68bfdbad5a4553cf232b8f9422f6b50dd4ecaa1bbfc60e79db7a492e8fee51479f7361 WHIRLPOOL d60c1645e42220dda60b5112c6e35400139db8083fb888a0bc00470381da8ebd37feea4e491991f92ce51de421073f79bd0ce0f30128362f2517afe39a47d843 diff --git a/sys-devel/gnuconfig/files/99999999/0002-Add-x32-support-to-config.guess.patch b/sys-devel/gnuconfig/files/99999999/0002-Add-x32-support-to-config.guess.patch new file mode 100644 index 000000000000..2c69f57878eb --- /dev/null +++ b/sys-devel/gnuconfig/files/99999999/0002-Add-x32-support-to-config.guess.patch @@ -0,0 +1,44 @@ +From 8474d78c459f4ec8f8930094faeaacb2b77bf68f Mon Sep 17 00:00:00 2001 +From: "H.J. Lu" <hongjiu.lu@intel.com> +Date: Fri, 20 Dec 2013 14:36:01 -0500 +Subject: [PATCH] Add x32 support to config.guess + +GCC on Linux/x86-64 may be configured for x32: + +https://sites.google.com/site/x32abi/ + +by default and the Linux/x32 target should be x86_64-VENDOR-linux-gnux32. +This patch adds x32 support to config.guess. OK to install? + +URL: http://gcc.gnu.org/ml/gcc-patches/2012-08/msg01083.html +--- + config.guess | 13 ++++++++++++- + 1 file changed, 12 insertions(+), 1 deletion(-) + +diff --git a/config.guess b/config.guess +index fddac42..17a4f70 100755 +--- a/config.guess ++++ b/config.guess +@@ -1038,7 +1038,18 @@ EOF + echo ${UNAME_MACHINE}-dec-linux-${LIBC} + exit ;; + x86_64:Linux:*:*) +- echo ${UNAME_MACHINE}-pc-linux-${LIBC} ++ eval $set_cc_for_build ++ X86_64_ABI= ++ # If there is a compiler, see if it is configured for 32-bit objects. ++ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then ++ if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \ ++ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ ++ grep IS_X32 >/dev/null ++ then ++ X86_64_ABI=x32 ++ fi ++ fi ++ echo ${UNAME_MACHINE}-pc-linux-${LIBC}${X86_64_ABI} + exit ;; + xtensa*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} +-- +2.4.4 + diff --git a/sys-devel/gnuconfig/files/99999999/0002-add-ps2-targets-to-config.sub.patch b/sys-devel/gnuconfig/files/99999999/0002-add-ps2-targets-to-config.sub.patch new file mode 100644 index 000000000000..88e43cd8ac2b --- /dev/null +++ b/sys-devel/gnuconfig/files/99999999/0002-add-ps2-targets-to-config.sub.patch @@ -0,0 +1,59 @@ +From 582f9caf95b3ccf36e6248be3b5b414546b0a03e Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Thu, 9 Oct 2008 15:51:35 -0400 +Subject: [PATCH] add ps2 targets to config.sub + +--- + config.sub | 22 ++++++++++++++++++++-- + 1 file changed, 20 insertions(+), 2 deletions(-) + +diff --git a/config.sub b/config.sub +index 88307c1..7ee2b4c 100755 +--- a/config.sub ++++ b/config.sub +@@ -258,7 +258,7 @@ case $basic_machine in + | be32 | be64 \ + | bfin \ + | c4x | c8051 | clipper \ +- | d10v | d30v | dlx | dsp16xx \ ++ | d10v | d30v | dlx | dsp16xx | dvp \ + | e2k | epiphany \ + | fido | fr30 | frv | ft32 \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ +@@ -823,6 +823,24 @@ case $basic_machine in + basic_machine=m68k-atari + os=-mint + ;; ++ mipsEE* | ee | ps2) ++ basic_machine=mips64r5900el-scei ++ case $os in ++ -linux*) ++ ;; ++ *) ++ os=-elf ++ ;; ++ esac ++ ;; ++ iop) ++ basic_machine=mipsel-scei ++ os=-irx ++ ;; ++ dvp) ++ basic_machine=dvp-scei ++ os=-elf ++ ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; +@@ -1389,7 +1407,7 @@ case $os in + | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ +- | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ ++ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -irx* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ +-- +2.3.1 + diff --git a/sys-devel/gnuconfig/gnuconfig-20130516.ebuild b/sys-devel/gnuconfig/gnuconfig-20130516.ebuild new file mode 100644 index 000000000000..29eda87863be --- /dev/null +++ b/sys-devel/gnuconfig/gnuconfig-20130516.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils +if [[ ${PV} == "99999999" ]] ; then + EGIT_REPO_URI="git://git.savannah.gnu.org/config.git + http://git.savannah.gnu.org/r/config.git" + + inherit git-2 +else + SRC_URI="mirror://gentoo/${P}.tar.bz2" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +fi + +DESCRIPTION="Updated config.sub and config.guess file from GNU" +HOMEPAGE="http://savannah.gnu.org/projects/config" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +S=${WORKDIR} + +maint_pkg_create() { + cd "${S}" + + 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.bz2" + tar -jcf ${tar} . || die "creating tar failed" + einfo "Packaged tar now available:" + einfo "$(du -b ${tar})" +} + +src_unpack() { + if [[ ${PV} == "99999999" ]] ; then + git-2_src_unpack + maint_pkg_create + else + unpack ${A} + fi +} + +src_prepare() { + epatch "${WORKDIR}"/*.patch + use elibc_uclibc && sed -i 's:linux-gnu:linux-uclibc:' testsuite/config-guess.data #180637 +} + +src_compile() { :;} + +src_test() { + emake check +} + +src_install() { + insinto /usr/share/${PN} + doins config.{sub,guess} || die + fperms +x /usr/share/${PN}/config.{sub,guess} + dodoc ChangeLog +} diff --git a/sys-devel/gnuconfig/gnuconfig-20131128.ebuild b/sys-devel/gnuconfig/gnuconfig-20131128.ebuild new file mode 100644 index 000000000000..722cf7046a78 --- /dev/null +++ b/sys-devel/gnuconfig/gnuconfig-20131128.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils +if [[ ${PV} == "99999999" ]] ; then + EGIT_REPO_URI="git://git.savannah.gnu.org/config.git + http://git.savannah.gnu.org/r/config.git" + + inherit git-2 +else + SRC_URI="mirror://gentoo/${P}.tar.bz2" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +fi + +DESCRIPTION="Updated config.sub and config.guess file from GNU" +HOMEPAGE="http://savannah.gnu.org/projects/config" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +S=${WORKDIR} + +maint_pkg_create() { + cd "${S}" + + 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.bz2" + tar -jcf ${tar} ./* || die "creating tar failed" + einfo "Packaged tar now available:" + einfo "$(du -b ${tar})" +} + +src_unpack() { + if [[ ${PV} == "99999999" ]] ; then + git-2_src_unpack + maint_pkg_create + else + unpack ${A} + fi +} + +src_prepare() { + epatch "${WORKDIR}"/*.patch + use elibc_uclibc && sed -i 's:linux-gnu:linux-uclibc:' testsuite/config-guess.data #180637 +} + +src_compile() { :;} + +src_test() { + emake check +} + +src_install() { + insinto /usr/share/${PN} + doins config.{sub,guess} || die + fperms +x /usr/share/${PN}/config.{sub,guess} + dodoc ChangeLog +} diff --git a/sys-devel/gnuconfig/gnuconfig-20140212.ebuild b/sys-devel/gnuconfig/gnuconfig-20140212.ebuild new file mode 100644 index 000000000000..722cf7046a78 --- /dev/null +++ b/sys-devel/gnuconfig/gnuconfig-20140212.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils +if [[ ${PV} == "99999999" ]] ; then + EGIT_REPO_URI="git://git.savannah.gnu.org/config.git + http://git.savannah.gnu.org/r/config.git" + + inherit git-2 +else + SRC_URI="mirror://gentoo/${P}.tar.bz2" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +fi + +DESCRIPTION="Updated config.sub and config.guess file from GNU" +HOMEPAGE="http://savannah.gnu.org/projects/config" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +S=${WORKDIR} + +maint_pkg_create() { + cd "${S}" + + 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.bz2" + tar -jcf ${tar} ./* || die "creating tar failed" + einfo "Packaged tar now available:" + einfo "$(du -b ${tar})" +} + +src_unpack() { + if [[ ${PV} == "99999999" ]] ; then + git-2_src_unpack + maint_pkg_create + else + unpack ${A} + fi +} + +src_prepare() { + epatch "${WORKDIR}"/*.patch + use elibc_uclibc && sed -i 's:linux-gnu:linux-uclibc:' testsuite/config-guess.data #180637 +} + +src_compile() { :;} + +src_test() { + emake check +} + +src_install() { + insinto /usr/share/${PN} + doins config.{sub,guess} || die + fperms +x /usr/share/${PN}/config.{sub,guess} + dodoc ChangeLog +} diff --git a/sys-devel/gnuconfig/gnuconfig-20140728.ebuild b/sys-devel/gnuconfig/gnuconfig-20140728.ebuild new file mode 100644 index 000000000000..77131df9ed10 --- /dev/null +++ b/sys-devel/gnuconfig/gnuconfig-20140728.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils +if [[ ${PV} == "99999999" ]] ; then + EGIT_REPO_URI="git://git.savannah.gnu.org/config.git + http://git.savannah.gnu.org/r/config.git" + + inherit git-2 +else + SRC_URI="mirror://gentoo/${P}.tar.bz2" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +fi + +DESCRIPTION="Updated config.sub and config.guess file from GNU" +HOMEPAGE="http://savannah.gnu.org/projects/config" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +S=${WORKDIR} + +maint_pkg_create() { + cd "${S}" + + 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.bz2" + tar -jcf ${tar} ./* || die "creating tar failed" + einfo "Packaged tar now available:" + einfo "$(du -b ${tar})" +} + +src_unpack() { + if [[ ${PV} == "99999999" ]] ; then + git-2_src_unpack + maint_pkg_create + else + unpack ${A} + fi +} + +src_prepare() { + epatch "${WORKDIR}"/*.patch + use elibc_uclibc && sed -i 's:linux-gnu:linux-uclibc:' testsuite/config-guess.data #180637 +} + +src_compile() { :;} + +src_test() { + emake check +} + +src_install() { + insinto /usr/share/${PN} + doins config.{sub,guess} || die + fperms +x /usr/share/${PN}/config.{sub,guess} + dodoc ChangeLog +} diff --git a/sys-devel/gnuconfig/gnuconfig-20150304.ebuild b/sys-devel/gnuconfig/gnuconfig-20150304.ebuild new file mode 100644 index 000000000000..77131df9ed10 --- /dev/null +++ b/sys-devel/gnuconfig/gnuconfig-20150304.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils +if [[ ${PV} == "99999999" ]] ; then + EGIT_REPO_URI="git://git.savannah.gnu.org/config.git + http://git.savannah.gnu.org/r/config.git" + + inherit git-2 +else + SRC_URI="mirror://gentoo/${P}.tar.bz2" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +fi + +DESCRIPTION="Updated config.sub and config.guess file from GNU" +HOMEPAGE="http://savannah.gnu.org/projects/config" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +S=${WORKDIR} + +maint_pkg_create() { + cd "${S}" + + 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.bz2" + tar -jcf ${tar} ./* || die "creating tar failed" + einfo "Packaged tar now available:" + einfo "$(du -b ${tar})" +} + +src_unpack() { + if [[ ${PV} == "99999999" ]] ; then + git-2_src_unpack + maint_pkg_create + else + unpack ${A} + fi +} + +src_prepare() { + epatch "${WORKDIR}"/*.patch + use elibc_uclibc && sed -i 's:linux-gnu:linux-uclibc:' testsuite/config-guess.data #180637 +} + +src_compile() { :;} + +src_test() { + emake check +} + +src_install() { + insinto /usr/share/${PN} + doins config.{sub,guess} || die + fperms +x /usr/share/${PN}/config.{sub,guess} + dodoc ChangeLog +} diff --git a/sys-devel/gnuconfig/gnuconfig-20150308.ebuild b/sys-devel/gnuconfig/gnuconfig-20150308.ebuild new file mode 100644 index 000000000000..77131df9ed10 --- /dev/null +++ b/sys-devel/gnuconfig/gnuconfig-20150308.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="2" + +inherit eutils +if [[ ${PV} == "99999999" ]] ; then + EGIT_REPO_URI="git://git.savannah.gnu.org/config.git + http://git.savannah.gnu.org/r/config.git" + + inherit git-2 +else + SRC_URI="mirror://gentoo/${P}.tar.bz2" + KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +fi + +DESCRIPTION="Updated config.sub and config.guess file from GNU" +HOMEPAGE="http://savannah.gnu.org/projects/config" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +S=${WORKDIR} + +maint_pkg_create() { + cd "${S}" + + 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.bz2" + tar -jcf ${tar} ./* || die "creating tar failed" + einfo "Packaged tar now available:" + einfo "$(du -b ${tar})" +} + +src_unpack() { + if [[ ${PV} == "99999999" ]] ; then + git-2_src_unpack + maint_pkg_create + else + unpack ${A} + fi +} + +src_prepare() { + epatch "${WORKDIR}"/*.patch + use elibc_uclibc && sed -i 's:linux-gnu:linux-uclibc:' testsuite/config-guess.data #180637 +} + +src_compile() { :;} + +src_test() { + emake check +} + +src_install() { + insinto /usr/share/${PN} + doins config.{sub,guess} || die + fperms +x /usr/share/${PN}/config.{sub,guess} + dodoc ChangeLog +} diff --git a/sys-devel/gnuconfig/gnuconfig-20150727.ebuild b/sys-devel/gnuconfig/gnuconfig-20150727.ebuild new file mode 100644 index 000000000000..4a8bb5d152d0 --- /dev/null +++ b/sys-devel/gnuconfig/gnuconfig-20150727.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils +if [[ ${PV} == "99999999" ]] ; then + EGIT_REPO_URI="git://git.savannah.gnu.org/config.git + http://git.savannah.gnu.org/r/config.git" + + inherit git-2 +else + SRC_URI="mirror://gentoo/${P}.tar.bz2" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +fi + +DESCRIPTION="Updated config.sub and config.guess file from GNU" +HOMEPAGE="http://savannah.gnu.org/projects/config" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +S=${WORKDIR} + +maint_pkg_create() { + cd "${S}" + + 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.bz2" + tar -jcf ${tar} ./* || die "creating tar failed" + einfo "Packaged tar now available:" + einfo "$(du -b ${tar})" +} + +src_unpack() { + if [[ ${PV} == "99999999" ]] ; then + git-2_src_unpack + maint_pkg_create + else + unpack ${A} + fi +} + +src_prepare() { + epatch "${WORKDIR}"/*.patch + use elibc_uclibc && sed -i 's:linux-gnu:linux-uclibc:' testsuite/config-guess.data #180637 +} + +src_compile() { :;} + +src_test() { + emake check +} + +src_install() { + insinto /usr/share/${PN} + doins config.{sub,guess} || die + fperms +x /usr/share/${PN}/config.{sub,guess} + dodoc ChangeLog +} diff --git a/sys-devel/gnuconfig/gnuconfig-99999999.ebuild b/sys-devel/gnuconfig/gnuconfig-99999999.ebuild new file mode 100644 index 000000000000..4a8bb5d152d0 --- /dev/null +++ b/sys-devel/gnuconfig/gnuconfig-99999999.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils +if [[ ${PV} == "99999999" ]] ; then + EGIT_REPO_URI="git://git.savannah.gnu.org/config.git + http://git.savannah.gnu.org/r/config.git" + + inherit git-2 +else + SRC_URI="mirror://gentoo/${P}.tar.bz2" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +fi + +DESCRIPTION="Updated config.sub and config.guess file from GNU" +HOMEPAGE="http://savannah.gnu.org/projects/config" + +LICENSE="GPL-2" +SLOT="0" +IUSE="" + +S=${WORKDIR} + +maint_pkg_create() { + cd "${S}" + + 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.bz2" + tar -jcf ${tar} ./* || die "creating tar failed" + einfo "Packaged tar now available:" + einfo "$(du -b ${tar})" +} + +src_unpack() { + if [[ ${PV} == "99999999" ]] ; then + git-2_src_unpack + maint_pkg_create + else + unpack ${A} + fi +} + +src_prepare() { + epatch "${WORKDIR}"/*.patch + use elibc_uclibc && sed -i 's:linux-gnu:linux-uclibc:' testsuite/config-guess.data #180637 +} + +src_compile() { :;} + +src_test() { + emake check +} + +src_install() { + insinto /usr/share/${PN} + doins config.{sub,guess} || die + fperms +x /usr/share/${PN}/config.{sub,guess} + dodoc ChangeLog +} diff --git a/sys-devel/gnuconfig/metadata.xml b/sys-devel/gnuconfig/metadata.xml new file mode 100644 index 000000000000..59c5b7bb0175 --- /dev/null +++ b/sys-devel/gnuconfig/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>base-system</herd> +<longdescription> +Updated config.{sub,guess} files from upstream cvs to properly detect various system types. +</longdescription> +</pkgmetadata> |