summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2012-05-28 13:58:04 +0000
committerAlexis Ballier <aballier@gentoo.org>2012-05-28 13:58:04 +0000
commitd72100336c568ecb69426e700efb986da9c024bf (patch)
treed5f1c263f9611479f1199495bee551a3ee57b669 /sys-libs/libcxxrt
parentalpha/ia64/m68k/s390/sh/sparc stable wrt #411177 (diff)
downloadgentoo-2-d72100336c568ecb69426e700efb986da9c024bf.tar.gz
gentoo-2-d72100336c568ecb69426e700efb986da9c024bf.tar.bz2
gentoo-2-d72100336c568ecb69426e700efb986da9c024bf.zip
Initial import, ebuild by me
(Portage version: 2.2.0_alpha108/cvs/Linux x86_64)
Diffstat (limited to 'sys-libs/libcxxrt')
-rw-r--r--sys-libs/libcxxrt/ChangeLog13
-rw-r--r--sys-libs/libcxxrt/files/0001-Link-to-libdl-where-needed-for-dladdr-exception.cc.patch24
-rwxr-xr-xsys-libs/libcxxrt/files/prepare_snapshot.sh16
-rw-r--r--sys-libs/libcxxrt/libcxxrt-0.0_p20120528.ebuild54
-rw-r--r--sys-libs/libcxxrt/libcxxrt-9999.ebuild54
-rw-r--r--sys-libs/libcxxrt/metadata.xml10
6 files changed, 171 insertions, 0 deletions
diff --git a/sys-libs/libcxxrt/ChangeLog b/sys-libs/libcxxrt/ChangeLog
new file mode 100644
index 000000000000..34cd83992446
--- /dev/null
+++ b/sys-libs/libcxxrt/ChangeLog
@@ -0,0 +1,13 @@
+# ChangeLog for sys-libs/libcxxrt
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcxxrt/ChangeLog,v 1.1 2012/05/28 13:58:04 aballier Exp $
+
+*libcxxrt-9999 (28 May 2012)
+*libcxxrt-0.0_p20120528 (28 May 2012)
+
+ 28 May 2012; Alexis Ballier <aballier@gentoo.org>
+ +files/0001-Link-to-libdl-where-needed-for-dladdr-exception.cc.patch,
+ +libcxxrt-0.0_p20120528.ebuild, +libcxxrt-9999.ebuild,
+ +files/prepare_snapshot.sh, +metadata.xml:
+ Initial import, ebuild by me
+
diff --git a/sys-libs/libcxxrt/files/0001-Link-to-libdl-where-needed-for-dladdr-exception.cc.patch b/sys-libs/libcxxrt/files/0001-Link-to-libdl-where-needed-for-dladdr-exception.cc.patch
new file mode 100644
index 000000000000..da14ad8a412d
--- /dev/null
+++ b/sys-libs/libcxxrt/files/0001-Link-to-libdl-where-needed-for-dladdr-exception.cc.patch
@@ -0,0 +1,24 @@
+From 924fc4689d447ab73dd5acc27f1c22f697d2d4d0 Mon Sep 17 00:00:00 2001
+From: Alexis Ballier <aballier@gentoo.org>
+Date: Sun, 27 May 2012 19:39:13 -0400
+Subject: [PATCH] Link to libdl where needed for dladdr() (exception.cc)
+
+---
+ src/CMakeLists.txt | 1 +
+ 1 files changed, 1 insertions(+), 0 deletions(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 0b44852..b4086d9 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -13,6 +13,7 @@ set(CXXRT_SOURCES
+
+ add_library(cxxrt-static STATIC ${CXXRT_SOURCES})
+ add_library(cxxrt-shared SHARED ${CXXRT_SOURCES})
++target_link_libraries(cxxrt-shared ${CMAKE_DL_LIBS})
+
+ set_target_properties(cxxrt-static cxxrt-shared PROPERTIES
+ OUTPUT_NAME "cxxrt"
+--
+1.7.8.6
+
diff --git a/sys-libs/libcxxrt/files/prepare_snapshot.sh b/sys-libs/libcxxrt/files/prepare_snapshot.sh
new file mode 100755
index 000000000000..004bea7b2040
--- /dev/null
+++ b/sys-libs/libcxxrt/files/prepare_snapshot.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+VERSION=$(date +%Y%m%d)
+BASE_VERSION="0.0"
+PACKAGE="libcxxrt-${BASE_VERSION}_p${VERSION}"
+
+git clone git://github.com/pathscale/libcxxrt.git ${PACKAGE}
+
+find "${PACKAGE}" -type d -name '.svn' -prune -print0 | xargs -0 rm -rf
+find "${PACKAGE}" -type d -name '.git' -prune -print0 | xargs -0 rm -rf
+
+tar cJf ${PACKAGE}.tar.xz ${PACKAGE}
+rm -rf ${PACKAGE}/
+
+echo "Tarball: \"${PACKAGE}.tar.xz\""
+
+echo "** all done **"
diff --git a/sys-libs/libcxxrt/libcxxrt-0.0_p20120528.ebuild b/sys-libs/libcxxrt/libcxxrt-0.0_p20120528.ebuild
new file mode 100644
index 000000000000..6f57e75cbfc6
--- /dev/null
+++ b/sys-libs/libcxxrt/libcxxrt-0.0_p20120528.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcxxrt/libcxxrt-0.0_p20120528.ebuild,v 1.1 2012/05/28 13:58:04 aballier Exp $
+
+EAPI=4
+
+EGIT_REPO_URI="git://github.com/pathscale/libcxxrt.git"
+
+[ "${PV%9999}" != "${PV}" ] && SCM="git-2" || SCM=""
+
+inherit cmake-utils ${SCM} base flag-o-matic
+
+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"
+else
+ KEYWORDS=""
+fi
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ ${DEPEND}"
+
+PATCHES=( "${FILESDIR}/0001-Link-to-libdl-where-needed-for-dladdr-exception.cc.patch" )
+
+src_prepare() {
+ base_src_prepare
+}
+
+src_install() {
+ # TODO: See README. Maybe hide it in a subdir and let only libcxx know about
+ # it. FreeBSD head installs it in /lib
+ cd "${CMAKE_BUILD_DIR}"
+ dolib.so lib/${PN}.so
+ dolib.a lib/${PN}.a
+
+ cd "${S}"
+
+ insinto /usr/include/libcxxrt/
+ doins src/cxxabi.h src/unwind*.h
+
+ dodoc AUTHORS COPYRIGHT README
+}
diff --git a/sys-libs/libcxxrt/libcxxrt-9999.ebuild b/sys-libs/libcxxrt/libcxxrt-9999.ebuild
new file mode 100644
index 000000000000..3d47de5158c0
--- /dev/null
+++ b/sys-libs/libcxxrt/libcxxrt-9999.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/libcxxrt/libcxxrt-9999.ebuild,v 1.1 2012/05/28 13:58:04 aballier Exp $
+
+EAPI=4
+
+EGIT_REPO_URI="git://github.com/pathscale/libcxxrt.git"
+
+[ "${PV%9999}" != "${PV}" ] && SCM="git-2" || SCM=""
+
+inherit cmake-utils ${SCM} base flag-o-matic
+
+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"
+else
+ KEYWORDS=""
+fi
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ ${DEPEND}"
+
+PATCHES=( "${FILESDIR}/0001-Link-to-libdl-where-needed-for-dladdr-exception.cc.patch" )
+
+src_prepare() {
+ base_src_prepare
+}
+
+src_install() {
+ # TODO: See README. Maybe hide it in a subdir and let only libcxx know about
+ # it. FreeBSD head installs it in /lib
+ cd "${CMAKE_BUILD_DIR}"
+ dolib.so lib/${PN}.so
+ dolib.a lib/${PN}.a
+
+ cd "${S}"
+
+ insinto /usr/include/libcxxrt/
+ doins src/cxxabi.h src/unwind*.h
+
+ dodoc AUTHORS COPYRIGHT README
+}
diff --git a/sys-libs/libcxxrt/metadata.xml b/sys-libs/libcxxrt/metadata.xml
new file mode 100644
index 000000000000..503e8a53624d
--- /dev/null
+++ b/sys-libs/libcxxrt/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>bsd</herd>
+ <maintainer>
+ <email>aballier@gentoo.org</email>
+ <name>Alexis Ballier</name>
+ </maintainer>
+</pkgmetadata>
+