/[gentoo-x86]/sys-libs/uclibc++/uclibc++-0.2.2.ebuild
Gentoo

Contents of /sys-libs/uclibc++/uclibc++-0.2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Oct 13 11:14:14 2009 UTC (10 years, 3 months ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove uclibc++ as planned.

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc++/uclibc++-0.2.2.ebuild,v 1.1 2007/09/15 02:57:12 vapier Exp $
4
5 inherit eutils toolchain-funcs
6
7 export CTARGET=${CTARGET:-${CHOST}}
8 if [[ ${CTARGET} == ${CHOST} ]] ; then
9 if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
10 export CTARGET=${CATEGORY/cross-}
11 fi
12 fi
13
14 DESCRIPTION="embedded C++ library"
15 HOMEPAGE="http://cxx.uclibc.org/"
16 SRC_URI="http://cxx.uclibc.org/src/uClibc++-${PV}.tar.bz2"
17
18 LICENSE="GPL-2"
19 [[ ${CTARGET} != ${CHOST} ]] \
20 && SLOT="${CTARGET}" \
21 || SLOT="0"
22 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~x86"
23 IUSE="debug static"
24
25 DEPEND=""
26
27 S=${WORKDIR}/uClibc++-${PV}
28
29 set_config() {
30 sed -i \
31 -e "s:^# $2 is not set$:GO_HERE:" \
32 -e "s:^$2=.*$:GO_HERE:" \
33 .config
34 local val
35 if [[ -z $1 ]] || use $1 ; then
36 val="$2=${3:-y}"
37 else
38 val="# $2 is not set"
39 fi
40 sed -i -e "s:^GO_HERE$:${val}:" .config
41 }
42 src_unpack() {
43 unpack ${A}
44 cd "${S}"
45 sed -i -e "s: -Wl,-s$: ${LDFLAGS}:" src/Makefile
46 emake -j1 -s defconfig > /dev/null || die "defconfig failed"
47 set_config "" UCLIBCXX_RUNTIME_PREFIX "\"/usr/${CTARGET}\""
48 set_config "" BUILD_STATIC_LIB
49 set_config static BUILD_ONLY_STATIC_LIB
50 }
51
52 src_compile() {
53 emake \
54 STRIPTOOL="true" \
55 OPTIMIZATION="${CXXFLAGS}" \
56 CROSS=${CTARGET}- \
57 || die "make failed"
58 }
59
60 src_install() {
61 emake install DESTDIR="${D}" || die
62 dodir /usr/bin
63 dosym /usr/${CTARGET}/bin/g++-uc /usr/bin/g++-uc
64 dodoc ChangeLog README TODO
65 }

  ViewVC Help
Powered by ViewVC 1.1.20