From: | "Ned Ludd (solar)" <solar@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-libs/uclibc++: ChangeLog uclibc++-0.2.2-r1.ebuild |
Date: | Mon, 01 Oct 2007 22:56:14 |
Message-Id: | E1IcU2j-00030j-CN@stork.gentoo.org |
1 | solar 07/10/01 22:47:13 |
2 | |
3 | Modified: ChangeLog |
4 | Added: uclibc++-0.2.2-r1.ebuild |
5 | Log: |
6 | - revision bump. bug 194387 |
7 | (Portage version: 2.1.3.9) |
8 | |
9 | Revision Changes Path |
10 | 1.8 sys-libs/uclibc++/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/uclibc++/ChangeLog?rev=1.8&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/uclibc++/ChangeLog?rev=1.8&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/uclibc++/ChangeLog?r1=1.7&r2=1.8 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/sys-libs/uclibc++/ChangeLog,v |
19 | retrieving revision 1.7 |
20 | retrieving revision 1.8 |
21 | diff -u -r1.7 -r1.8 |
22 | --- ChangeLog 15 Sep 2007 02:57:12 -0000 1.7 |
23 | +++ ChangeLog 1 Oct 2007 22:47:12 -0000 1.8 |
24 | @@ -1,6 +1,11 @@ |
25 | # ChangeLog for sys-libs/uclibc++ |
26 | # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc++/ChangeLog,v 1.7 2007/09/15 02:57:12 vapier Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc++/ChangeLog,v 1.8 2007/10/01 22:47:12 solar Exp $ |
29 | + |
30 | +*uclibc++-0.2.2-r1 (01 Oct 2007) |
31 | + |
32 | + 01 Oct 2007; <solar@g.o> +uclibc++-0.2.2-r1.ebuild: |
33 | + - revision bump. bug 194387 |
34 | |
35 | *uclibc++-0.2.2 (15 Sep 2007) |
36 | |
37 | |
38 | |
39 | |
40 | 1.1 sys-libs/uclibc++/uclibc++-0.2.2-r1.ebuild |
41 | |
42 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/uclibc++/uclibc++-0.2.2-r1.ebuild?rev=1.1&view=markup |
43 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-libs/uclibc++/uclibc++-0.2.2-r1.ebuild?rev=1.1&content-type=text/plain |
44 | |
45 | Index: uclibc++-0.2.2-r1.ebuild |
46 | =================================================================== |
47 | # Copyright 1999-2007 Gentoo Foundation |
48 | # Distributed under the terms of the GNU General Public License v2 |
49 | # $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc++/uclibc++-0.2.2-r1.ebuild,v 1.1 2007/10/01 22:47:12 solar Exp $ |
50 | |
51 | inherit eutils toolchain-funcs |
52 | |
53 | export CTARGET=${CTARGET:-${CHOST}} |
54 | if [[ ${CTARGET} == ${CHOST} ]] ; then |
55 | if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then |
56 | export CTARGET=${CATEGORY/cross-} |
57 | fi |
58 | fi |
59 | |
60 | DESCRIPTION="embedded C++ library" |
61 | HOMEPAGE="http://cxx.uclibc.org/" |
62 | SRC_URI="http://cxx.uclibc.org/src/uClibc++-${PV}.tar.bz2" |
63 | |
64 | LICENSE="GPL-2" |
65 | [[ ${CTARGET} != ${CHOST} ]] \ |
66 | && SLOT="${CTARGET}" \ |
67 | || SLOT="0" |
68 | KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~x86" |
69 | IUSE="debug static" |
70 | |
71 | DEPEND="" |
72 | |
73 | S=${WORKDIR}/uClibc++-${PV} |
74 | |
75 | set_config() { |
76 | local val |
77 | sed -i -e "/$1/d" .config |
78 | if [[ -n $2 && $2 != "n" ]]; then |
79 | val="$1=${2:-y}" |
80 | einfo "Enabling $1" |
81 | else |
82 | val="# $1 is not set" |
83 | einfo "Disabling $1" |
84 | fi |
85 | echo "$val" >> .config |
86 | } |
87 | |
88 | src_unpack() { |
89 | unpack ${A} |
90 | cd "${S}" |
91 | sed -i -e "s: -Wl,-s$: ${LDFLAGS}:" src/Makefile |
92 | emake -j1 -s defconfig > /dev/null || die "defconfig failed" |
93 | set_config UCLIBCXX_RUNTIME_PREFIX "\"/usr/${CTARGET}\"" |
94 | set_config BUILD_STATIC_LIB y |
95 | if use static; then |
96 | set_config BUILD_ONLY_STATIC_LIB y |
97 | fi |
98 | if use elibc_uclibc; then |
99 | set_config UCLIBCXX_HAS_TLS n |
100 | fi |
101 | emake oldconfig |
102 | } |
103 | |
104 | src_compile() { |
105 | emake \ |
106 | STRIPTOOL="true" \ |
107 | OPTIMIZATION="${CXXFLAGS}" \ |
108 | CROSS=${CTARGET}- \ |
109 | || die "make failed" |
110 | } |
111 | |
112 | src_install() { |
113 | emake install DESTDIR="${D}" || die |
114 | dodir /usr/bin |
115 | dosym /usr/${CTARGET}/bin/g++-uc /usr/bin/g++-uc |
116 | dodoc ChangeLog README TODO |
117 | } |
118 | |
119 | |
120 | |
121 | -- |
122 | gentoo-commits@g.o mailing list |