/[gentoo-x86]/dev-libs/dietlibc/dietlibc-0.33_pre20130103.ebuild
Gentoo

Contents of /dev-libs/dietlibc/dietlibc-0.33_pre20130103.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jan 3 20:15:02 2013 UTC (20 months, 2 weeks ago) by pacho
Branch: MAIN
Bump with snapshot taken today to get all the changes upstream did

(Portage version: 2.1.11.38/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/dietlibc/dietlibc-0.33_pre20110403.ebuild,v 1.7 2012/08/21 03:29:23 ottxor Exp $
4
5 EAPI=5
6 inherit eutils flag-o-matic toolchain-funcs
7
8 DESCRIPTION="A libc optimized for small size"
9 HOMEPAGE="http://www.fefe.de/dietlibc/"
10 SRC_URI="http://dev.gentoo.org/~pacho/maintainer-needed/${P}.tar.xz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~alpha ~amd64 ~arm -hppa ~ia64 ~mips ~sparc ~x86 ~amd64-linux ~x86-linux"
15 IUSE=""
16
17 DEPEND=""
18 RDEPEND=""
19
20 DIETHOME=/usr/diet
21
22 src_prepare() {
23 # Replace sparc64 related C[XX]FLAGS (see bug #45716)
24 use sparc && replace-sparc64-flags
25
26 # gcc-hppa suffers support for SSP, compilation will fail
27 use hppa && strip-unsupported-flags
28
29 # Makefile does not append CFLAGS
30 append-flags -nostdinc -W -Wall -Wextra -Wchar-subscripts \
31 -Wmissing-prototypes -Wmissing-declarations -Wno-switch \
32 -Wno-unused -Wredundant-decls -fno-strict-aliasing
33
34 # only use -nopie on archs that support it
35 gcc-specs-pie && append-flags -nopie
36
37 sed -i -e 's:strip::' Makefile || die
38 append-flags -Wa,--noexecstack
39 }
40
41 src_compile() {
42 emake prefix="${EPREFIX}"${DIETHOME} \
43 CC="$(tc-getCC)" \
44 CFLAGS="${CFLAGS}" \
45 STRIP=":"
46 }
47
48 src_install() {
49 emake prefix="${EPREFIX}"${DIETHOME} \
50 DESTDIR="${D}" \
51 install-bin \
52 install-headers
53
54 dobin "${ED}"${DIETHOME}/bin/*
55 doman "${ED}"${DIETHOME}/man/*/*
56 rm -r "${ED}"${DIETHOME}/{man,bin} || die
57
58 dodoc AUTHOR BUGS CAVEAT CHANGES README THANKS TODO PORTING
59 }

  ViewVC Help
Powered by ViewVC 1.1.20