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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Tue Jan 1 11:42:02 2013 UTC (18 months, 1 week ago) by ago
Branch: MAIN
Changes since 1.7: +3 -3 lines
Add ~ia64, wrt bug #449220

(Portage version: 2.1.11.31/cvs/Linux ppc64, unsigned Manifest commit)

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="3"
6
7 inherit eutils flag-o-matic toolchain-funcs
8
9 GITHUB_AUTHOR="hollow"
10 GITHUB_PROJECT="dietlibc"
11 GITHUB_COMMIT="4e86d5e"
12
13 DESCRIPTION="A libc optimized for small size"
14 HOMEPAGE="http://www.fefe.de/dietlibc/"
15 SRC_URI="http://nodeload.github.com/${GITHUB_AUTHOR}/${GITHUB_PROJECT}/tarball/v${PV} -> ${P}.tar.gz"
16
17 LICENSE="GPL-2"
18 SLOT="0"
19 KEYWORDS="~alpha amd64 ~arm -hppa ~ia64 ~mips ~sparc x86 ~amd64-linux ~x86-linux"
20 IUSE="debug"
21
22 DEPEND=""
23 RDEPEND=""
24
25 S="${WORKDIR}"/${GITHUB_AUTHOR}-${GITHUB_PROJECT}-${GITHUB_COMMIT}
26
27 DIETHOME=/usr/diet
28
29 pkg_setup() {
30 # Replace sparc64 related C[XX]FLAGS (see bug #45716)
31 use sparc && replace-sparc64-flags
32
33 # gcc-hppa suffers support for SSP, compilation will fail
34 use hppa && strip-unsupported-flags
35
36 # debug flags
37 use debug && append-flags -g
38
39 # Makefile does not append CFLAGS
40 append-flags -nostdinc -W -Wall -Wextra -Wchar-subscripts \
41 -Wmissing-prototypes -Wmissing-declarations -Wno-switch \
42 -Wno-unused -Wredundant-decls -fno-strict-aliasing
43
44 # only use -nopie on archs that support it
45 gcc-specs-pie && append-flags -nopie
46 }
47
48 src_compile() {
49 emake prefix="${EPREFIX}"${DIETHOME} \
50 CC="$(tc-getCC)" \
51 CFLAGS="${CFLAGS}" \
52 STRIP=":" \
53 || die "make failed"
54 }
55
56 src_install() {
57 emake prefix="${EPREFIX}"${DIETHOME} \
58 DESTDIR="${D}" \
59 install-bin \
60 install-headers \
61 || die "make install failed"
62
63 dobin "${ED}"${DIETHOME}/bin/* || die "dobin failed"
64 doman "${ED}"${DIETHOME}/man/*/* || die "doman failed"
65 rm -r "${ED}"${DIETHOME}/{man,bin}
66
67 dodoc AUTHOR BUGS CAVEAT CHANGES README THANKS TODO PORTING
68 }

  ViewVC Help
Powered by ViewVC 1.1.20