diff options
author | Alexis Ballier <aballier@gentoo.org> | 2013-07-03 21:52:45 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2013-07-03 21:52:45 +0000 |
commit | f146d4785deac0597e088a0d62bb07430bee95ec (patch) | |
tree | 9b0752bce011ee7e4a604195a5f8571e8139f979 /sys-libs/libcxx | |
parent | Version bump wrt bug #437116 (diff) | |
download | gentoo-2-f146d4785deac0597e088a0d62bb07430bee95ec.tar.gz gentoo-2-f146d4785deac0597e088a0d62bb07430bee95ec.tar.bz2 gentoo-2-f146d4785deac0597e088a0d62bb07430bee95ec.zip |
Go multilib, based on the work of Yuta SATOH in bug #475294
(Portage version: 2.2.0_alpha186/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
Diffstat (limited to 'sys-libs/libcxx')
-rw-r--r-- | sys-libs/libcxx/ChangeLog | 5 | ||||
-rw-r--r-- | sys-libs/libcxx/libcxx-9999.ebuild | 37 |
2 files changed, 25 insertions, 17 deletions
diff --git a/sys-libs/libcxx/ChangeLog b/sys-libs/libcxx/ChangeLog index cd8612ec5d53..43e3bce8114d 100644 --- a/sys-libs/libcxx/ChangeLog +++ b/sys-libs/libcxx/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for sys-libs/libcxx # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcxx/ChangeLog,v 1.23 2013/07/03 21:17:16 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcxx/ChangeLog,v 1.24 2013/07/03 21:52:45 aballier Exp $ + + 03 Jul 2013; Alexis Ballier <aballier@gentoo.org> libcxx-9999.ebuild: + Go multilib, based on the work of Yuta SATOH in bug #475294 03 Jul 2013; Alexis Ballier <aballier@gentoo.org> libcxx-9999.ebuild, +files/Makefile: diff --git a/sys-libs/libcxx/libcxx-9999.ebuild b/sys-libs/libcxx/libcxx-9999.ebuild index 2b448f475f12..abffa7b00431 100644 --- a/sys-libs/libcxx/libcxx-9999.ebuild +++ b/sys-libs/libcxx/libcxx-9999.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcxx/libcxx-9999.ebuild,v 1.15 2013/07/03 21:17:16 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcxx/libcxx-9999.ebuild,v 1.16 2013/07/03 21:52:45 aballier Exp $ EAPI=5 @@ -8,7 +8,7 @@ ESVN_REPO_URI="http://llvm.org/svn/llvm-project/libcxx/trunk" [ "${PV%9999}" != "${PV}" ] && SCM="subversion" || SCM="" -inherit ${SCM} flag-o-matic toolchain-funcs multilib +inherit ${SCM} flag-o-matic toolchain-funcs multilib multilib-minimal DESCRIPTION="New implementation of the C++ standard library, targeting C++11" HOMEPAGE="http://libcxx.llvm.org/" @@ -27,17 +27,20 @@ else fi IUSE="elibc_glibc +libcxxrt static-libs test" -RDEPEND="libcxxrt? ( >=sys-libs/libcxxrt-0.0_p20130530[static-libs?] ) +RDEPEND="libcxxrt? ( >=sys-libs/libcxxrt-0.0_p20130530[static-libs?,${MULTILIB_USEDEP}] ) !libcxxrt? ( sys-devel/gcc[cxx] )" DEPEND="${RDEPEND} test? ( sys-devel/clang ) app-arch/xz-utils" +DOCS=( CREDITS.TXT ) + src_prepare() { cp -f "${FILESDIR}/Makefile" lib/ || die + multilib_copy_sources } -src_compile() { +src_configure() { export LIBS="-lpthread -lrt -lc -lgcc_s" if use libcxxrt ; then append-cppflags -DLIBCXXRT "-I${EPREFIX}/usr/include/libcxxrt/" @@ -53,19 +56,22 @@ src_compile() { tc-export AR CC CXX append-ldflags "-Wl,-z,defs" # make sure we are not underlinked +} - cd "${S}/lib" || die +multilib_src_compile() { + cd "${BUILD_DIR}/lib" || die emake shared use static-libs && emake static } # Tests fail for now, if anybody is able to fix them, help is very welcome. -src_test() { - cd "${S}/test" - LD_LIBRARY_PATH="${S}/lib:${LD_LIBRARY_PATH}" \ - CC="clang++" \ - HEADER_INCLUDE="-I${S}/include" \ - SOURCE_LIB="-L${S}/lib" \ +multilib_src_test() { + cd "${BUILD_DIR}/test" + LD_LIBRARY_PATH="${BUILD_DIR}/lib:${LD_LIBRARY_PATH}" \ + LD_32_LIBRARY_PATH="${BUILD_DIR}/lib:${LD_32_LIBRARY_PATH}" \ + CC="clang++ $(get_abi_CFLAGS) ${CXXFLAGS}" \ + HEADER_INCLUDE="-I${BUILD_DIR}/include" \ + SOURCE_LIB="-L${BUILD_DIR}/lib" \ LIBS="-lm" \ ./testit || die } @@ -99,19 +105,18 @@ END_LDSCRIPT # TODO: Generate a libc++.a ldscript when building against libsupc++ } -src_install() { - cd "${S}/lib" +multilib_src_install() { + cd "${BUILD_DIR}/lib" if use static-libs ; then dolib.a libc++.a gen_static_ldscript fi dolib.so libc++.so* +} - cd "${S}" +multilib_src_install_all() { insinto /usr/include/c++/v1 doins -r include/* - - dodoc CREDITS.TXT } pkg_postinst() { |