gentoo/dev-libs/angelscript/angelscript-2.38.0.ebuild
James Le Cuirot 82fc83fd1c
dev-libs/angelscript: Version bump to 2.38.0
This drops multilib support, which never made sense here.

Signed-off-by: James Le Cuirot <chewi@gentoo.org>
2025-09-02 22:57:44 +01:00

41 lines
898 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="A flexible, cross-platform scripting library"
HOMEPAGE="https://www.angelcode.com/angelscript/"
SRC_URI="https://www.angelcode.com/angelscript/sdk/files/angelscript_${PV}.zip"
S="${WORKDIR}/sdk"
LICENSE="ZLIB"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
IUSE="doc static-libs"
BDEPEND="app-arch/unzip"
pkg_setup() {
tc-export CXX AR RANLIB
}
src_compile() {
emake -C ${PN}/projects/gnuc shared \
$(use static-libs && echo static)
}
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)
if use doc; then
docinto html
dodoc -r docs/*
fi
}