summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2007-05-17 17:39:04 +0000
committerwiz <wiz@pkgsrc.org>2007-05-17 17:39:04 +0000
commitf6d82f0234282ede8c09e268d9fb82002aac463d (patch)
tree23c5dc29887852809584bb4bb6451505b76ef1e4
parent7d4fbd15371e7e7c2fb7b8e14809fefcd654632c (diff)
downloadpkgsrc-f6d82f0234282ede8c09e268d9fb82002aac463d.tar.gz
Initial import of g-wrap196, the 1.9.6 release of g-wrap, previously
in devel/g-wrap. This is the last version that works with gnucash-2.0.x. Imported separately so devel/g-wrap can be updated.
-rw-r--r--devel/g-wrap196/DESCR20
-rw-r--r--devel/g-wrap196/Makefile27
-rw-r--r--devel/g-wrap196/PLIST39
-rw-r--r--devel/g-wrap196/buildlink3.mk23
-rw-r--r--devel/g-wrap196/distinfo8
-rw-r--r--devel/g-wrap196/patches/patch-aa12
-rw-r--r--devel/g-wrap196/patches/patch-ab30
-rw-r--r--devel/g-wrap196/patches/patch-ac35
8 files changed, 194 insertions, 0 deletions
diff --git a/devel/g-wrap196/DESCR b/devel/g-wrap196/DESCR
new file mode 100644
index 00000000000..6b4d59f50ed
--- /dev/null
+++ b/devel/g-wrap196/DESCR
@@ -0,0 +1,20 @@
+G-Wrap is a tool (and Guile library) for generating function wrappers
+for inter-language calls. It currently only supports generating Guile
+wrappers for C functions.
+
+This package provides G-Wrap TNG (to be 2.0), with the following
+goals:
+
+ * Use GOOPS, for enhanced flexibility
+
+ * Get rid of the cruft that has accumulated, simplify where possible
+ without sacrificing features
+
+ * Be target-language agnostic; i.e. clean separation of the core and
+ e.g. the Guile-specific code. New languages (perhaps even
+ non-Schemes) should be easy to add.
+
+ * Offer the current (1.3.4+) wrapping API as a compatibility layer.
+
+This package contains the 1.9.6 version of g-wrap because it's
+the last one that's compatible with gnucash 2.0.x.
diff --git a/devel/g-wrap196/Makefile b/devel/g-wrap196/Makefile
new file mode 100644
index 00000000000..6eedc0ddffa
--- /dev/null
+++ b/devel/g-wrap196/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/05/17 17:39:04 wiz Exp $
+
+DISTNAME= g-wrap-1.9.6
+PKGREVISION= 2
+CATEGORIES= devel
+MASTER_SITES= http://savannah.nongnu.org/download/g-wrap/
+
+MAINTAINER= gdt@NetBSD.org
+HOMEPAGE= http://www.nongnu.org/g-wrap/
+COMMENT= Tool for generating guile wrappers for C code
+
+DEPENDS+= guile-lib>=0.1.2:../../devel/guile-lib
+
+MAKE_JOBS_SAFE= no
+
+GNU_CONFIGURE= YES
+USE_TOOLS+= gmake makeinfo pkg-config
+USE_LIBTOOL= YES
+TEST_TARGET= check
+INFO_FILES= YES
+
+pre-install:
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/guile/site/g-wrap/guile/ws
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../lang/guile/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/g-wrap196/PLIST b/devel/g-wrap196/PLIST
new file mode 100644
index 00000000000..3848db1af22
--- /dev/null
+++ b/devel/g-wrap196/PLIST
@@ -0,0 +1,39 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/05/17 17:39:04 wiz Exp $
+bin/g-wrap-config
+include/ffi.h
+include/ffitarget.h
+include/g-wrap-wct.h
+include/g-wrap/core-runtime.h
+include/g-wrap/ffi-support.h
+include/g-wrap/guile-compatibility.h
+include/g-wrap/guile-runtime.h
+include/g-wrap/guile-wct.h
+info/g-wrap.info
+lib/libffi.la
+lib/libgw-guile-gw-glib.la
+lib/libgw-guile-standard.la
+lib/libgwrap-core-runtime.la
+lib/libgwrap-guile-runtime.la
+lib/pkgconfig/g-wrap-2.0-guile.pc
+share/guile/site/g-wrap.scm
+share/guile/site/g-wrap/c-types.scm
+share/guile/site/g-wrap/compat.scm
+share/guile/site/g-wrap/enumeration.scm
+share/guile/site/g-wrap/guile.scm
+share/guile/site/g-wrap/guile/ws/standard.scm
+share/guile/site/g-wrap/gw-glib-spec.scm
+share/guile/site/g-wrap/gw-glib.scm
+share/guile/site/g-wrap/gw-standard-spec.scm
+share/guile/site/g-wrap/gw-wct-spec.scm
+share/guile/site/g-wrap/gw-wct.scm
+share/guile/site/g-wrap/gw/standard.scm
+share/guile/site/g-wrap/rti.scm
+share/guile/site/g-wrap/simple-type.scm
+share/guile/site/g-wrap/util.scm
+share/guile/site/g-wrap/ws/standard.scm
+@dirrm share/guile/site/g-wrap/ws
+@dirrm share/guile/site/g-wrap/gw
+@dirrm share/guile/site/g-wrap/guile/ws
+@dirrm share/guile/site/g-wrap/guile
+@dirrm share/guile/site/g-wrap
+@dirrm include/g-wrap
diff --git a/devel/g-wrap196/buildlink3.mk b/devel/g-wrap196/buildlink3.mk
new file mode 100644
index 00000000000..7d15958d714
--- /dev/null
+++ b/devel/g-wrap196/buildlink3.mk
@@ -0,0 +1,23 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2007/05/17 17:39:04 wiz Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+G_WRAP196_BUILDLINK3_MK:= ${G_WRAP196_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= g-wrap196
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ng-wrap196}
+BUILDLINK_PACKAGES+= g-wrap196
+BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}g-wrap196
+
+.if !empty(G_WRAP196_BUILDLINK3_MK:M+)
+BUILDLINK_API_DEPENDS.g-wrap196+= g-wrap>=1.9.5
+BUILDLINK_API_DEPENDS.g-wrap196+= g-wrap<1.9.7
+BUILDLINK_ABI_DEPENDS.g-wrap196?= g-wrap>=1.9.6nb1
+BUILDLINK_PKGSRCDIR.g-wrap196?= ../../devel/g-wrap196
+.endif # G_WRAP196_BUILDLINK3_MK
+
+.include "../../lang/guile/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/devel/g-wrap196/distinfo b/devel/g-wrap196/distinfo
new file mode 100644
index 00000000000..72a40ce4e42
--- /dev/null
+++ b/devel/g-wrap196/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/05/17 17:39:04 wiz Exp $
+
+SHA1 (g-wrap-1.9.6.tar.gz) = 754116dd5d9af2fe0e1f8386e69721618e0eefdf
+RMD160 (g-wrap-1.9.6.tar.gz) = 1e3d86e38061a217b9dde06885301f4a46433d39
+Size (g-wrap-1.9.6.tar.gz) = 826045 bytes
+SHA1 (patch-aa) = 57ee87da372c0d43f384767d7b585a7d09b87b8b
+SHA1 (patch-ab) = 0b19af560b7fdebdf9a6379eb0e2b9e3980071c8
+SHA1 (patch-ac) = 2ba8274c02993c0036da498cf76238a923468f86
diff --git a/devel/g-wrap196/patches/patch-aa b/devel/g-wrap196/patches/patch-aa
new file mode 100644
index 00000000000..9bdd71d9586
--- /dev/null
+++ b/devel/g-wrap196/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/05/17 17:39:04 wiz Exp $
+
+--- g-wrap/Makefile.in.orig 2005-01-25 13:35:45.000000000 +0100
++++ g-wrap/Makefile.in
+@@ -352,6 +352,7 @@ uninstall-info-am:
+ install-nobase_gwrapmoduleDATA: $(nobase_gwrapmodule_DATA)
+ @$(NORMAL_INSTALL)
+ test -z "$(gwrapmoduledir)" || $(mkdir_p) "$(DESTDIR)$(gwrapmoduledir)"
++ test -z "$(gwrapmoduledir)/ws" || $(mkdir_p) "$(DESTDIR)$(gwrapmoduledir)/ws"
+ @$(am__vpath_adj_setup) \
+ list='$(nobase_gwrapmodule_DATA)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
diff --git a/devel/g-wrap196/patches/patch-ab b/devel/g-wrap196/patches/patch-ab
new file mode 100644
index 00000000000..fa6b3e601fb
--- /dev/null
+++ b/devel/g-wrap196/patches/patch-ab
@@ -0,0 +1,30 @@
+$NetBSD: patch-ab,v 1.1.1.1 2007/05/17 17:39:04 wiz Exp $
+
+--- libffi/configure.orig 2005-03-01 18:52:45.000000000 +0100
++++ libffi/configure
+@@ -19903,6 +19903,7 @@ case "$host" in
+ i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
+ i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
+ i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
++i*86-*-dragonfly*) TARGET=X86; TARGETDIR=x86;;
+ i*86-*-freebsd* | i*86-*-kfreebsd*-gnu) TARGET=X86; TARGETDIR=x86;;
+ i*86-*-netbsdelf* | i*86-*-knetbsd*-gnu) TARGET=X86; TARGETDIR=x86;;
+ i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
+@@ -19920,7 +19921,7 @@ m68k-*-linux*) TARGET=M68K; TARGETDIR=m6
+ mips64*-*);;
+ mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS_IRIX; TARGETDIR=mips;;
+ mips*-*-linux*) TARGET=MIPS_LINUX; TARGETDIR=mips;;
+-powerpc*-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
++powerpc*-*-linux* | powerpc-*-netbsd* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
+ powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
+ powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
+ powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
+@@ -19929,7 +19930,7 @@ arm*-*-linux-*) TARGET=ARM; TARGETDIR=ar
+ arm*-*-netbsdelf* | arm*-*-knetbsd*-gnu) TARGET=ARM; TARGETDIR=arm;;
+ s390-*-linux-*) TARGET=S390; TARGETDIR=s390;;
+ s390x-*-linux-*) TARGET=S390; TARGETDIR=s390;;
+-x86_64-*-linux* | x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu) TARGET=X86_64; TARGETDIR=x86;;
++x86_64-*-linux* | x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu | x86_64-*-netbsd*) TARGET=X86_64; TARGETDIR=x86;;
+ sh-*-linux* | sh[34]*-*-linux*) TARGET=SH; TARGETDIR=sh;;
+ sh64-*-linux* | sh5*-*-linux*) TARGET=SH64; TARGETDIR=sh64;;
+ hppa-*-linux* | parisc-*-linux*) TARGET=PA; TARGETDIR=pa;;
diff --git a/devel/g-wrap196/patches/patch-ac b/devel/g-wrap196/patches/patch-ac
new file mode 100644
index 00000000000..5eeea490f1e
--- /dev/null
+++ b/devel/g-wrap196/patches/patch-ac
@@ -0,0 +1,35 @@
+$NetBSD: patch-ac,v 1.1.1.1 2007/05/17 17:39:04 wiz Exp $
+
+--- configure.orig 2005-04-14 14:57:14.000000000 +0000
++++ configure
+@@ -21699,8 +21699,8 @@ else
+ if test "x$ac_cv_env_GLIB_CFLAGS_set" = "xset"; then
+ pkg_cv_GLIB_CFLAGS=$ac_cv_env_GLIB_CFLAGS_value
+ elif test -n "$PKG_CONFIG"; then
+- if $PKG_CONFIG --exists "glib" >/dev/null 2>&1; then
+- pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib" 2>/dev/null`
++ if $PKG_CONFIG --exists "glib-2.0" >/dev/null 2>&1; then
++ pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
+ else
+ pkg_failed=yes
+ fi
+@@ -21718,8 +21718,8 @@ else
+ if test "x$ac_cv_env_GLIB_LIBS_set" = "xset"; then
+ pkg_cv_GLIB_LIBS=$ac_cv_env_GLIB_LIBS_value
+ elif test -n "$PKG_CONFIG"; then
+- if $PKG_CONFIG --exists "glib" >/dev/null 2>&1; then
+- pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib" 2>/dev/null`
++ if $PKG_CONFIG --exists "glib-2.0" >/dev/null 2>&1; then
++ pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
+ else
+ pkg_failed=yes
+ fi
+@@ -21731,7 +21731,7 @@ echo "$as_me:$LINENO: result: $pkg_cv_GL
+ echo "${ECHO_T}$pkg_cv_GLIB_LIBS" >&6
+
+ if test $pkg_failed = yes; then
+- GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib"`
++ GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
+ # Put the nasty error message in config.log where it belongs
+ echo "$GLIB_PKG_ERRORS" 1>&5
+