summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2015-10-01 15:51:50 +0200
committerBernard Cafarelli <voyageur@gentoo.org>2015-10-01 15:51:57 +0200
commit161b74ae4e439726bab5aa25ca376b1429175151 (patch)
tree0c70b7726a94d06c04a86273397ba71e8b14e071 /gnustep-base/libobjc2/libobjc2-1.8.1.ebuild
parentgnustep-base/libobjc2: drop some old versions (diff)
downloadgentoo-161b74ae4e439726bab5aa25ca376b1429175151.tar.gz
gentoo-161b74ae4e439726bab5aa25ca376b1429175151.tar.bz2
gentoo-161b74ae4e439726bab5aa25ca376b1429175151.zip
gnustep-base/libobjc2: version bump
Package-Manager: portage-2.2.22
Diffstat (limited to 'gnustep-base/libobjc2/libobjc2-1.8.1.ebuild')
-rw-r--r--gnustep-base/libobjc2/libobjc2-1.8.1.ebuild44
1 files changed, 44 insertions, 0 deletions
diff --git a/gnustep-base/libobjc2/libobjc2-1.8.1.ebuild b/gnustep-base/libobjc2/libobjc2-1.8.1.ebuild
new file mode 100644
index 000000000000..a04f02b04a8d
--- /dev/null
+++ b/gnustep-base/libobjc2/libobjc2-1.8.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit cmake-utils eutils
+
+DESCRIPTION="GNUstep Objective-C runtime"
+HOMEPAGE="http://www.gnustep.org"
+SRC_URI="https://github.com/gnustep/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="boehm-gc cxx test"
+
+RDEPEND="boehm-gc? ( dev-libs/boehm-gc )
+ cxx? ( sys-libs/libcxx )"
+DEPEND="${DEPEND}
+ >=sys-devel/clang-2.9"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.7-fix_soname.patch
+
+ if ! use cxx;
+ then
+ sed -e 's/addtest_flags(CXXExceptions.*//' \
+ -i Test/CMakeLists.txt || die "test sed failed"
+ fi
+}
+
+src_configure() {
+ export CC=clang
+ export CXX=clang++
+
+ export PREFIX=/usr
+ local mycmakeargs=(
+ -DGNUSTEP_CONFIG=GNUSTEP_CONFIG-NOTFOUND
+ $(cmake-utils_use boehm-gc BOEHM_GC)
+ $(cmake-utils_use_enable cxx OBJCXX)
+ $(cmake-utils_use test TESTS)
+ )
+ cmake-utils_src_configure
+}