dev-libs/angelscript - 2.37.0 (gentoo)

Search

Package Information

Description:
A flexible, cross-platform scripting library
Homepage:
http://www.angelcode.com/angelscript/
License:
ZLIB

Ebuild Details

Version EAPI Keywords Slot
2.37.0 8 ~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86 0/2.37.0
View Raw Ebuild
# Copyright 1999-2024 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"
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_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
}

USE Flags

doc

Dependencies

BDEPEND

app-arch/unzip

Manifest for 2.37.0

Type File Size Source URLs
DIST angelscript_2.37.0.zip 2028172 bytes http://www.angelcode.com/angelscript/sdk/files/angelscript_2.37.0.zip