From: | "Luca Barbato (lu_zero)" <lu_zero@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-libs/musl: metadata.xml ChangeLog musl-9999.ebuild Manifest |
Date: | Tue, 25 Dec 2012 18:30:21 |
Message-Id: | 20121225183004.1A0B82171D@flycatcher.gentoo.org |
1 | lu_zero 12/12/25 18:30:04 |
2 | |
3 | Added: metadata.xml ChangeLog musl-9999.ebuild Manifest |
4 | Log: |
5 | Initial commit |
6 | |
7 | (Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key 1191738E) |
8 | |
9 | Revision Changes Path |
10 | 1.1 sys-libs/musl/metadata.xml |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/musl/metadata.xml?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/musl/metadata.xml?rev=1.1&content-type=text/plain |
14 | |
15 | Index: metadata.xml |
16 | =================================================================== |
17 | <?xml version="1.0" encoding="UTF-8"?> |
18 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
19 | <pkgmetadata> |
20 | <herd>toolchain</herd> |
21 | <maintainer> |
22 | <email>lu_zero@g.o</email> |
23 | </maintainer> |
24 | </pkgmetadata> |
25 | |
26 | |
27 | |
28 | 1.1 sys-libs/musl/ChangeLog |
29 | |
30 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/musl/ChangeLog?rev=1.1&view=markup |
31 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/musl/ChangeLog?rev=1.1&content-type=text/plain |
32 | |
33 | Index: ChangeLog |
34 | =================================================================== |
35 | # ChangeLog for sys-libs/musl |
36 | # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
37 | # $Header: /var/cvsroot/gentoo-x86/sys-libs/musl/ChangeLog,v 1.1 2012/12/25 18:30:03 lu_zero Exp $ |
38 | |
39 | *musl-9999 (25 Dec 2012) |
40 | |
41 | 25 Dec 2012; Luca Barbato <lu_zero@g.o> +musl-9999.ebuild, |
42 | +metadata.xml: |
43 | Initial commit |
44 | |
45 | |
46 | |
47 | |
48 | 1.1 sys-libs/musl/musl-9999.ebuild |
49 | |
50 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/musl/musl-9999.ebuild?rev=1.1&view=markup |
51 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/musl/musl-9999.ebuild?rev=1.1&content-type=text/plain |
52 | |
53 | Index: musl-9999.ebuild |
54 | =================================================================== |
55 | # Copyright 1999-2012 Gentoo Foundation |
56 | # Distributed under the terms of the GNU General Public License v2 |
57 | # $Header: /var/cvsroot/gentoo-x86/sys-libs/musl/musl-9999.ebuild,v 1.1 2012/12/25 18:30:03 lu_zero Exp $ |
58 | |
59 | EAPI=4 |
60 | |
61 | inherit eutils flag-o-matic multilib toolchain-funcs |
62 | if [[ ${PV} == "9999" ]] ; then |
63 | EGIT_REPO_URI="git://git.musl-libc.org/musl" |
64 | inherit git-2 |
65 | fi |
66 | |
67 | export CBUILD=${CBUILD:-${CHOST}} |
68 | export CTARGET=${CTARGET:-${CHOST}} |
69 | if [[ ${CTARGET} == ${CHOST} ]] ; then |
70 | if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then |
71 | export CTARGET=${CATEGORY/cross-} |
72 | fi |
73 | fi |
74 | |
75 | DESCRIPTION="Lightweight, fast and simple C library focused on standards-conformance and safety" |
76 | HOMEPAGE="http://www.musl-libc.org/" |
77 | if [[ ${PV} != "9999" ]] ; then |
78 | PATCH_VER="" |
79 | SRC_URI="http://www.musl-libc.org/releases/${P}.tar.gz" |
80 | KEYWORDS="-* ~amd64 ~arm" |
81 | fi |
82 | |
83 | LICENSE="MIT" |
84 | SLOT="0" |
85 | IUSE="crosscompile_opts_headers-only" |
86 | |
87 | S=${WORKDIR}/${MY_P} |
88 | |
89 | is_crosscompile() { |
90 | [[ ${CHOST} != ${CTARGET} ]] |
91 | } |
92 | |
93 | just_headers() { |
94 | use crosscompile_opts_headers-only && is_crosscompile |
95 | } |
96 | |
97 | pkg_setup() { |
98 | if [ ${CTARGET} == ${CHOST} ] ; then |
99 | case ${CHOST} in |
100 | *-musl*) ;; |
101 | *) die "Use sys-devel/crossdev to build a uclibc toolchain" ;; |
102 | esac |
103 | fi |
104 | } |
105 | |
106 | src_configure() { |
107 | tc-export CC |
108 | local myconf="--disable-gcc-wrapper" |
109 | |
110 | ./configure \ |
111 | --target="${CTARGET}" \ |
112 | --prefix="/usr" \ |
113 | --disable-gcc-wrapper |
114 | } |
115 | |
116 | src_compile() { |
117 | emake include/bits/alltypes.h || die |
118 | just_headers && return 0 |
119 | |
120 | emake || die |
121 | } |
122 | |
123 | src_install() { |
124 | local sysroot=${D} |
125 | is_crosscompile && sysroot+="/usr/${CTARGET}" |
126 | |
127 | local target="install" |
128 | just_headers && target="install-headers" |
129 | emake DESTDIR="${sysroot}" ${target} || die |
130 | |
131 | # Make sure we install the sys-include symlink so that when |
132 | # we build a 2nd stage cross-compiler, gcc finds the target |
133 | # system headers correctly. See gcc/doc/gccinstall.info |
134 | if is_crosscompile ; then |
135 | dosym usr/include /usr/${CTARGET}/sys-include |
136 | fi |
137 | } |
138 | |
139 | pkg_postinst() { |
140 | is_crosscompile && return 0 |
141 | |
142 | [ "${ROOT}" != "/" ] && return 0 |
143 | # update cache before reloading init |
144 | ldconfig |
145 | # reload init ... |
146 | /sbin/telinit U 2>/dev/null |
147 | } |
148 | |
149 | |
150 | |
151 | 1.1 sys-libs/musl/Manifest |
152 | |
153 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/musl/Manifest?rev=1.1&view=markup |
154 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/musl/Manifest?rev=1.1&content-type=text/plain |
155 | |
156 | Index: Manifest |
157 | =================================================================== |
158 | EBUILD musl-9999.ebuild 2021 SHA256 d1e8551a611c191ed12131d88bd126db7a088d4e4bc5b49ef74e12d95f7ce8f7 SHA512 30747ff545d2ae83c1f55025486fda7eb2903e728354a5c368ff8c25ea7151a4aed1df43c156e27d1e4601f427c44212503573b2bd49d8e004c5ec3993126fc6 WHIRLPOOL c0cca92edfbd41cff0767087009cf3e22ebe41e239ede79b1d65a42c9a44dff06b8eccada5e72f6a62675e951849e5d46c48f9f0e6f84edc98ca250e166c5a85 |
159 | MISC ChangeLog 243 SHA256 886a67952875a784d7a96fcc18a060321e70f09a55fb26d8f6d52506259fbd38 SHA512 de39bffc9182c3eec4f36a7884bd16223a0fc50fdc2b0645023bc0ffc70e6312d85f988b10bcfd2b02a2e9826d9c2e658955918c1f74c8d938e02db863e24287 WHIRLPOOL 1954d9d4ee61720d990ad5673810e41332321cd015b69e386e3f882b2a125e0d908be6488153571e2e59a02981f274e1ee7ca907f5435ea31ff380bc2ded1e63 |
160 | MISC metadata.xml 223 SHA256 d0effd32fc7c73c97f14108c4bdb0c2636af5763f7c0a987ad7ea264921a827f SHA512 0ca3a7e96a01f7dfe2b97441ee1a01b73a316cae084c6b1e0cb8c356f9fa0fe16fc33523ce321d293bbf0da9ca45c0dce922f9a49d3e59554b64a6b7f6b8af6b WHIRLPOOL 03dae507a05b599be2ee562f0ec3fce0aaf914d43a59a82a773479335589553f051423777b2c905cfc142e89f118a40f72101a80a55b000d09e23fd771a1f4f1 |