dev-libs/angelscript: Version bump to 2.33.0, EAPI 7
authorJames Le Cuirot <chewi@gentoo.org>
Sun, 13 Jan 2019 22:45:40 +0000 (22:45 +0000)
committerJames Le Cuirot <chewi@gentoo.org>
Sun, 13 Jan 2019 22:45:40 +0000 (22:45 +0000)
Package-Manager: Portage-2.3.55, Repoman-2.3.12
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
dev-libs/angelscript/Manifest
dev-libs/angelscript/angelscript-2.33.0.ebuild [new file with mode: 0644]

index 03c16287f8ebdd4af1900082e2d204c68d4d301d..322a536071eae1a9e121bf84bee36aeb5b268665 100644 (file)
@@ -1 +1,2 @@
 DIST angelscript_2.32.0.zip 1989108 BLAKE2B c922682febbef2493906a7f3420f2a3456a35ce296503d4557862686469a14728a4b515a79a23e0f498ac6488b26d2950daff11a32bfd20df82b34663a1fc553 SHA512 a88bd8e7e9f7116450ea8185642d7f6bfccf1530bff3630957839031aaed80075ecf27b9c551d4282051a8fb28d0b8814b56abf84a45d6008de2afa4019edf8e
+DIST angelscript_2.33.0.zip 1954948 BLAKE2B 61fa597cb36142230dd07103d6782bb2e195268b664643314d4bae3908ceb530ce5661376a163cc91bb13ecd386d540554e5cce74c289983536cf7f70dc881a1 SHA512 eaf972ecf965fe4f72e55755f5e796499018e918f93cfd835b1ca20f9338e299e8dbd707240341eef81ae920f07d2280646151f515f5990a62550689445c86f0
diff --git a/dev-libs/angelscript/angelscript-2.33.0.ebuild b/dev-libs/angelscript/angelscript-2.33.0.ebuild
new file mode 100644 (file)
index 0000000..d2bea73
--- /dev/null
@@ -0,0 +1,48 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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"
+
+BDEPEND="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
+}