diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2005-03-10 08:49:28 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2005-03-10 08:49:28 +0000 |
commit | 6d68abebf569a48110d1754a0525e3fbf391d554 (patch) | |
tree | e47ea7b6ba27d8604c2fed99230121b3170c0c99 /dev-libs/klibc | |
parent | Update version. (diff) | |
download | gentoo-2-6d68abebf569a48110d1754a0525e3fbf391d554.tar.gz gentoo-2-6d68abebf569a48110d1754a0525e3fbf391d554.tar.bz2 gentoo-2-6d68abebf569a48110d1754a0525e3fbf391d554.zip |
Update version.
(Portage version: 2.0.51.19)
Diffstat (limited to 'dev-libs/klibc')
-rw-r--r-- | dev-libs/klibc/ChangeLog | 7 | ||||
-rw-r--r-- | dev-libs/klibc/Manifest | 12 | ||||
-rw-r--r-- | dev-libs/klibc/files/digest-klibc-1.0.3 | 1 | ||||
-rw-r--r-- | dev-libs/klibc/klibc-1.0.3.ebuild | 118 |
4 files changed, 127 insertions, 11 deletions
diff --git a/dev-libs/klibc/ChangeLog b/dev-libs/klibc/ChangeLog index e8389cc79abe..85cc1c9dab93 100644 --- a/dev-libs/klibc/ChangeLog +++ b/dev-libs/klibc/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-libs/klibc # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/klibc/ChangeLog,v 1.2 2005/03/09 23:55:54 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/klibc/ChangeLog,v 1.3 2005/03/10 08:49:28 azarah Exp $ + +*klibc-1.0.3 (10 Mar 2005) + + 10 Mar 2005; Martin Schlemmer <azarah@gentoo.org> +klibc-1.0.3.ebuild: + Update version. 10 Mar 2005; Martin Schlemmer <azarah@gentoo.org> +files/klibc-1.0-makeklcc-empty-args.patch, klibc-1.0.ebuild: diff --git a/dev-libs/klibc/Manifest b/dev-libs/klibc/Manifest index cf82697c03e9..c2ecdef49f38 100644 --- a/dev-libs/klibc/Manifest +++ b/dev-libs/klibc/Manifest @@ -1,18 +1,10 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - MD5 300321e4e9125b68cfc58017ec3949fd klibc-1.0.ebuild 3289 MD5 b612d343db3c54560665171eb7db245c metadata.xml 223 MD5 cc7dd201275317cd75a1094c8c210b1c ChangeLog 627 MD5 ce75dcbc3e6d4e47aa7860acdd0a0b9d klibc-1.0.1.ebuild 3170 +MD5 ce75dcbc3e6d4e47aa7860acdd0a0b9d klibc-1.0.3.ebuild 3170 MD5 d995810231e49d3aee9101cebc8a6a17 files/digest-klibc-1.0 62 MD5 5c3c81897bd984be9f30c508fc07745b files/klibc.m4 2936 MD5 e70edb40913b7ad07638a7202f773b6f files/klibc-1.0-makeklcc-empty-args.patch 807 MD5 025bf87e68b4ebfadba1f3aa6b9ae913 files/digest-klibc-1.0.1 64 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.0 (GNU/Linux) - -iD8DBQFCMAaO1ZcsMnZjRyIRAljpAKCuLw1QTbh998xxT7dHcduZezKMZgCgs/q0 -rkE0xzPnhnJGPQkYH0kh2mA= -=iYBs ------END PGP SIGNATURE----- +MD5 626ed5b2981bf97e3b37743bb3b4cc08 files/digest-klibc-1.0.3 64 diff --git a/dev-libs/klibc/files/digest-klibc-1.0.3 b/dev-libs/klibc/files/digest-klibc-1.0.3 new file mode 100644 index 000000000000..ee74bc9080a1 --- /dev/null +++ b/dev-libs/klibc/files/digest-klibc-1.0.3 @@ -0,0 +1 @@ +MD5 265e17880d86471c7881b98747d3d62c klibc-1.0.3.tar.bz2 436398 diff --git a/dev-libs/klibc/klibc-1.0.3.ebuild b/dev-libs/klibc/klibc-1.0.3.ebuild new file mode 100644 index 000000000000..be6573f0b2a4 --- /dev/null +++ b/dev-libs/klibc/klibc-1.0.3.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/klibc/klibc-1.0.3.ebuild,v 1.1 2005/03/10 08:49:28 azarah Exp $ + +inherit eutils linux-mod + +export CTARGET=${CTARGET:-${CHOST}} +if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then + export CTARGET=${CATEGORY/cross-} + fi +fi + +DESCRIPTION="A minimal libc subset for use with initramfs." +HOMEPAGE="http://www.zytor.com/mailman/listinfo/klibc" +SRC_URI="ftp://ftp.kernel.org/pub/linux/libs/klibc/${P}.tar.bz2 + ftp://ftp.kernel.org/pub/linux/libs/klibc/Stable/${P}.tar.bz2 + ftp://ftp.kernel.org/pub/linux/libs/klibc/Testing/${P}.tar.bz2" +LICENSE="|| ( GPL-2 LGPL-2 )" +KEYWORDS="~x86" +IUSE="" +RESTRICT="nostrip" + +DEPEND="virtual/linux-sources" + +if [[ ${CTARGET} != ${CHOST} ]] ; then + SLOT="${CTARGET}" +else + SLOT="0" +fi + +is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } + +guess_arch() { + local x + local host=$(echo "${CTARGET%%-*}" | sed -e 's/i.86/i386/' \ + -e 's/sun4u/sparc64/' \ + -e 's/arm.*/arm/' \ + -e 's/sa110/arm/' \ + -e 's/powerpc/ppc/') + + # Sort reverse so that we will get ppc64 before ppc, etc + for x in $(ls -1 "${S}/include/arch/" | sort -r) ; do + if [[ ${host} == "${x}" ]] ; then + echo "${x}" + return 0 + fi + done + + return 1 +} + + +src_unpack() { + unpack ${A} + + if [[ ! -d /usr/${CTARGET} ]] ; then + echo + eerror "It does not look like your cross-compiler is setup properly!" + die "It does not look like your cross-compiler is setup properly!" + fi + + if ! guess_arch &>/dev/null ; then + echo + eerror "Could not guess klibc's ARCH from your CTARGET!" + die "Could not guess klibc's ARCH from your CTARGET!" + fi + + # Make sure kernel sources are ok + check_kernel_built + + kernel_arch=$(readlink "${KV_DIR}/include/asm" | sed -e 's:asm-::') + if [[ ${kernel_arch} != $(guess_arch) ]] ; then + echo + eerror "Your kernel sources are not configured for your chosen arch!" + eerror "(KERNEL_ARCH=\"${kernel_arch}\", ARCH=\"$(guess_arch)\")" + die "Your kernel sources are not configured for your chosen arch!" + fi + + cd ${S} + + ln -snf ${KV_DIR} linux +} + +src_compile() { + if is_cross ; then + einfo "ARCH = \"$(guess_arch)\"" + einfo "CROSS = \"${CTARGET}-\"" + emake ARCH=$(guess_arch) \ + CROSS="${CTARGET}-" || die "Compile failed!" + else + env -u ARCH \ + emake || die "Compile failed!" + fi +} + +src_install() { + if is_cross ; then + make INSTALLROOT=${D} \ + ARCH=$(guess_arch) \ + CROSS="${CTARGET}-" \ + install || die "Install failed!" + else + env -u ARCH \ + make INSTALLROOT=${D} install || die "Install failed!" + + insinto /usr/share/aclocal + doins ${FILESDIR}/klibc.m4 + + dodoc ${S}/README ${S}/klibc/{LICENSE,CAVEATS} + newdoc ${S}/klibc/README README.klibc + newdoc ${S}/klibc/arch/README README.klibc.arch + docinto ash; newdoc ${S}/ash/README.klibc README + docinto gzip; dodoc ${S}/gzip/{COPYING,README} + docinto ipconfig; dodoc ${S}/ipconfig/README + docinto kinit; dodoc ${S}/kinit/README + fi +} |