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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sat Sep 9 22:29:15 2006 UTC (13 years, 5 months ago) by vapier
Branch: MAIN
Version bump.
(Portage version: 2.1.1_rc1-r6)

1 vapier 1.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.2.0.ebuild,v 1.3 2006/03/04 04:26:31 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     src_unpack() {
30     unpack ${A}
31     cd "${S}"
32     make -s defconfig || die "defconfig failed"
33    
34     sed -i \
35     -e "/^UCLIBCXX_RUNTIME_PREFIX=/s:=.*:\"/usr/${CTARGET}\"" \
36     .config
37     use debug && echo "CONFIG_DODEBUG=y" >> .config
38    
39     yes "" | make -s oldconfig || die "oldconfig failed"
40    
41     # has to come after make oldconfig, else it will be disabled
42     echo "BUILD_STATIC_LIB=y" >> .config
43     if use static ; then
44     echo "BUILD_ONLY_STATIC_LIB=y" >> .config
45     fi
46     }
47    
48     src_compile() {
49     emake ARCH_CFLAGS="${CFLAGS}" CROSS=${CTARGET}- || die "make failed"
50     }
51    
52     src_test() {
53     make test || die "test failed"
54     }
55    
56     src_install() {
57     emake install DESTDIR="${D}" || die
58     dodir /usr/bin
59     dosym /usr/${CTARGET}/bin/g++-uc /usr/bin/g++-uc
60     dodoc ChangeLog README TODO
61     }

  ViewVC Help
Powered by ViewVC 1.1.20