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