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/
Date: Thu, 29 Sep 2022 21:08:50
Message-Id: 1664485713.170f8a9284212b3be79d2258bd76c35bdca68fed.chewi@gentoo
1 commit: 170f8a9284212b3be79d2258bd76c35bdca68fed
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 29 21:07:57 2022 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 29 21:08:33 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=170f8a92
7
8 dev-libs/angelscript: I forgot the ebuild... again
9
10 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
11
12 dev-libs/angelscript/angelscript-2.36.0.ebuild | 48 ++++++++++++++++++++++++++
13 1 file changed, 48 insertions(+)
14
15 diff --git a/dev-libs/angelscript/angelscript-2.36.0.ebuild b/dev-libs/angelscript/angelscript-2.36.0.ebuild
16 new file mode 100644
17 index 000000000000..96929201e78b
18 --- /dev/null
19 +++ b/dev-libs/angelscript/angelscript-2.36.0.ebuild
20 @@ -0,0 +1,48 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +inherit toolchain-funcs multilib-minimal
27 +
28 +DESCRIPTION="A flexible, cross-platform scripting library"
29 +HOMEPAGE="http://www.angelcode.com/angelscript/"
30 +SRC_URI="http://www.angelcode.com/angelscript/sdk/files/angelscript_${PV}.zip"
31 +LICENSE="ZLIB"
32 +SLOT="0/${PV}"
33 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
34 +IUSE="doc static-libs"
35 +
36 +BDEPEND="app-arch/unzip"
37 +
38 +S="${WORKDIR}/sdk"
39 +
40 +pkg_setup() {
41 + tc-export CXX AR RANLIB
42 +}
43 +
44 +src_prepare() {
45 + default
46 + multilib_copy_sources
47 +}
48 +
49 +multilib_src_compile() {
50 + emake -C ${PN}/projects/gnuc shared \
51 + $(use static-libs && echo static)
52 +}
53 +
54 +multilib_src_install() {
55 + emake -C ${PN}/projects/gnuc \
56 + DESTDIR="${D}" \
57 + PREFIX="${EPREFIX}"/usr \
58 + LIBDIR_DEST='$(PREFIX)'/$(get_libdir) \
59 + install_header install_shared \
60 + $(use static-libs && echo install_static)
61 +}
62 +
63 +multilib_src_install_all() {
64 + if use doc; then
65 + docinto html
66 + dodoc -r docs/*
67 + fi
68 +}