summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-libs/angelscript/Manifest1
-rw-r--r--dev-libs/angelscript/angelscript-2.31.2.ebuild49
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-libs/angelscript/Manifest b/dev-libs/angelscript/Manifest
index 7d59943de96..39efba2e704 100644
--- a/dev-libs/angelscript/Manifest
+++ b/dev-libs/angelscript/Manifest
@@ -1 +1,2 @@
DIST angelscript_2.31.1.zip 1964292 SHA256 b04a9aed467e014130f8daf2fe52f41d3f6485c703d7dd1114cdd916b8e8e003 SHA512 d31b71e1cdf2ee82736a8fd3f5fa2a213e8b61cf990116d6f84b9159c8db3a99c5b017c9deb3f9927b67807a032d7bfffbb9417eea7e543bfd478a91f58b6ef0 WHIRLPOOL 8ac026bb5f1766729cfecfda93f143efbf50f32d9f0bd6be304cae8d40ec78f322b8ec67e924797c0cf55e3576aa22864b89222e365860315f971e095fa5fedb
+DIST angelscript_2.31.2.zip 1969871 SHA256 0c0b8097c7c8355c9e95c193a6bf3778fb783604af133d37c09c3465c6f381b2 SHA512 4dd4c64caf4fc66a9fbda55d0fb81b91a6af5f5d4f28728343ff06455418ebaf5a36895e04e0bc2aebd76b510e81357f7e0ffd7e575b49bbc9573c106f24b265 WHIRLPOOL 36c042aa09431e1cb8c542c013eed45e06ff32350c5639beb401a686a20c3b2438f9e8998c4244aaf20c58440deb05fc625a2832602e230d8afaf1ff35b98d2d
diff --git a/dev-libs/angelscript/angelscript-2.31.2.ebuild b/dev-libs/angelscript/angelscript-2.31.2.ebuild
new file mode 100644
index 00000000000..5a1f9f44274
--- /dev/null
+++ b/dev-libs/angelscript/angelscript-2.31.2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+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/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc static-libs"
+
+DEPEND="app-arch/unzip"
+
+S="${WORKDIR}/sdk"
+
+pkg_setup() {
+ tc-export CXX AR RANLIB
+}
+
+src_prepare() {
+ default
+ multilib_copy_sources
+}
+
+multilib_src_compile() {
+ emake -C ${PN}/projects/gnuc shared \
+ $(use static-libs && echo static)
+}
+
+multilib_src_install() {
+ emake -C ${PN}/projects/gnuc \
+ DESTDIR="${D%/}" \
+ PREFIX="${EPREFIX}"/usr \
+ LIBDIR_DEST='$(PREFIX)'/$(get_libdir) \
+ install_header install_shared \
+ $(use static-libs && echo install_static)
+}
+
+multilib_src_install_all() {
+ if use doc; then
+ docinto html
+ dodoc -r docs/*
+ fi
+}