summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-11-03 16:15:54 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-11-03 16:15:54 +0000
commite196c5b9f9daa16d7567319e9ec7d8f5bbaae6d5 (patch)
treed7a7cabbc4e923ac7c7cf0b81994a388579d0e3a /dev-libs/angelscript
parentRemove stale implementations from the ebuild. Reported by jlec. (diff)
downloadgentoo-2-e196c5b9f9daa16d7567319e9ec7d8f5bbaae6d5.tar.gz
gentoo-2-e196c5b9f9daa16d7567319e9ec7d8f5bbaae6d5.tar.bz2
gentoo-2-e196c5b9f9daa16d7567319e9ec7d8f5bbaae6d5.zip
version bump
(Portage version: 2.2.7/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.28.0.ebuild60
2 files changed, 66 insertions, 2 deletions
diff --git a/dev-libs/angelscript/ChangeLog b/dev-libs/angelscript/ChangeLog
index 1fb31d13bdfb..c65307bed4ec 100644
--- a/dev-libs/angelscript/ChangeLog
+++ b/dev-libs/angelscript/ChangeLog
@@ -1,6 +1,11 @@
# 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.10 2013/08/18 13:22:21 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/angelscript/ChangeLog,v 1.11 2013/11/03 16:15:54 hasufell Exp $
+
+*angelscript-2.28.0 (03 Nov 2013)
+
+ 03 Nov 2013; Julian Ospald <hasufell@gentoo.org> +angelscript-2.28.0.ebuild:
+ version bump
*angelscript-2.27.1 (18 Aug 2013)
@@ -55,4 +60,3 @@
18 Jan 2013; Julian Ospald <hasufell@gentoo.org> +angelscript-2.25.2.ebuild,
+files/angelscript-2.25.2-QA.patch, +metadata.xml:
initial import wrt #122061
-
diff --git a/dev-libs/angelscript/angelscript-2.28.0.ebuild b/dev-libs/angelscript/angelscript-2.28.0.ebuild
new file mode 100644
index 000000000000..3222482c48a9
--- /dev/null
+++ b/dev-libs/angelscript/angelscript-2.28.0.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.28.0.ebuild,v 1.1 2013/11/03 16:15:54 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/*
+}