summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2015-10-20 16:35:12 +0200
committerJulian Ospald <hasufell@gentoo.org>2015-10-20 16:39:31 +0200
commite7cf37200ee1f2985bcd065be65020c9adcede4b (patch)
treea6085530e7def82d06198908912b28b7177f08d1 /dev-libs/angelscript
parentsys-devel/bmake: bump to 20151010 (diff)
downloadgentoo-e7cf37200ee1f2985bcd065be65020c9adcede4b.tar.gz
gentoo-e7cf37200ee1f2985bcd065be65020c9adcede4b.tar.bz2
gentoo-e7cf37200ee1f2985bcd065be65020c9adcede4b.zip
dev-libs/angelscript: fix SONAME
Diffstat (limited to 'dev-libs/angelscript')
-rw-r--r--dev-libs/angelscript/angelscript-2.30.2-r1.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-libs/angelscript/angelscript-2.30.2-r1.ebuild b/dev-libs/angelscript/angelscript-2.30.2-r1.ebuild
new file mode 100644
index 000000000000..14ec9e9b085c
--- /dev/null
+++ b/dev-libs/angelscript/angelscript-2.30.2-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+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"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc static-libs"
+
+DEPEND="app-arch/unzip"
+
+S=${WORKDIR}/sdk
+
+pkg_setup() {
+ tc-export CXX AR RANLIB
+}
+
+src_prepare() {
+ multilib_copy_sources
+}
+
+multilib_src_compile() {
+ emake -C ${PN}/projects/gnuc LIBRARYDEST=
+}
+
+multilib_src_install() {
+ emake -C ${PN}/projects/gnuc LIBRARYDEST="${D}"/usr/$(get_libdir)/ INCLUDEDEST="${D}"/usr/include/ install
+ use static-libs || { rm "${D}"/usr/$(get_libdir)/libangelscript.a || die ; }
+}
+
+multilib_src_install_all() {
+ use doc && dohtml -r "${WORKDIR}"/sdk/docs/*
+}