summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2016-06-27 23:37:30 +0100
committerJames Le Cuirot <chewi@gentoo.org>2016-06-27 23:39:01 +0100
commitc739e31c1cb63ec308f765e028bdc50661e6f7f6 (patch)
tree913c63c80267e4612aa1794d88fd551abdf114bf /dev-libs/angelscript
parentmedia-libs/webrtc-audio-processing: Version bump (diff)
downloadgentoo-c739e31c1cb63ec308f765e028bdc50661e6f7f6.tar.gz
gentoo-c739e31c1cb63ec308f765e028bdc50661e6f7f6.tar.bz2
gentoo-c739e31c1cb63ec308f765e028bdc50661e6f7f6.zip
dev-libs/angelscript: Version bump to 2.31.1, closes bug #586292
This includes: - EAPI bump to 6 - Better static-libs handling - New DESTDIR handling following upstream changes - GNU stack patch, submitted upstream by email Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-libs/angelscript')
-rw-r--r--dev-libs/angelscript/Manifest1
-rw-r--r--dev-libs/angelscript/angelscript-2.31.1.ebuild53
-rw-r--r--dev-libs/angelscript/files/gnu-stack.patch18
3 files changed, 72 insertions, 0 deletions
diff --git a/dev-libs/angelscript/Manifest b/dev-libs/angelscript/Manifest
index a1b7bde1876e..f82637988307 100644
--- a/dev-libs/angelscript/Manifest
+++ b/dev-libs/angelscript/Manifest
@@ -1 +1,2 @@
DIST angelscript_2.30.2.zip 1640151 SHA256 8c08774bc1ca683124b4996ab4459f4b2b10bdacd860e76f28fb5b504332d7d7 SHA512 a95d1d0050cc18d71ecb20655e74c196654c69b34ae3d1ade6d3a90b952b20851a6255c7285f019046e22d4c3fd1a6100c917a66a7c0d4e00636e4a2c6003bd5 WHIRLPOOL 157f724736bfea7dc31549cb76e88107108eccf046016e848a282cfe70b3bb8968e60424df192c8235eae8b663b0bc6dfea572a68b0404d7e61ea3eaa56d30e2
+DIST angelscript_2.31.1.zip 1964292 SHA256 b04a9aed467e014130f8daf2fe52f41d3f6485c703d7dd1114cdd916b8e8e003 SHA512 d31b71e1cdf2ee82736a8fd3f5fa2a213e8b61cf990116d6f84b9159c8db3a99c5b017c9deb3f9927b67807a032d7bfffbb9417eea7e543bfd478a91f58b6ef0 WHIRLPOOL 8ac026bb5f1766729cfecfda93f143efbf50f32d9f0bd6be304cae8d40ec78f322b8ec67e924797c0cf55e3576aa22864b89222e365860315f971e095fa5fedb
diff --git a/dev-libs/angelscript/angelscript-2.31.1.ebuild b/dev-libs/angelscript/angelscript-2.31.1.ebuild
new file mode 100644
index 000000000000..9eb2302cc91e
--- /dev/null
+++ b/dev-libs/angelscript/angelscript-2.31.1.ebuild
@@ -0,0 +1,53 @@
+# 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"
+
+PATCHES=(
+ "${FILESDIR}/gnu-stack.patch"
+)
+
+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
+}
diff --git a/dev-libs/angelscript/files/gnu-stack.patch b/dev-libs/angelscript/files/gnu-stack.patch
new file mode 100644
index 000000000000..342789f91c48
--- /dev/null
+++ b/dev-libs/angelscript/files/gnu-stack.patch
@@ -0,0 +1,18 @@
+--- a/angelscript/source/as_callfunc_arm_gcc.S 2015-06-09 21:40:30.000000000 +0100
++++ b/angelscript/source/as_callfunc_arm_gcc.S 2016-06-27 23:23:46.912297799 +0100
+@@ -717,13 +717,13 @@
+
+ #endif /* hard float abi */
+
++#endif /* arm */
++
+ #if defined(__linux__) && defined(__ELF__)
+ /* ref: http://hardened.gentoo.org/gnu-stack.xml */
+ .section .note.GNU-stack,"",%progbits
+ #endif
+
+-#endif /* arm */
+-
+ #endif /* !AS_MAX_PORTABILITY */
+
+