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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (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.2: +1 -1 lines
FILE REMOVED
Remove uclibc++ as planned.

1 # Copyright 1999-2006 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.1.12.ebuild,v 1.2 2006/01/04 00:05:23 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}.tbz2"
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++
28
29 src_unpack() {
30 unpack ${A}
31 cd "${S}"
32 make defconfig || die "defconfig failed"
33
34 local target
35 case $(tc-arch ${CTARGET}) in
36 alpha) target="alpha";;
37 amd64) target="x86_64";;
38 arm) target="arm";;
39 hppa) target="hppa";;
40 mips) target="mips";;
41 ppc) target="powerpc";;
42 x86) target="i386";;
43 *) die "$(tc-arch ${CTARGET}) lists no defaults :/";;
44 esac
45
46 sed -i \
47 -e '/^UCLIBCXX_RUNTIME_PREFIX=/d' \
48 -e '/^TARGET_'${target}'/d' \
49 .config
50
51 echo "UCLIBCXX_RUNTIME_PREFIX=\"/usr/${CTARGET}\"" >> .config
52 echo "TARGET_${target}=y" >> .config
53 use debug && echo "CONFIG_DODEBUG=y" >> .config
54
55 yes "" | make oldconfig || die "oldconfig failed"
56
57 # has to come after make oldconfig, else it will be disabled
58 echo "BUILD_STATIC_LIB=y" >> .config
59 if use static ; then
60 echo "BUILD_ONLY_STATIC_LIB=y" >> .config
61 fi
62 }
63
64 src_compile() {
65 emake -j1 ARCH_CFLAGS="${CFLAGS}" CROSS=${CTARGET}- || die "make failed"
66 }
67
68 src_test() {
69 make test || die "test failed"
70 }
71
72 src_install() {
73 make install PREFIX="${D}" || die
74 dodir /usr/bin
75 dosym /usr/${CTARGET}/bin/g++-uc /usr/bin/g++-uc
76 dodoc ChangeLog README TODO
77 }

  ViewVC Help
Powered by ViewVC 1.1.20