summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-03-09 01:51:23 +0000
committerMike Frysinger <vapier@gentoo.org>2005-03-09 01:51:23 +0000
commitdaa05b5dec1715641c93066328f904cb69884b1f (patch)
treef4364cdceb3312e7ef1b90f7c07de6c7a29f7a17 /dev-libs/dietlibc/dietlibc-0.28.ebuild
parentold funk master funk (diff)
downloadgentoo-2-daa05b5dec1715641c93066328f904cb69884b1f.tar.gz
gentoo-2-daa05b5dec1715641c93066328f904cb69884b1f.tar.bz2
gentoo-2-daa05b5dec1715641c93066328f904cb69884b1f.zip
Version bump.
(Portage version: 2.0.51.19)
Diffstat (limited to 'dev-libs/dietlibc/dietlibc-0.28.ebuild')
-rw-r--r--dev-libs/dietlibc/dietlibc-0.28.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-libs/dietlibc/dietlibc-0.28.ebuild b/dev-libs/dietlibc/dietlibc-0.28.ebuild
new file mode 100644
index 000000000000..505d1952d568
--- /dev/null
+++ b/dev-libs/dietlibc/dietlibc-0.28.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/dietlibc/dietlibc-0.28.ebuild,v 1.1 2005/03/09 01:51:23 vapier Exp $
+
+inherit eutils flag-o-matic gcc
+
+DESCRIPTION="A minimal libc"
+HOMEPAGE="http://www.fefe.de/dietlibc/"
+SRC_URI="mirror://kernel/linux/libs/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug"
+
+DEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/0.24-dirent-prototype.patch
+ epatch "${FILESDIR}"/gcc-33-r3.patch
+ epatch "${FILESDIR}"/dietlibc-sparc64-makefile.patch #45601
+
+ filter-flags -fstack-protector -fstack-protector-all
+
+ # Ok so let's make dietlibc ssp aware (Aug 7 2004) -solar
+ cp ${FILESDIR}/ssp.c "${S}"/lib/ || die "Failed to copy ssp.c into lib for compile"
+ epatch "${FILESDIR}"/dietlibc-0.26-ssp.patch
+
+ replace-sparc64-flags #45716
+
+ append-flags -D__dietlibc__ -fno-stack-protector-all -fno-stack-protector
+ epatch "${FILESDIR}"/dietlibc-0.28-Makefile.patch
+}
+
+src_compile() {
+ local make_opt=""
+ use debug && make_opt="DEBUG=1"
+ emake CFLAGS="${CFLAGS}" ${make_opt} || die "emake failed"
+}
+
+src_install() {
+ make install DESTDIR="${D}" || die "make install failed"
+ dobin "${D}"/usr/diet/bin/* || die "dobin"
+ doman "${D}"/usr/diet/man/*/* || die "doman"
+ rm -r "${D}"/usr/diet/{man,bin}
+ dodoc AUTHOR BUGS CAVEAT CHANGES README THANKS TODO PORTING
+}