diff options
author | Ned Ludd <solar@gentoo.org> | 2007-10-01 22:47:13 +0000 |
---|---|---|
committer | Ned Ludd <solar@gentoo.org> | 2007-10-01 22:47:13 +0000 |
commit | 27d7be795126b67b066c43338e008d3c01d208e7 (patch) | |
tree | b91457b2e6a4137816abbf5123ae0df2cab3b1aa | |
parent | HDD DB update -- 3 new drives from Doug Goldstein <cardoe@gentoo.org>. (diff) | |
download | gentoo-2-27d7be795126b67b066c43338e008d3c01d208e7.tar.gz gentoo-2-27d7be795126b67b066c43338e008d3c01d208e7.tar.bz2 gentoo-2-27d7be795126b67b066c43338e008d3c01d208e7.zip |
- revision bump. bug 194387
(Portage version: 2.1.3.9)
-rw-r--r-- | sys-libs/uclibc++/ChangeLog | 7 | ||||
-rw-r--r-- | sys-libs/uclibc++/files/digest-uclibc++-0.2.2-r1 | 3 | ||||
-rw-r--r-- | sys-libs/uclibc++/uclibc++-0.2.2-r1.ebuild | 71 |
3 files changed, 80 insertions, 1 deletions
diff --git a/sys-libs/uclibc++/ChangeLog b/sys-libs/uclibc++/ChangeLog index 4e8b8f9186d7..e34668dcbc7a 100644 --- a/sys-libs/uclibc++/ChangeLog +++ b/sys-libs/uclibc++/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-libs/uclibc++ # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc++/ChangeLog,v 1.7 2007/09/15 02:57:12 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc++/ChangeLog,v 1.8 2007/10/01 22:47:12 solar Exp $ + +*uclibc++-0.2.2-r1 (01 Oct 2007) + + 01 Oct 2007; <solar@gentoo.org> +uclibc++-0.2.2-r1.ebuild: + - revision bump. bug 194387 *uclibc++-0.2.2 (15 Sep 2007) diff --git a/sys-libs/uclibc++/files/digest-uclibc++-0.2.2-r1 b/sys-libs/uclibc++/files/digest-uclibc++-0.2.2-r1 new file mode 100644 index 000000000000..3bc2c6bcb794 --- /dev/null +++ b/sys-libs/uclibc++/files/digest-uclibc++-0.2.2-r1 @@ -0,0 +1,3 @@ +MD5 1ceef3209cca88be8f1bd9de99735954 uClibc++-0.2.2.tar.bz2 270154 +RMD160 188dc658c710c8346482773227d5a2137679c41d uClibc++-0.2.2.tar.bz2 270154 +SHA256 f140596469e0ab0523c0774d14fe82ba2831d48ad130415748250dbab149318e uClibc++-0.2.2.tar.bz2 270154 diff --git a/sys-libs/uclibc++/uclibc++-0.2.2-r1.ebuild b/sys-libs/uclibc++/uclibc++-0.2.2-r1.ebuild new file mode 100644 index 000000000000..5bb16587aceb --- /dev/null +++ b/sys-libs/uclibc++/uclibc++-0.2.2-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $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 $ + +inherit eutils toolchain-funcs + +export CTARGET=${CTARGET:-${CHOST}} +if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then + export CTARGET=${CATEGORY/cross-} + fi +fi + +DESCRIPTION="embedded C++ library" +HOMEPAGE="http://cxx.uclibc.org/" +SRC_URI="http://cxx.uclibc.org/src/uClibc++-${PV}.tar.bz2" + +LICENSE="GPL-2" +[[ ${CTARGET} != ${CHOST} ]] \ + && SLOT="${CTARGET}" \ + || SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~x86" +IUSE="debug static" + +DEPEND="" + +S=${WORKDIR}/uClibc++-${PV} + +set_config() { + local val + sed -i -e "/$1/d" .config + if [[ -n $2 && $2 != "n" ]]; then + val="$1=${2:-y}" + einfo "Enabling $1" + else + val="# $1 is not set" + einfo "Disabling $1" + fi + echo "$val" >> .config +} + +src_unpack() { + unpack ${A} + cd "${S}" + sed -i -e "s: -Wl,-s$: ${LDFLAGS}:" src/Makefile + emake -j1 -s defconfig > /dev/null || die "defconfig failed" + set_config UCLIBCXX_RUNTIME_PREFIX "\"/usr/${CTARGET}\"" + set_config BUILD_STATIC_LIB y + if use static; then + set_config BUILD_ONLY_STATIC_LIB y + fi + if use elibc_uclibc; then + set_config UCLIBCXX_HAS_TLS n + fi + emake oldconfig +} + +src_compile() { + emake \ + STRIPTOOL="true" \ + OPTIMIZATION="${CXXFLAGS}" \ + CROSS=${CTARGET}- \ + || die "make failed" +} + +src_install() { + emake install DESTDIR="${D}" || die + dodir /usr/bin + dosym /usr/${CTARGET}/bin/g++-uc /usr/bin/g++-uc + dodoc ChangeLog README TODO +} |