[csw-devel] SF.net SVN: gar:[18815] csw/mgar/pkg

pfelecan at users.sourceforge.net pfelecan at users.sourceforge.net
Thu Jul 19 10:33:43 CEST 2012


Revision: 18815
          http://gar.svn.sourceforge.net/gar/?rev=18815&view=rev
Author:   pfelecan
Date:     2012-07-19 08:33:43 +0000 (Thu, 19 Jul 2012)
Log Message:
-----------
gwrap/trunk: migrated from a private recipe to a GAR based recipe

Added Paths:
-----------
    csw/mgar/pkg/gwrap/
    csw/mgar/pkg/gwrap/Makefile
    csw/mgar/pkg/gwrap/branches/
    csw/mgar/pkg/gwrap/tags/
    csw/mgar/pkg/gwrap/trunk/
    csw/mgar/pkg/gwrap/trunk/Makefile
    csw/mgar/pkg/gwrap/trunk/checksums
    csw/mgar/pkg/gwrap/trunk/files/
    csw/mgar/pkg/gwrap/trunk/files/0001-Remove-unused-variable.patch
    csw/mgar/pkg/gwrap/trunk/files/0002-Inhibit-unused-but-set-variable.patch
    csw/mgar/pkg/gwrap/trunk/files/0003-Correct-shell.patch

Added: csw/mgar/pkg/gwrap/Makefile
===================================================================
--- csw/mgar/pkg/gwrap/Makefile	                        (rev 0)
+++ csw/mgar/pkg/gwrap/Makefile	2012-07-19 08:33:43 UTC (rev 18815)
@@ -0,0 +1,2 @@
+%:
+	$(MAKE) -C trunk $*


Property changes on: csw/mgar/pkg/gwrap/trunk
___________________________________________________________________
Added: svn:ignore
   + work


Added: csw/mgar/pkg/gwrap/trunk/Makefile
===================================================================
--- csw/mgar/pkg/gwrap/trunk/Makefile	                        (rev 0)
+++ csw/mgar/pkg/gwrap/trunk/Makefile	2012-07-19 08:33:43 UTC (rev 18815)
@@ -0,0 +1,29 @@
+# $Id$
+
+NAME = gwrap
+VERSION = 1.3.4
+GARTYPE = v2
+CATEGORIES = lib
+
+DESCRIPTION = A tool for exporting C libraries into Scheme interpreters
+define BLURB
+  A tool for exporting C libraries into Scheme interpreters
+endef
+
+DISTNAME		=	g-wrap-$(VERSION)
+MASTER_SITES	=	http://www.gnucash.org/pub/g-wrap/source/
+DISTFILES		=	$(DISTNAME).tar.gz
+PATCHFILES		+=	0001-Remove-unused-variable.patch
+PATCHFILES		+=	0002-Inhibit-unused-but-set-variable.patch
+PATCHFILES		+=	0003-Correct-shell.patch
+
+BUILD_DEP_PKGS	+=	CSWglib
+BUILD_DEP_PKGS	+=	CSWgtk
+BUILD_DEP_PKGS	+=	CSWslib
+
+GARCOMPILER		=	GNU
+
+CONFIGURE_ARGS	=	$(DIRPATHS)
+
+include gar/category.mk
+


Property changes on: csw/mgar/pkg/gwrap/trunk/Makefile
___________________________________________________________________
Added: svn:keywords
   + Id

Added: csw/mgar/pkg/gwrap/trunk/checksums
===================================================================
--- csw/mgar/pkg/gwrap/trunk/checksums	                        (rev 0)
+++ csw/mgar/pkg/gwrap/trunk/checksums	2012-07-19 08:33:43 UTC (rev 18815)
@@ -0,0 +1 @@
+bf29b8b563cc27d9f7fd90a6243653aa  g-wrap-1.3.4.tar.gz

