diff options
author | James Le Cuirot <chewi@gentoo.org> | 2022-09-29 22:07:57 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2022-09-29 22:08:33 +0100 |
commit | 170f8a9284212b3be79d2258bd76c35bdca68fed (patch) | |
tree | 20a0f57ee957a0c9f333b89655f3619a08ea37cd /dev-libs/angelscript | |
parent | dev-util/cargo-audit: drop 0.15.2-r1 (diff) | |
download | gentoo-170f8a9284212b3be79d2258bd76c35bdca68fed.tar.gz gentoo-170f8a9284212b3be79d2258bd76c35bdca68fed.tar.bz2 gentoo-170f8a9284212b3be79d2258bd76c35bdca68fed.zip |
dev-libs/angelscript: I forgot the ebuild... again
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'dev-libs/angelscript')
-rw-r--r-- | dev-libs/angelscript/angelscript-2.36.0.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-libs/angelscript/angelscript-2.36.0.ebuild b/dev-libs/angelscript/angelscript-2.36.0.ebuild new file mode 100644 index 000000000000..96929201e78b --- /dev/null +++ b/dev-libs/angelscript/angelscript-2.36.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 ~arm64 ~ppc64 ~riscv ~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 +} |