diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-03-04 16:09:53 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-03-04 16:09:53 +0000 |
commit | 8e91d0585f0a15f9271bbec21971dbf52e317a3e (patch) | |
tree | 971fa23e06cf377cde4291ab95bec07acb2ab607 /dev-libs/angelscript | |
parent | added GPL-2 to LICENSE, see bug #426128 (diff) | |
download | gentoo-2-8e91d0585f0a15f9271bbec21971dbf52e317a3e.tar.gz gentoo-2-8e91d0585f0a15f9271bbec21971dbf52e317a3e.tar.bz2 gentoo-2-8e91d0585f0a15f9271bbec21971dbf52e317a3e.zip |
version bump
(Portage version: 2.2.0_alpha164/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'dev-libs/angelscript')
-rw-r--r-- | dev-libs/angelscript/ChangeLog | 8 | ||||
-rw-r--r-- | dev-libs/angelscript/angelscript-2.26.1.ebuild | 52 | ||||
-rw-r--r-- | dev-libs/angelscript/files/angelscript-2.26.1-QA.patch | 55 |
3 files changed, 114 insertions, 1 deletions
diff --git a/dev-libs/angelscript/ChangeLog b/dev-libs/angelscript/ChangeLog index bb94b7c5c307..c85607a365a9 100644 --- a/dev-libs/angelscript/ChangeLog +++ b/dev-libs/angelscript/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-libs/angelscript # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/angelscript/ChangeLog,v 1.4 2013/02/05 13:19:37 hasufell Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-libs/angelscript/ChangeLog,v 1.5 2013/03/04 16:09:53 hasufell Exp $ + +*angelscript-2.26.1 (04 Mar 2013) + + 04 Mar 2013; Julian Ospald <hasufell@gentoo.org> +angelscript-2.26.1.ebuild, + +files/angelscript-2.26.1-QA.patch: + version bump *angelscript-2.26.0 (05 Feb 2013) diff --git a/dev-libs/angelscript/angelscript-2.26.1.ebuild b/dev-libs/angelscript/angelscript-2.26.1.ebuild new file mode 100644 index 000000000000..afd59ad45ead --- /dev/null +++ b/dev-libs/angelscript/angelscript-2.26.1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/angelscript/angelscript-2.26.1.ebuild,v 1.1 2013/03/04 16:09:53 hasufell Exp $ + +EAPI=5 + +inherit eutils multilib toolchain-funcs + +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/${PN}/projects/gnuc +S2=${WORKDIR}/${P}_static + +src_prepare() { + epatch "${FILESDIR}"/${P}-QA.patch + + if use static-libs ; then + cp -a "${WORKDIR}"/sdk "${S2}"/ || die + fi +} + +src_compile() { + tc-export CXX AR RANLIB + + emake SHARED=1 VERSION=${PV} + + if use static-libs ; then + cd "${S2}"/${PN}/projects/gnuc || die + emake + fi +} + +src_install() { + doheader "${WORKDIR}"/sdk/${PN}/include/angelscript.h + dolib.so "${WORKDIR}"/sdk/${PN}/lib/libangelscript-${PV}.so + dosym libangelscript-${PV}.so /usr/$(get_libdir)/libangelscript.so + + if use static-libs ; then + dolib.a "${S2}"/${PN}/lib/libangelscript.a + fi + + use doc && dohtml -r "${WORKDIR}"/sdk/docs/* +} diff --git a/dev-libs/angelscript/files/angelscript-2.26.1-QA.patch b/dev-libs/angelscript/files/angelscript-2.26.1-QA.patch new file mode 100644 index 000000000000..484aebf4cc15 --- /dev/null +++ b/dev-libs/angelscript/files/angelscript-2.26.1-QA.patch @@ -0,0 +1,55 @@ +--- sdk/angelscript/projects/gnuc/makefile ++++ sdk/angelscript/projects/gnuc/makefile +@@ -3,6 +3,7 @@ +
+ # For 'make install' to work, set LOCAL according to your system configuration
+ LOCAL = /usr/local
++INSTALL_LIBDIR = lib
+
+ # If you want to build a shared library, then run make with SHARED=1 and VERSION=version
+ ifdef SHARED
+@@ -44,10 +45,10 @@ + else
+ OBJDIR = obj
+ LIBDIR = ../../lib
+- CXX ?= gcc
++ CXX ?= g++
+ # On i686 architecture you may need to add -march=i686 if you get
+ # an undefined symbol for __sync_sub_and_fetch_4 in as_atomic.cpp.
+- CXXFLAGS += -g -Wall -fPIC -fno-strict-aliasing
++ CXXFLAGS += -Wall -fPIC -fno-strict-aliasing
+ endif
+
+ AR ?= ar
+@@ -106,7 +107,7 @@ +
+ $(BIN): $(OBJDIR) $(LIBDIR) $(OBJ)
+ ifdef SHARED
+- $(CXX) -shared -Wl,-soname,$(LIB) -o $(BIN) $(OBJ)
++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -Wl,-soname,$(LIB) -o $(BIN) $(OBJ)
+ ( cd $(LIBDIR); ln -s $(LIB) $(DEVLIB) )
+ else
+ $(AR) r $(BIN) $(OBJ)
+@@ -135,18 +136,18 @@ + $(DELETER) $(OBJ) $(BIN) $(LIBDIR)/$(DEVLIB)
+
+ install: $(BIN)
+- @echo Installing to: $(LOCAL)/lib and $(LOCAL)/include...
++ @echo Installing to: $(LOCAL)/$(INSTALL_LIBDIR) and $(LOCAL)/include...
+ @echo -------------------------------------------------------------------
+ ifdef SHARED
+- $(COPIER) $(LIBDIR)/$(DEVLIB) $(LOCAL)/lib
++ $(COPIER) $(LIBDIR)/$(DEVLIB) $(LOCAL)/$(INSTALL_LIBDIR)
+ endif
+- $(COPIER) $(BIN) $(LOCAL)/lib
++ $(COPIER) $(BIN) $(LOCAL)/$(INSTALL_LIBDIR)
+ $(COPIER) $(INCDIR)/$(INC) $(LOCAL)/include
+ @echo -------------------------------------------------------------------
+ @echo Angelscript library installed. Enjoy!
+
+ uninstall:
+- $(DELETER) $(LOCAL)/include/$(INC) $(LOCAL)/lib/$(LIB) $(LOCAL)/lib/$(DEVLIB)
++ $(DELETER) $(LOCAL)/include/$(INC) $(LOCAL)/$(INSTALL_LIBDIR)/$(LIB) $(LOCAL)/$(INSTALL_LIBDIR)/$(DEVLIB)
+ @echo -------------------------------------------------------------------
+ @echo Angelscript library uninstalled.
+
|