Gentoo Archives: gentoo-commits

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