commit:     e7cf37200ee1f2985bcd065be65020c9adcede4b
Author:     Julian Ospald <hasufell <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 20 14:35:12 2015 +0000
Commit:     Julian Ospald <hasufell <AT> gentoo <DOT> org>
CommitDate: Tue Oct 20 14:39:31 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7cf3720

dev-libs/angelscript: fix SONAME

 dev-libs/angelscript/angelscript-2.30.2-r1.ebuild | 41 +++++++++++++++++++++++
 1 file changed, 41 insertions(+)

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 0000000..14ec9e9
--- /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/*
+}

Reply via email to