diff options
Diffstat (limited to 'dev-ml/camlidl')
-rw-r--r-- | dev-ml/camlidl/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ml/camlidl/Manifest | 16 | ||||
-rw-r--r-- | dev-ml/camlidl/camlidl-1.05.ebuild | 15 | ||||
-rw-r--r-- | dev-ml/camlidl/files/includes.patch | 12 | ||||
-rw-r--r-- | dev-ml/camlidl/files/tests.patch | 36 |
5 files changed, 79 insertions, 8 deletions
diff --git a/dev-ml/camlidl/ChangeLog b/dev-ml/camlidl/ChangeLog index 547c1a3bfe11..5c85f7fa7997 100644 --- a/dev-ml/camlidl/ChangeLog +++ b/dev-ml/camlidl/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-ml/camlidl -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlidl/ChangeLog,v 1.3 2008/01/03 19:33:58 aballier Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlidl/ChangeLog,v 1.4 2009/04/15 04:55:39 aballier Exp $ + + 15 Apr 2009; Alexis Ballier <aballier@gentoo.org> +files/includes.patch, + +files/tests.patch, camlidl-1.05.ebuild: + Fix tests build and implicit declarations of functions for bug #263305 03 Jan 2008; Alexis Ballier <aballier@gentoo.org> camlidl-1.05.ebuild: ocamlopt is required here, there is no option to disable it diff --git a/dev-ml/camlidl/Manifest b/dev-ml/camlidl/Manifest index 2d1895dbcbf7..86b65b5826b4 100644 --- a/dev-ml/camlidl/Manifest +++ b/dev-ml/camlidl/Manifest @@ -1,4 +1,16 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX includes.patch 361 RMD160 41a7b7e5684f47bda800ae6e9344b11ae2ae5ee4 SHA1 d91cac54577231251146c3b997e3ba8cc6ba33af SHA256 b773691406b3a9d22bc21651cf3c6a5b03402110ba8e6d6564ff8d09863aecce +AUX tests.patch 1061 RMD160 2a0c6ba072bd0789234bb9955e48a8cdb4d22e04 SHA1 186cf6efe809e9f369953d46494efba90ac33661 SHA256 b71db8a06d633898e3ab6ec4b6254075e48feef912e160c36dfdf6f84d1ce961 DIST camlidl-1.05.tar.gz 100640 RMD160 2b103dc407986fc29501fd2b2b41ec212b28dd10 SHA1 2a0d5ba70fea8c1de1c5387f8b2058357b2177df SHA256 857ed5bd3b2f99c62813070e1a5b4b6375e837c6815f4ad956baeb6f8c660311 -EBUILD camlidl-1.05.ebuild 1466 RMD160 cf1145cdba5f35fd247e3614b071c0916b3ea864 SHA1 1117cd12ec95078b9385f176a66ee459d156382e SHA256 496bcdc937e9b7b533e3a31573cb00870bc502f7d26400a9147e65726f25f9f7 -MISC ChangeLog 700 RMD160 81280896c4acd94f59dbd4b0e0953faaa84ed586 SHA1 e7d6cce12207837dd450ca98089d8d0efca7cdad SHA256 ad3a54fb88bc97623406302041a83b0e9a9f2cddb047ef7b0cf9581342cad162 +EBUILD camlidl-1.05.ebuild 1607 RMD160 d8ed95d6951f073347deeb5425a1157bbcc87747 SHA1 1cb5191d8db8e366e5aa8704524be4f263f590d3 SHA256 acd17259ca949e02368de237f02c8e856436d9b9a14b71c38e758c0b37b5966a +MISC ChangeLog 892 RMD160 6aae99e4a929ebdd1d5184c865e1e0e81b00ba6f SHA1 199424c615db56576fc5685f013ffd709a2f3dcd SHA256 f938b64ecf36bf050a54920a48cf0e6469f27ffa06572931b64c13a0620a3cae MISC metadata.xml 157 RMD160 30153301a2a5cca5547a6e47941aae2895837613 SHA1 66e87d50f913856e703f3ee29841b03332af40db SHA256 d14b8b08774f2a40f42d70ff40b1b4f1c4725e7095d702143a32909553eac799 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.11 (GNU/Linux) + +iEYEARECAAYFAknlaNAACgkQvFcC4BYPU0opMQCfXyETXxB8qh4kY7Aa52Dxm9PM +IVIAn0D1owPcSulM+szBiK25I1YzORZF +=/K7y +-----END PGP SIGNATURE----- diff --git a/dev-ml/camlidl/camlidl-1.05.ebuild b/dev-ml/camlidl/camlidl-1.05.ebuild index da88e110ddb7..f11cbf52094b 100644 --- a/dev-ml/camlidl/camlidl-1.05.ebuild +++ b/dev-ml/camlidl/camlidl-1.05.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2008 Gentoo Foundation +# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlidl/camlidl-1.05.ebuild,v 1.2 2008/01/03 19:33:58 aballier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ml/camlidl/camlidl-1.05.ebuild,v 1.3 2009/04/15 04:55:39 aballier Exp $ -inherit eutils +inherit eutils toolchain-funcs DESCRIPTION="CamlIDL is a stub code generator for using C/C++ libraries from O'Caml" HOMEPAGE="http://caml.inria.fr/camlidl/" @@ -22,6 +22,13 @@ pkg_setup() { fi } +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/tests.patch" + epatch "${FILESDIR}/includes.patch" +} + src_compile() { # Use the UNIX makefile libdir=`ocamlc -where` @@ -36,7 +43,7 @@ src_compile() { src_test() { einfo "Running tests..." cd tests - ( make CCPP=g++ && einfo "Tests finished successfully" ) || die "Tests failed" + ( emake CCPP="$(tc-getCXX)" && einfo "Tests finished successfully" ) || die "Tests failed" } src_install() { diff --git a/dev-ml/camlidl/files/includes.patch b/dev-ml/camlidl/files/includes.patch new file mode 100644 index 000000000000..060aceefd0a5 --- /dev/null +++ b/dev-ml/camlidl/files/includes.patch @@ -0,0 +1,12 @@ +Index: camlidl-1.05/runtime/comerror.c +=================================================================== +--- camlidl-1.05.orig/runtime/comerror.c ++++ camlidl-1.05/runtime/comerror.c +@@ -22,6 +22,7 @@ + #include <caml/callback.h> + #include <caml/fail.h> + #include <caml/alloc.h> ++#include <caml/printexc.h> + #include "camlidlruntime.h" + #include "comstuff.h" + diff --git a/dev-ml/camlidl/files/tests.patch b/dev-ml/camlidl/files/tests.patch new file mode 100644 index 000000000000..f7272424be80 --- /dev/null +++ b/dev-ml/camlidl/files/tests.patch @@ -0,0 +1,36 @@ +Index: camlidl-1.05/tests/unix.idl +=================================================================== +--- camlidl-1.05.orig/tests/unix.idl ++++ camlidl-1.05/tests/unix.idl +@@ -15,16 +15,16 @@ quote (C, " + + union process_status { int code; }; + +- enum { WEXITED, WSIGNALED, WSTOPPED }; ++ enum { WEXITED2, WSIGNALED, WSTOPPED2 }; + + static void decode_status(int status, int * kind, union process_status * p) + { + if (WIFEXITED(status)) { +- *kind = WEXITED; p->code = WEXITSTATUS(status); ++ *kind = WEXITED2; p->code = WEXITSTATUS(status); + } else if (WIFSIGNALED(status)) { + *kind = WSIGNALED; p->code = WTERMSIG(status); + } else { +- *kind = WSTOPPED; p->code = WSTOPSIG(status); ++ *kind = WSTOPPED2; p->code = WSTOPSIG(status); + } + } + +@@ -59,9 +59,9 @@ int execve([in,string] char * path, + int fork(void); + + union process_status { +- case WEXITED: int code; ++ case WEXITED2: int code; + case WSIGNALED: int code; +- case WSTOPPED: int code; ++ case WSTOPPED2: int code; + }; + + int wait([out] int * kind, |