Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/angelscript/, dev-libs/angelscript/files/
Date: Mon, 27 Jun 2016 22:39:20
Message-Id: 1467067141.c739e31c1cb63ec308f765e028bdc50661e6f7f6.chewi@gentoo
1 commit: c739e31c1cb63ec308f765e028bdc50661e6f7f6
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 27 22:37:30 2016 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 27 22:39:01 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c739e31c
7
8 dev-libs/angelscript: Version bump to 2.31.1, closes bug #586292
9
10 This includes:
11
12 - EAPI bump to 6
13 - Better static-libs handling
14 - New DESTDIR handling following upstream changes
15 - GNU stack patch, submitted upstream by email
16
17 Package-Manager: portage-2.3.0
18
19 dev-libs/angelscript/Manifest | 1 +
20 dev-libs/angelscript/angelscript-2.31.1.ebuild | 53 ++++++++++++++++++++++++++
21 dev-libs/angelscript/files/gnu-stack.patch | 18 +++++++++
22 3 files changed, 72 insertions(+)
23
24 diff --git a/dev-libs/angelscript/Manifest b/dev-libs/angelscript/Manifest
25 index a1b7bde..f826379 100644
26 --- a/dev-libs/angelscript/Manifest
27 +++ b/dev-libs/angelscript/Manifest
28 @@ -1 +1,2 @@
29 DIST angelscript_2.30.2.zip 1640151 SHA256 8c08774bc1ca683124b4996ab4459f4b2b10bdacd860e76f28fb5b504332d7d7 SHA512 a95d1d0050cc18d71ecb20655e74c196654c69b34ae3d1ade6d3a90b952b20851a6255c7285f019046e22d4c3fd1a6100c917a66a7c0d4e00636e4a2c6003bd5 WHIRLPOOL 157f724736bfea7dc31549cb76e88107108eccf046016e848a282cfe70b3bb8968e60424df192c8235eae8b663b0bc6dfea572a68b0404d7e61ea3eaa56d30e2
30 +DIST angelscript_2.31.1.zip 1964292 SHA256 b04a9aed467e014130f8daf2fe52f41d3f6485c703d7dd1114cdd916b8e8e003 SHA512 d31b71e1cdf2ee82736a8fd3f5fa2a213e8b61cf990116d6f84b9159c8db3a99c5b017c9deb3f9927b67807a032d7bfffbb9417eea7e543bfd478a91f58b6ef0 WHIRLPOOL 8ac026bb5f1766729cfecfda93f143efbf50f32d9f0bd6be304cae8d40ec78f322b8ec67e924797c0cf55e3576aa22864b89222e365860315f971e095fa5fedb
31
32 diff --git a/dev-libs/angelscript/angelscript-2.31.1.ebuild b/dev-libs/angelscript/angelscript-2.31.1.ebuild
33 new file mode 100644
34 index 0000000..9eb2302
35 --- /dev/null
36 +++ b/dev-libs/angelscript/angelscript-2.31.1.ebuild
37 @@ -0,0 +1,53 @@
38 +# Copyright 1999-2016 Gentoo Foundation
39 +# Distributed under the terms of the GNU General Public License v2
40 +# $Id$
41 +
42 +EAPI=6
43 +
44 +inherit toolchain-funcs multilib-minimal
45 +
46 +DESCRIPTION="A flexible, cross-platform scripting library"
47 +HOMEPAGE="http://www.angelcode.com/angelscript/"
48 +SRC_URI="http://www.angelcode.com/angelscript/sdk/files/angelscript_${PV}.zip"
49 +LICENSE="ZLIB"
50 +SLOT="0/${PV}"
51 +KEYWORDS="~amd64 ~x86"
52 +IUSE="doc static-libs"
53 +
54 +DEPEND="app-arch/unzip"
55 +
56 +S="${WORKDIR}/sdk"
57 +
58 +PATCHES=(
59 + "${FILESDIR}/gnu-stack.patch"
60 +)
61 +
62 +pkg_setup() {
63 + tc-export CXX AR RANLIB
64 +}
65 +
66 +src_prepare() {
67 + default
68 + multilib_copy_sources
69 +}
70 +
71 +multilib_src_compile() {
72 + emake -C ${PN}/projects/gnuc shared \
73 + $(use static-libs && echo static)
74 +}
75 +
76 +multilib_src_install() {
77 + emake -C ${PN}/projects/gnuc \
78 + DESTDIR="${D%/}" \
79 + PREFIX="${EPREFIX}"/usr \
80 + LIBDIR_DEST='$(PREFIX)'/$(get_libdir) \
81 + install_header install_shared \
82 + $(use static-libs && echo install_static)
83 +}
84 +
85 +multilib_src_install_all() {
86 + if use doc; then
87 + docinto html
88 + dodoc -r docs/*
89 + fi
90 +}
91
92 diff --git a/dev-libs/angelscript/files/gnu-stack.patch b/dev-libs/angelscript/files/gnu-stack.patch
93 new file mode 100644
94 index 0000000..342789f
95 --- /dev/null
96 +++ b/dev-libs/angelscript/files/gnu-stack.patch
97 @@ -0,0 +1,18 @@
98 +--- a/angelscript/source/as_callfunc_arm_gcc.S 2015-06-09 21:40:30.000000000 +0100
99 ++++ b/angelscript/source/as_callfunc_arm_gcc.S 2016-06-27 23:23:46.912297799 +0100
100 +@@ -717,13 +717,13 @@
101 +
102 + #endif /* hard float abi */
103 +
104 ++#endif /* arm */
105 ++
106 + #if defined(__linux__) && defined(__ELF__)
107 + /* ref: http://hardened.gentoo.org/gnu-stack.xml */
108 + .section .note.GNU-stack,"",%progbits
109 + #endif
110 +
111 +-#endif /* arm */
112 +-
113 + #endif /* !AS_MAX_PORTABILITY */
114 +
115 +