Gentoo Archives: gentoo-commits

From: "Benedikt Boehm (hollow)" <hollow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/dietlibc: ChangeLog dietlibc-0.33_pre20110403.ebuild dietlibc-0.33_pre20090721.ebuild
Date: Sun, 03 Apr 2011 11:14:27
Message-Id: 20110403111417.D1DF620054@flycatcher.gentoo.org
1 hollow 11/04/03 11:14:17
2
3 Modified: ChangeLog
4 Added: dietlibc-0.33_pre20110403.ebuild
5 Removed: dietlibc-0.33_pre20090721.ebuild
6 Log:
7 new snapshot with many fixes and clean cross compile support for previous rename-patches
8
9 (Portage version: 2.2.0_alpha23/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.82 dev-libs/dietlibc/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/dietlibc/ChangeLog?rev=1.82&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/dietlibc/ChangeLog?rev=1.82&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/dietlibc/ChangeLog?r1=1.81&r2=1.82
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-libs/dietlibc/ChangeLog,v
21 retrieving revision 1.81
22 retrieving revision 1.82
23 diff -u -r1.81 -r1.82
24 --- ChangeLog 26 Jun 2010 06:06:55 -0000 1.81
25 +++ ChangeLog 3 Apr 2011 11:14:17 -0000 1.82
26 @@ -1,6 +1,13 @@
27 # ChangeLog for dev-libs/dietlibc
28 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/dietlibc/ChangeLog,v 1.81 2010/06/26 06:06:55 hollow Exp $
30 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/dietlibc/ChangeLog,v 1.82 2011/04/03 11:14:17 hollow Exp $
32 +
33 +*dietlibc-0.33_pre20110403 (03 Apr 2011)
34 +
35 + 03 Apr 2011; Benedikt Böhm <hollow@g.o>
36 + -dietlibc-0.33_pre20090721.ebuild, +dietlibc-0.33_pre20110403.ebuild:
37 + new snapshot with many fixes and clean cross compile support for previous
38 + rename-patches
39
40 *dietlibc-0.33_pre20100626 (26 Jun 2010)
41
42
43
44
45 1.1 dev-libs/dietlibc/dietlibc-0.33_pre20110403.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/dietlibc/dietlibc-0.33_pre20110403.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/dietlibc/dietlibc-0.33_pre20110403.ebuild?rev=1.1&content-type=text/plain
49
50 Index: dietlibc-0.33_pre20110403.ebuild
51 ===================================================================
52 # Copyright 1999-2011 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/dev-libs/dietlibc/dietlibc-0.33_pre20110403.ebuild,v 1.1 2011/04/03 11:14:17 hollow Exp $
55
56 EAPI="3"
57
58 inherit eutils flag-o-matic toolchain-funcs
59
60 GITHUB_AUTHOR="hollow"
61 GITHUB_PROJECT="dietlibc"
62 GITHUB_COMMIT="4e86d5e"
63
64 DESCRIPTION="A libc optimized for small size"
65 HOMEPAGE="http://www.fefe.de/dietlibc/"
66 SRC_URI="http://nodeload.github.com/${GITHUB_AUTHOR}/${GITHUB_PROJECT}/tarball/v${PV} -> ${P}.tar.gz"
67
68 LICENSE="GPL-2"
69 SLOT="0"
70 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
71 IUSE="debug"
72
73 DEPEND=""
74 RDEPEND=""
75
76 S="${WORKDIR}"/${GITHUB_AUTHOR}-${GITHUB_PROJECT}-${GITHUB_COMMIT}
77
78 DIETHOME=/usr/diet
79
80 pkg_setup() {
81 # Replace sparc64 related C[XX]FLAGS (see bug #45716)
82 use sparc && replace-sparc64-flags
83
84 # gcc-hppa suffers support for SSP, compilation will fail
85 use hppa && strip-unsupported-flags
86
87 # debug flags
88 use debug && append-flags -g
89
90 # Makefile does not append CFLAGS
91 append-flags -nostdinc -W -Wall -Wextra -Wchar-subscripts \
92 -Wmissing-prototypes -Wmissing-declarations -Wno-switch \
93 -Wno-unused -Wredundant-decls -fno-strict-aliasing
94
95 # only use -nopie on archs that support it
96 gcc-specs-pie && append-flags -nopie
97 }
98
99 src_compile() {
100 emake prefix=${DIETHOME} \
101 CC="$(tc-getCC)" \
102 CFLAGS="${CFLAGS}" \
103 STRIP=":" \
104 || die "make failed"
105 }
106
107 src_install() {
108 emake prefix=${DIETHOME} \
109 DESTDIR="${D}" \
110 install-bin \
111 install-headers \
112 || die "make install failed"
113
114 dobin "${D}"${DIETHOME}/bin/* || die "dobin failed"
115 doman "${D}"${DIETHOME}/man/*/* || die "doman failed"
116 rm -r "${D}"${DIETHOME}/{man,bin}
117
118 dodoc AUTHOR BUGS CAVEAT CHANGES README THANKS TODO PORTING
119 }