summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-05-04 22:05:59 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-05-04 22:05:59 +0000
commit72ed0d2066b6a7b5e0901cbef63ce3e0c7523c13 (patch)
tree6edf9780a255d927fde7a68799d563cb8fcdfa8f /dev-libs/angelscript
parentdev-libs/libzeitgeist: Fix obsolete macros to work with automake-1.13 (diff)
downloadgentoo-2-72ed0d2066b6a7b5e0901cbef63ce3e0c7523c13.tar.gz
gentoo-2-72ed0d2066b6a7b5e0901cbef63ce3e0c7523c13.tar.bz2
gentoo-2-72ed0d2066b6a7b5e0901cbef63ce3e0c7523c13.zip
add multilib support
(Portage version: 2.2.0_alpha174/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'dev-libs/angelscript')
-rw-r--r--dev-libs/angelscript/ChangeLog8
-rw-r--r--dev-libs/angelscript/angelscript-2.26.2-r1.ebuild60
2 files changed, 67 insertions, 1 deletions
diff --git a/dev-libs/angelscript/ChangeLog b/dev-libs/angelscript/ChangeLog
index 547ca1c4699e..2da2536126d9 100644
--- a/dev-libs/angelscript/ChangeLog
+++ b/dev-libs/angelscript/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-libs/angelscript
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/angelscript/ChangeLog,v 1.6 2013/04/01 12:57:50 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/angelscript/ChangeLog,v 1.7 2013/05/04 22:05:59 hasufell Exp $
+
+*angelscript-2.26.2-r1 (04 May 2013)
+
+ 04 May 2013; Julian Ospald <hasufell@gentoo.org>
+ +angelscript-2.26.2-r1.ebuild:
+ add multilib support
*angelscript-2.26.2 (01 Apr 2013)
diff --git a/dev-libs/angelscript/angelscript-2.26.2-r1.ebuild b/dev-libs/angelscript/angelscript-2.26.2-r1.ebuild
new file mode 100644
index 000000000000..900b2ed00b8d
--- /dev/null
+++ b/dev-libs/angelscript/angelscript-2.26.2-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/angelscript/angelscript-2.26.2-r1.ebuild,v 1.1 2013/05/04 22:05:59 hasufell Exp $
+
+EAPI=5
+
+inherit toolchain-funcs multilib-minimal
+
+DESCRIPTION="A flexible, cross-platform scripting library"
+HOMEPAGE="http://www.angelcode.com/angelscript/"
+SRC_URI="http://www.angelcode.com/angelscript/sdk/files/angelscript_${PV}.zip"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc static-libs"
+
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}/sdk
+S2=${WORKDIR}/sdk_static
+
+pkg_setup() {
+ tc-export CXX AR RANLIB
+}
+
+src_prepare() {
+ if use static-libs ; then
+ cp -pR "${WORKDIR}"/sdk "${S2}"/ || die
+ fi
+ multilib_copy_sources
+}
+
+multilib_src_compile() {
+ einfo "Shared build"
+ emake -C ${PN}/projects/gnuc SHARED=1 VERSION=${PV}
+
+ if [[ ${ABI} == ${DEFAULT_ABI} ]] ; then
+ if use static-libs ; then
+ einfo "Static build"
+ emake -C "${S2}"/${PN}/projects/gnuc
+ fi
+ fi
+}
+
+multilib_src_install() {
+ doheader ${PN}/include/angelscript.h
+ dolib.so ${PN}/lib/libangelscript-${PV}.so
+ dosym libangelscript-${PV}.so /usr/$(get_libdir)/libangelscript.so
+
+ if [[ ${ABI} == ${DEFAULT_ABI} ]] ; then
+ if use static-libs ; then
+ dolib.a "${S2}"/${PN}/lib/libangelscript.a
+ fi
+ fi
+}
+
+multilib_src_install_all() {
+ use doc && dohtml -r "${WORKDIR}"/sdk/docs/*
+}