diff options
author | Alexis Ballier <aballier@gentoo.org> | 2013-05-31 15:57:54 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2013-05-31 15:57:54 +0000 |
commit | 309fe28b6f77cbc5c82ce36f118429b15a72791a (patch) | |
tree | c08810db4d6836aa8fd896e8c82a90128932192a /sys-libs | |
parent | Version bump (bug 467932) (diff) | |
download | historical-309fe28b6f77cbc5c82ce36f118429b15a72791a.tar.gz historical-309fe28b6f77cbc5c82ce36f118429b15a72791a.tar.bz2 historical-309fe28b6f77cbc5c82ce36f118429b15a72791a.zip |
bump a new snapshot
Package-Manager: portage-2.2.0_alpha177/cvs/Linux x86_64
Manifest-Sign-Key: 0x160F534A
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/libcxx/ChangeLog | 8 | ||||
-rw-r--r-- | sys-libs/libcxx/Manifest | 10 | ||||
-rw-r--r-- | sys-libs/libcxx/libcxx-0.0_p20130531.ebuild | 101 | ||||
-rw-r--r-- | sys-libs/libcxxrt/ChangeLog | 8 | ||||
-rw-r--r-- | sys-libs/libcxxrt/Manifest | 10 | ||||
-rw-r--r-- | sys-libs/libcxxrt/libcxxrt-0.0_p20130531.ebuild | 67 |
6 files changed, 194 insertions, 10 deletions
diff --git a/sys-libs/libcxx/ChangeLog b/sys-libs/libcxx/ChangeLog index ebb982ce5d5c..ba38e76dd441 100644 --- a/sys-libs/libcxx/ChangeLog +++ b/sys-libs/libcxx/ChangeLog @@ -1,6 +1,12 @@ # 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.16 2013/05/31 01:16:29 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcxx/ChangeLog,v 1.17 2013/05/31 15:57:41 aballier Exp $ + +*libcxx-0.0_p20130531 (31 May 2013) + + 31 May 2013; Alexis Ballier <aballier@gentoo.org> + +libcxx-0.0_p20130531.ebuild: + bump a new snapshot 31 May 2013; Alexis Ballier <aballier@gentoo.org> libcxx-9999.ebuild, metadata.xml: diff --git a/sys-libs/libcxx/Manifest b/sys-libs/libcxx/Manifest index 708507be9009..e7f9e8151c9e 100644 --- a/sys-libs/libcxx/Manifest +++ b/sys-libs/libcxx/Manifest @@ -5,14 +5,16 @@ AUX cxxrt.patch 1018 SHA256 4792b8c7079c00fef105ff1209591d8ade274cf258b87ac21fad AUX multilib.patch 452 SHA256 16a64b3f0d81da0fc99dcb71cf5f7f75f7bb08c827cd329a1251e21363449d14 SHA512 eb8a023589321e13e24e95a1595578a6f63431f24c67b24ffe49a486ecd05323b6b587dec7c8a822693d618ef1da440432d36cc4d8ed4d8ab31c2288d501b8da WHIRLPOOL 2b522432086ebef6e48745d775dacacf3ed6adb5ec6e572f68b1e70963740b992a020ece95b2801dbbebb2632f297beb06df4eb70840a76615a61380627cf384 AUX prepare_snapshot.sh 427 SHA256 9ebf22257a2e296dee41a56b0a721cd1ba459c620009ca8422ba812515ff726f SHA512 ebac2a467f8b1dfb68f1dc46a35f8294d1cf74b70be2a008217fa13b3366ddf4a9f2ebbe611cd63824f42305c5c0304aac2f46386b2956c9e07d82d5d984b435 WHIRLPOOL 232a60d6a22f50c424ec9cf6f325bbb4e8e96815ba9dffdad0a5b1b872b19d20126d316ced71956978eb5ce098f72584d21104c14e232330b3893a73e4c3c358 DIST libcxx-0.0_p20130218.tar.xz 795520 SHA256 18bb8e4670e97e4e270c153ae7ba5d9861e0b28088db447e124694aee89f800c SHA512 1d3a5a4615e9b2070f1d2f47b4738a59e35aa5ea99bba92761094e90fc8ac382fcb9c2181db201e88cdc5c3c15661ce67314494747e95aba6830d2d94769381e WHIRLPOOL eef2d8ebe21a2f52457f5cf9385df75b9c2f689bbc991e7f82d97b15f0b933ba2bc311f4c0d4ea396ce34e4e971f3480a77fa534f75cce0f19c3a9a7196e83bf +DIST libcxx-0.0_p20130531.tar.xz 804716 SHA256 41c3d40d37378f4d3f065f884df6b3e0c4f0e517fffeadb1f9e31cac781d4a79 SHA512 4e8ce8c3b21ebf742efe37d074d9b55eaa43f428270463956238e078416d1d6bba2cec26e630b077af6c249d4454d78823ac67e7f59648be255feb8ed46d374f WHIRLPOOL 2e4433581fb6f4b9d3fc99c06ec575373f1e1ed0212b5f1bee0f6ef9bcd198f5b27c380abecfbf2cb6ffc5be58ef9cebd9de7c7d3d738fa5e144d180ffc8a694 EBUILD libcxx-0.0_p20130218.ebuild 1762 SHA256 73ec38dcc52bb2e35172dcb99ae667a976ade6a672b6c6e0e3e503460866b3ae SHA512 57abd59e833f5594b19505363e492efaef70872d0e8e31d8fca1667380f21fe67d266b6b7dab1a6b3aeb906039d93e51081da85b0c43e1f4e1c4f65b3d4d75f7 WHIRLPOOL 94de3f70ba4083e95b85a81d3518c5d0af5655547f389cc87ed917e424b22e671850191efaf3bafc997b8d24c569ec6b39b6d72886c9e75c570d86e451264de8 +EBUILD libcxx-0.0_p20130531.ebuild 2872 SHA256 46ec7affff2212776a32ee9c4879016f8b07cf942f55f45e374c5594ae48d5e4 SHA512 63808230eff4b71bec89e003c89987da83429bdaf5975b257860ed0a48dc0a6b7c9de409e5783a0c87d2b67b9e112cc9d90e74cba46629fbb35960b5e98234db WHIRLPOOL b9497c69346d2e3f4220bdb545373f2a9012bc6e7da8c23a97e4ac8fb54d482c0e0d7d898c53e0e10fdb907d7a44552d1f5fd166c02c7111044ceced747edad2 EBUILD libcxx-9999.ebuild 2863 SHA256 283b4e8a6c1962b8c85d793ab8ec34a8aea55962c475c157069e39273e3414f2 SHA512 39eb08a88b4c88fa38c8118eb3a2174ad7f217576a267adc9ccb09efe7f2d66cf4cf64d0dafe38001c1eafe2904b2811aaa8b393b0f076b88acf43c73ef34291 WHIRLPOOL 2a034766bfb4e513e00bc99b43877b4f880762a12a8b7b4aca83a8ab855059ed3ed54168bc9b59c37ab919906deda5291c038ef452e6259ef687ea94ac1998ba -MISC ChangeLog 2447 SHA256 f563c4ab678ef613bb5de6749a29bfc8596922688c76a50347d8a36354dcba1a SHA512 7ecca4cb5212699f7df6b858b1ebaa37c94e333ad5b785a2f853137ad056e30d0afefeb0b778ab5ebdf3c5dddeb30582872c3dd5cc62183ef86563a1a317044f WHIRLPOOL 0c539f16a9953f95b847b4bf64f6fece400f06eeb8c711de05f6e7bd33fd3fd546e262e771a1543d4105bfd37b660dd4c690489460d8bcb57767f78b9696bc36 +MISC ChangeLog 2591 SHA256 ae5d770232da948afe07aeadd69b98c1396b1fbea8c01c46f8f3c25d39562fbb SHA512 a173f4ab8a7304a57044320da61fd9cef100053a017b56d526dfce5dda5eef712bd50d6d6050477802b496f23ab44d63b1f932df049f13b32cbff34a6d74afe2 WHIRLPOOL a0dfe7077b20eebee80540f5fe466d20b908b9a51cb6157685d5e77e683e4697a91b37cb6656055ba044300db48535ada2b5bf8b55251907211ca55940dfa1ac MISC metadata.xml 558 SHA256 c9fe7077a8c7f767d7cdbe154d85dd344fb86ea246b16613242c70a40f3e1ef2 SHA512 3f324c4959a7c9f2613b29928957fd010b35c6e9c1601f0296e7e8b7c8d59a3c27c5c04fef87ac825f2f7bb07553bc617c4405e1e22847dc8db3e7a1ebb21f50 WHIRLPOOL 3ade5e3852afcd533c89ce0aeead55101f23d1b31825718bfccd60fac485961df617c93962be4c60333a21335dcd6bb5630c8002fe06f456c4e177c14d434455 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) -iEYEAREIAAYFAlGn+e8ACgkQvFcC4BYPU0rf4gCdEdCfbZMBc1u/5M4yfrn1I54V -BpIAoJXcZ+/pUvud69UXQdLM96jvA3Tp -=1mM7 +iEYEAREIAAYFAlGoyHYACgkQvFcC4BYPU0qpywCgx7009oLxq5me5RTmdRW3Xjau +z5QAni/JhOTKF9Jh5KPH7ywHTWSg+e93 +=7nmG -----END PGP SIGNATURE----- diff --git a/sys-libs/libcxx/libcxx-0.0_p20130531.ebuild b/sys-libs/libcxx/libcxx-0.0_p20130531.ebuild new file mode 100644 index 000000000000..f5ffc07e4a61 --- /dev/null +++ b/sys-libs/libcxx/libcxx-0.0_p20130531.ebuild @@ -0,0 +1,101 @@ +# 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-0.0_p20130531.ebuild,v 1.1 2013/05/31 15:57:41 aballier Exp $ + +EAPI=5 + +ESVN_REPO_URI="http://llvm.org/svn/llvm-project/libcxx/trunk" + +[ "${PV%9999}" != "${PV}" ] && SCM="subversion" || SCM="" + +inherit cmake-utils ${SCM} base flag-o-matic toolchain-funcs + +DESCRIPTION="New implementation of the C++ standard library, targeting C++11" +HOMEPAGE="http://libcxx.llvm.org/" +if [ "${PV%9999}" = "${PV}" ] ; then + SRC_URI="mirror://gentoo/${P}.tar.xz" +else + SRC_URI="" +fi + +LICENSE="|| ( UoI-NCSA MIT )" +SLOT="0" +if [ "${PV%9999}" = "${PV}" ] ; then + KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" +else + KEYWORDS="" +fi +IUSE="+libcxxrt static-libs" + +RDEPEND="libcxxrt? ( >=sys-libs/libcxxrt-0.0_p20130530[static-libs?] ) + !libcxxrt? ( sys-devel/gcc[cxx] )" +DEPEND="${RDEPEND} + sys-devel/clang + app-arch/xz-utils" + +PATCHES=( "${FILESDIR}/multilib.patch" ) +DOCS=( "CREDITS.TXT" ) + +src_prepare() { + use libcxxrt && PATCHES+=( "${FILESDIR}/cxxrt.patch" ) + base_src_prepare +} + +src_configure() { + local mycmakeargs_base=( ) + if use libcxxrt ; then + mycmakeargs_base=( + -DLIBCXX_CXX_ABI=libcxxrt + -DLIBCXX_LIBCXXRT_INCLUDE_PATHS="/usr/include/libcxxrt/" + ) + else + # Very hackish, see $HOMEPAGE + # If someone has a clever idea, please share it! + local includes="$(echo | "$(tc-getCXX)" -Wp,-v -x c++ - -fsyntax-only 2>&1 | grep -C 2 '#include.*<...>' | tail -n 2 | tr '\n' ';' | tr -d ' ')" + mycmakeargs_base=( + -DLIBCXX_CXX_ABI=libsupc++ + -DLIBCXX_LIBSUPCXX_INCLUDE_PATHS="${includes}" + ) + fi + + # Needs to be built with clang. gcc-4.6.3 fails at least. + # TODO: cross-compile ? + export CC=clang + export CXX=clang++ + + if use static-libs ; then + local mycmakeargs=( "${mycmakeargs_base[@]}" "-DLIBCXX_ENABLE_SHARED=OFF" ) + BUILD_DIR="${S}_static" cmake-utils_src_configure + fi + local mycmakeargs=( "${mycmakeargs_base[@]}" ) + BUILD_DIR="${S}_shared" cmake-utils_src_configure +} + +src_compile() { + use static-libs && BUILD_DIR="${S}_static" cmake-utils_src_compile + BUILD_DIR="${S}_shared" cmake-utils_src_compile +} + +# Tests fail for now, if anybody is able to fix them, help is very welcome. +src_test() { + cd "${S}/test" + LD_LIBRARY_PATH="${S}_shared/lib:${LD_LIBRARY_PATH}" \ + CC="clang++" \ + HEADER_INCLUDE="-I${S}/include" \ + SOURCE_LIB="-L${S}_shared/lib" \ + LIBS="-lm" \ + ./testit || die +} + +src_install() { + use static-libs && BUILD_DIR="${S}_static" cmake-utils_src_install + BUILD_DIR="${S}_shared" cmake-utils_src_install +} + +pkg_postinst() { + elog "This package (${PN}) is mainly intended as a replacement for the C++" + elog "standard library when using clang." + elog "To use it, instead of libstdc++, use:" + elog " clang++ -stdlib=libc++" + elog "to compile your C++ programs." +} diff --git a/sys-libs/libcxxrt/ChangeLog b/sys-libs/libcxxrt/ChangeLog index 890da6a24d54..8678985f23de 100644 --- a/sys-libs/libcxxrt/ChangeLog +++ b/sys-libs/libcxxrt/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-libs/libcxxrt # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcxxrt/ChangeLog,v 1.10 2013/05/30 23:33:32 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcxxrt/ChangeLog,v 1.11 2013/05/31 15:54:40 aballier Exp $ + +*libcxxrt-0.0_p20130531 (31 May 2013) + + 31 May 2013; Alexis Ballier <aballier@gentoo.org> + +libcxxrt-0.0_p20130531.ebuild: + bump a new snapshot 30 May 2013; Alexis Ballier <aballier@gentoo.org> libcxxrt-9999.ebuild: stop hacking around unwind headers and install them protected under libcxxrt diff --git a/sys-libs/libcxxrt/Manifest b/sys-libs/libcxxrt/Manifest index d1c44cae1df7..5f078bc06e5e 100644 --- a/sys-libs/libcxxrt/Manifest +++ b/sys-libs/libcxxrt/Manifest @@ -6,14 +6,16 @@ AUX Makefile.test 172 SHA256 af6cadd483849ae47f6ca6db3dfe03df8d5f8437c445f0f9a7f AUX prepare_snapshot.sh 426 SHA256 113d9ffc9fb7d7232d8ed72cb00121ffafbc11c2076bcd86f1f4b50d1a5e1642 SHA512 9fbe68735dc519fafbab55f46859a831b1eebe8ac6359ffa7ac3dd34f24e5ec6e48d1c1d245f6fec1ff46579531970820182163a8003afebb82266f3f293c002 WHIRLPOOL de4227959427c9d62d04d88689cbcbde95ea6789bb2bd4bd57c122da855f2c08750613462fcc9e7bd9553cd392a7477263c4beddec38236ed5c4e8bf64066e58 AUX unwind.h 3211 SHA256 fb24810e46a48727b91930c7e2267c521a478c90c9dcacb8c8c0d4e2fae3b9a1 SHA512 323e5b9a16a066501eb51d0974440dc1e4970defdbdbab94feeb44f5e48d66a6cef1e81db7a024ccf4fd8f858fdb9f0c7096a504ec584f4f36097e424e35da40 WHIRLPOOL a1adddc77aa6cf8440e8ff04d9fbe833b15e2609d74eaafefff7211dbd5f8ab6d037651c2ba4df29594d278b0de7893bb86d98209a5ed41d9d412fc05a2bd208 DIST libcxxrt-0.0_p20130218.tar.xz 57444 SHA256 27e4c7dcec3603631fb2ff8d0bf8f1c6dfc32d1c5f460512b630578b90255f77 SHA512 982d7840ecfb31b98ca8b71329bda8ce42396ae19fcd63a2f0fefb78e2a028f31207af0be2c7fbb26cf3f46c040dacdf27bc55bd1a05c7a240db9cee17f2f03a WHIRLPOOL a3eb3a0b5ec672c01d8a06aceceebefa221c20459f9c48f199f0bd0bdff3cdbab1e672673c80e9ca67d4ad757cfd2c6a300d1bc80193c0016eddcdc946e9766f +DIST libcxxrt-0.0_p20130531.tar.xz 57452 SHA256 7e3bb7b3a5b9695b607e520b561e494c3b946f8949e57f4bc151c56056003cde SHA512 d262a9bd6db60667e1b613bbe794b0d12b86bb641f192848e38654125850b05330e2eec0b020c92e7b6a8f45fe829c53e60ceb7e125214491418fc9edcdce2c1 WHIRLPOOL ab32fb4725da712568361c936e0bad1d43014eac80e2224c904a821d6ff66c3e6a4d2c350c704d69d31f7a50f6f1eae7f7ad7d9621b68ff7c823ffe0d36fdfc7 EBUILD libcxxrt-0.0_p20130218.ebuild 1896 SHA256 451195f7a967977d5b55ee137e4a4be1dfa8c9317d50896c6986fd2a929853ad SHA512 50872547d64bc72a218ba6f8f4ab3c2010630cd3e0db0db47247704e891db85cc1dd6b9c91298691a269724954d999dd6279042e1487c73b5b086882a0da6246 WHIRLPOOL e5570749aa66389b6c40376aced751061b2f3ea2e5d6f1c8f24c10e4798dd8ab6d821bfcc4661626aa8b6f379edd6f94365caf02ca5876e4b7da59319ea93ebf +EBUILD libcxxrt-0.0_p20130531.ebuild 1856 SHA256 4a9bb0eddb2995085db271283c4e1749d5a05cee947e03c67a333447bd65723c SHA512 8e80d815ab5c8f9bf504cd1c7d7894bd3b3ab97319940d725f44106abcdbaed277871d4c3be219bef0cacfef8cae52bd8daab2a514141439ec42c07f0b09ea25 WHIRLPOOL e400fe84a5992e1cfe1199b279c442f2bc756f3db9795b0d6652cc5ed6a553ca3fa1eb478bc5146e02610263a5ca911d4fbf5113d2f6df7cb81ae098614a321e EBUILD libcxxrt-9999.ebuild 1847 SHA256 b4b16ba05dfe5983cd3ef59e9ecbe0a68d0b70dc803c6e205e2f261c1854197e SHA512 82dddd7908d973c1eb661b656b6e2cbfbc9c04bb310f5e13a4f1d1a760c2c61bab43ef70226fe54122ce94a207c626da560004741970438eb24b35e3677063fe WHIRLPOOL d4b9f24d4a14dc2cdd8e0eb94281641bf22020d571aff1acd45f6fb63b6eceb82d94d2d57b07bd65a9966851f3d075edc0c2ecaf995965de578b7812ace26a26 -MISC ChangeLog 2272 SHA256 44555aeb59bfb41f7e432864c0cb9b1e5e86412dca1bfbd80a478dcba67aa812 SHA512 4050651cd878dfb5bcbd440ac35aa89c53c2a541ea191a5a1058f51b0e3948e0b1db9d5cf65ad3276a3793481f81e0198ab9c7c420380945b9d0068e4ef72722 WHIRLPOOL 31d934326a0f797b866261847e1c67c650edba32fa88d21a135754a5bee170a9136618cd1ce3cee11148d42cf5e85a8c7253458e2970c55dd842bb204adfc0e9 +MISC ChangeLog 2420 SHA256 5343784cfb456f54cb0cc6ea62774a9efd186de65c5d90d0e48a43fd30b7a068 SHA512 017d1f4b86beb557f5a12d588b0ae94adcffa19e82c8021bcc8f5c820c6e42f339a6eea2e3481a1ff290274dc5fe268f7c715954879b35eec2f70e1247534288 WHIRLPOOL 29270c86ef5ce93cbffc3211158ace950e00327b4c44123bbd68affea7edaa4aea65e94c7f42f519d0c40a6194e9a97d5daebe80690d5601df0486e95e9fb0d9 MISC metadata.xml 261 SHA256 79e4408c376b1533805b02d5ba420f98d4b0c5bdbb63f79fd8de60805a06cf4d SHA512 0d5882a37b5b0602d2b96fb491b24855e90effa1817a40779707b83af8886cc68660b907872dcf78bbbb0215ae940ff442e1b9dfce3ae3fed37eb6ae230549b9 WHIRLPOOL a2946c161bcc5b1b1af790a5f93ea977126da3269f792586b7dde0ac9d645f3c8ad41b52c51f613916f532e772c0b510f7296b016a8e739d5288937f75a56d3b -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) -iEYEAREIAAYFAlGn4c0ACgkQvFcC4BYPU0qX9wCdGQnf6YYPCz3smveBqFn8x9/P -YiEAnRh8TC/LwrwWbJ8sdHPBu1QCNBTC -=pAbu +iEYEAREIAAYFAlGox8IACgkQvFcC4BYPU0oGBwCggk8sNB6cVkGJpbRY1TKKiANY +5UoAoLsZdLl3NH17v3tFNFs1DTRfz9bH +=F+dw -----END PGP SIGNATURE----- diff --git a/sys-libs/libcxxrt/libcxxrt-0.0_p20130531.ebuild b/sys-libs/libcxxrt/libcxxrt-0.0_p20130531.ebuild new file mode 100644 index 000000000000..2ecb1fa9e35b --- /dev/null +++ b/sys-libs/libcxxrt/libcxxrt-0.0_p20130531.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcxxrt/libcxxrt-0.0_p20130531.ebuild,v 1.1 2013/05/31 15:54:41 aballier Exp $ + +EAPI=4 + +EGIT_REPO_URI="git://github.com/pathscale/libcxxrt.git" + +[ "${PV%9999}" != "${PV}" ] && SCM="git-2" || SCM="" + +inherit base flag-o-matic toolchain-funcs portability ${SCM} + +DESCRIPTION="C++ Runtime from PathScale, FreeBSD and NetBSD." +HOMEPAGE="https://github.com/pathscale/libcxxrt http://www.pathscale.com/node/265" +if [ "${PV%9999}" = "${PV}" ] ; then + SRC_URI="mirror://gentoo/${P}.tar.xz" + DEPEND="app-arch/xz-utils" +else + SRC_URI="" +fi + +LICENSE="BSD-2" +SLOT="0" +if [ "${PV%9999}" = "${PV}" ] ; then + KEYWORDS="~amd64 ~x86 ~amd64-fbsd ~amd64-linux ~x86-linux" +else + KEYWORDS="" +fi +IUSE="static-libs" + +RDEPEND=">=sys-libs/libunwind-1.0.1-r1[static-libs?]" +DEPEND="${RDEPEND} + ${DEPEND}" + +src_prepare() { + base_src_prepare + cp "${FILESDIR}/Makefile" src/ || die + cp "${FILESDIR}/Makefile.test" test/Makefile || die +} + +src_compile() { + # Notes: we build -nodefaultlibs to avoid linking to gcc libs. + # libcxxrt needs: dladdr (dlopen_lib), libunwind (or libgcc_s but we build + # over libunwind) and the libc. + tc-export CC CXX AR + append-ldflags "-Wl,-z,defs" # make sure we are not underlinked + cd "${S}/src" + LIBS="$(dlopen_lib) -lunwind -lc" emake shared + use static-libs && emake static +} + +src_test() { + cd "${S}/test" + LD_LIBRARY_PATH="${S}/src:${LD_LIBRARY_PATH}" LIBS="-L${S}/src -lcxxrt -lc" emake check +} + +src_install() { + # TODO: See README. Maybe hide it in a subdir and let only libcxx know about + # it. FreeBSD head installs it in /lib + dolib.so src/${PN}.so* + use static-libs && dolib.a src/${PN}.a + + insinto /usr/include/libcxxrt/ + doins src/cxxabi.h src/unwind*.h + + dodoc AUTHORS COPYRIGHT README +} |