1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils flag-o-matic
7 DESCRIPTION="A minimal libc"
8 HOMEPAGE="http://www.fefe.de/dietlibc/"
9 SRC_URI="mirror://gentoo/${P}.tar.bz2
10 https://dev.gentoo.org/~phreak/distfiles/${PN}-patches-${PVR}.tar.bz2
11 https://dev.gentoo.org/~hollow/distfiles/${PN}-patches-${PVR}.tar.bz2"
15 KEYWORDS="alpha amd64 arm ~mips sparc x86"
21 # Replace sparc64 related C[XX]FLAGS (see bug #45716)
22 use sparc && replace-sparc64-flags
24 # gcc-hppa suffers support for SSP, compilation will fail
25 # (do we still need this? SSP is disabled, see below)
26 use hppa && strip-unsupported-flags
28 # we use dietlibs STACKGAP in favor of the broken SSP implementation
29 filter-flags -fstack-protector -fstack-protector-all
32 use debug && append-flags -g
38 epatch "${WORKDIR}"/patches/*.patch
42 # parallel make is b0rked
43 emake -j1 CFLAGS="${CFLAGS}" || die "make failed"
47 emake DESTDIR="${D}" install || die "make install failed"
48 dobin "${D}"/usr/diet/bin/* || die "dobin failed"
49 doman "${D}"/usr/diet/man/*/* || die "doman failed"
50 rm -r "${D}"/usr/diet/{man,bin}
51 dodoc AUTHOR BUGS CAVEAT CHANGES README THANKS TODO PORTING