Added: csw/mgar/pkg/gwrap/trunk/files/0001-Remove-unused-variable.patch
===================================================================
--- csw/mgar/pkg/gwrap/trunk/files/0001-Remove-unused-variable.patch	                        (rev 0)
+++ csw/mgar/pkg/gwrap/trunk/files/0001-Remove-unused-variable.patch	2012-07-19 08:33:43 UTC (rev 18815)
@@ -0,0 +1,30 @@
+From c0a06c6f99d617f5490a5436eee1a7a9de5eb8eb Mon Sep 17 00:00:00 2001
+From: Peter Felecan <pfelecan at opencsw.org>
+Date: Thu, 19 Jul 2012 09:45:10 +0200
+Subject: [PATCH] Remove unused variable
+
+---
+ g-wrap/g-wrap-wct.c |    3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/g-wrap/g-wrap-wct.c b/g-wrap/g-wrap-wct.c
+index 7af4f45..ce549b7 100644
+--- a/g-wrap/g-wrap-wct.c
++++ b/g-wrap/g-wrap-wct.c
+@@ -204,13 +204,10 @@ wcp_data_equal_p(SCM wcp_a, SCM wcp_b) {
+ SCM
+ gw_wcp_assimilate_ptr(void *ptr, SCM type) {
+   /* create a wrapped C pointer of the given type, wrapping ptr */
+-  wrapped_c_type_data *type_data;
+   wrapped_c_pointer_data *ptr_data; 
+ 
+   if(!GW_WCT_P(type)) return SCM_BOOL_F;
+ 
+-  type_data = (wrapped_c_type_data *) SCM_SMOB_DATA(type);
+-
+   ptr_data = (wrapped_c_pointer_data *)
+     scm_must_malloc(sizeof(wrapped_c_pointer_data), "gw:wcp");
+ 
+-- 
+1.7.10.3
+

Added: csw/mgar/pkg/gwrap/trunk/files/0002-Inhibit-unused-but-set-variable.patch
===================================================================
--- csw/mgar/pkg/gwrap/trunk/files/0002-Inhibit-unused-but-set-variable.patch	                        (rev 0)
+++ csw/mgar/pkg/gwrap/trunk/files/0002-Inhibit-unused-but-set-variable.patch	2012-07-19 08:33:43 UTC (rev 18815)
@@ -0,0 +1,27 @@
+From edf38ae5b5d69f8267682cf1be1406ab786d1b97 Mon Sep 17 00:00:00 2001
+From: Peter Felecan <pfelecan at opencsw.org>
+Date: Thu, 19 Jul 2012 10:06:42 +0200
+Subject: [PATCH] Inhibit unused but set variable
+
+use -Wno-error=unused-but-set-variable for compiling generated code as
+we cannot easily change the generator...
+---
+ test/Makefile.in |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/Makefile.in b/test/Makefile.in
+index b49894c..6a4d006 100644
+--- a/test/Makefile.in
++++ b/test/Makefile.in
+@@ -209,7 +209,7 @@ test_link_wct_LDADD = ../g-wrap/libgw-wct.la
+ 
+ 
+ # ===========================================================================
+-AM_CFLAGS = -O2 -Wall -Wno-uninitialized -Werror -g \
++AM_CFLAGS = -O2 -Wall -Wno-uninitialized -Werror -Wno-error=unused-but-set-variable -g \
+  -I ${top_srcdir}/g-wrap \
+  ${GW_GLIB_CFLAGS_ADD} \
+  ${GW_GUILE_GTK_CFLAGS_ADD}
+-- 
+1.7.10.3
+

Added: csw/mgar/pkg/gwrap/trunk/files/0003-Correct-shell.patch
===================================================================
--- csw/mgar/pkg/gwrap/trunk/files/0003-Correct-shell.patch	                        (rev 0)
+++ csw/mgar/pkg/gwrap/trunk/files/0003-Correct-shell.patch	2012-07-19 08:33:43 UTC (rev 18815)
@@ -0,0 +1,22 @@
+From 20425afd55e6e6d4a1260a5ee5a253c93a0ada72 Mon Sep 17 00:00:00 2001
+From: Peter Felecan <pfelecan at opencsw.org>
+Date: Thu, 19 Jul 2012 10:19:17 +0200
+Subject: [PATCH] Correct shell
+
+---
+ test/guile-test-env |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/guile-test-env b/test/guile-test-env
+index 64b9555..47b983a 100755
+--- a/test/guile-test-env
++++ b/test/guile-test-env
+@@ -1,4 +1,4 @@
+-#!/bin/sh
++#! /usr/bin/env bash
+ 
+ GUILE_VERSION=$(guile -c '(display (version))')
+ 
+-- 
+1.7.10.3
+

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list