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