Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/musl: musl-0.9.9.ebuild ChangeLog
Date: Sat, 23 Feb 2013 13:56:22
Message-Id: 20130223135617.E3E662171D@flycatcher.gentoo.org
1 blueness 13/02/23 13:56:17
2
3 Modified: ChangeLog
4 Added: musl-0.9.9.ebuild
5 Log:
6 Add release 0.9.9, bug #458846
7
8 (Portage version: 2.1.11.50/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
9
10 Revision Changes Path
11 1.4 sys-libs/musl/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/musl/ChangeLog?rev=1.4&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/musl/ChangeLog?rev=1.4&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/musl/ChangeLog?r1=1.3&r2=1.4
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-libs/musl/ChangeLog,v
20 retrieving revision 1.3
21 retrieving revision 1.4
22 diff -u -r1.3 -r1.4
23 --- ChangeLog 26 Dec 2012 19:16:47 -0000 1.3
24 +++ ChangeLog 23 Feb 2013 13:56:17 -0000 1.4
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-libs/musl
27 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/musl/ChangeLog,v 1.3 2012/12/26 19:16:47 blueness Exp $
29 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/musl/ChangeLog,v 1.4 2013/02/23 13:56:17 blueness Exp $
31 +
32 +*musl-0.9.9 (23 Feb 2013)
33 +
34 + 23 Feb 2013; Anthony G. Basile <blueness@g.o> +musl-0.9.9.ebuild:
35 + Add release 0.9.9, bug #458846
36
37 26 Dec 2012; Anthony G. Basile <blueness@g.o> metadata.xml,
38 musl-9999.ebuild:
39
40
41
42 1.1 sys-libs/musl/musl-0.9.9.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/musl/musl-0.9.9.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/musl/musl-0.9.9.ebuild?rev=1.1&content-type=text/plain
46
47 Index: musl-0.9.9.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sys-libs/musl/musl-0.9.9.ebuild,v 1.1 2013/02/23 13:56:17 blueness Exp $
52
53 EAPI=4
54
55 inherit eutils flag-o-matic multilib toolchain-funcs
56 if [[ ${PV} == "9999" ]] ; then
57 EGIT_REPO_URI="git://git.musl-libc.org/musl"
58 inherit git-2
59 fi
60
61 export CBUILD=${CBUILD:-${CHOST}}
62 export CTARGET=${CTARGET:-${CHOST}}
63 if [[ ${CTARGET} == ${CHOST} ]] ; then
64 if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
65 export CTARGET=${CATEGORY/cross-}
66 fi
67 fi
68
69 DESCRIPTION="Lightweight, fast and simple C library focused on standards-conformance and safety"
70 HOMEPAGE="http://www.musl-libc.org/"
71 if [[ ${PV} != "9999" ]] ; then
72 PATCH_VER=""
73 SRC_URI="http://www.musl-libc.org/releases/${P}.tar.gz"
74 KEYWORDS="-* ~amd64 ~arm ~mips"
75 fi
76
77 LICENSE="MIT"
78 SLOT="0"
79 IUSE="crosscompile_opts_headers-only"
80
81 S=${WORKDIR}/${MY_P}
82
83 is_crosscompile() {
84 [[ ${CHOST} != ${CTARGET} ]]
85 }
86
87 just_headers() {
88 use crosscompile_opts_headers-only && is_crosscompile
89 }
90
91 pkg_setup() {
92 if [ ${CTARGET} == ${CHOST} ] ; then
93 case ${CHOST} in
94 *-musl*) ;;
95 *) die "Use sys-devel/crossdev to build a musl toolchain" ;;
96 esac
97 fi
98 }
99
100 src_configure() {
101 tc-export CC
102
103 ./configure \
104 --target="${CTARGET}" \
105 --prefix="/usr" \
106 --disable-gcc-wrapper
107 }
108
109 src_compile() {
110 emake include/bits/alltypes.h || die
111 just_headers && return 0
112
113 emake || die
114 }
115
116 src_install() {
117 local sysroot=${D}
118 is_crosscompile && sysroot+="/usr/${CTARGET}"
119
120 local target="install"
121 just_headers && target="install-headers"
122 emake DESTDIR="${sysroot}" ${target} || die
123
124 # Make sure we install the sys-include symlink so that when
125 # we build a 2nd stage cross-compiler, gcc finds the target
126 # system headers correctly. See gcc/doc/gccinstall.info
127 if is_crosscompile ; then
128 dosym usr/include /usr/${CTARGET}/sys-include
129 fi
130 }
131
132 pkg_postinst() {
133 is_crosscompile && return 0
134
135 [ "${ROOT}" != "/" ] && return 0
136 # update cache before reloading init
137 ldconfig
138 # reload init ...
139 /sbin/telinit U 2>/dev/null
140 }