aboutsummaryrefslogtreecommitdiffstats
path: root/devel/g-wrap
diff options
context:
space:
mode:
authorahze <ahze@FreeBSD.org>2007-02-24 06:24:14 +0800
committerahze <ahze@FreeBSD.org>2007-02-24 06:24:14 +0800
commite9cf5dd380ce91bc86cb277a68ab28271dab85f3 (patch)
treefc8b4a621f014f3fdec84f8f1a86a9368d632029 /devel/g-wrap
parentc376b946c17fb05f9f2a69afa7dfc0a7df907810 (diff)
downloadfreebsd-ports-gnome-e9cf5dd380ce91bc86cb277a68ab28271dab85f3.tar.gz
freebsd-ports-gnome-e9cf5dd380ce91bc86cb277a68ab28271dab85f3.tar.zst
freebsd-ports-gnome-e9cf5dd380ce91bc86cb277a68ab28271dab85f3.zip
- Upgrade to 1.9.6
- Patch to use glib 2.x instead of glib 1.x
Diffstat (limited to 'devel/g-wrap')
-rw-r--r--devel/g-wrap/Makefile35
-rw-r--r--devel/g-wrap/distinfo6
-rw-r--r--devel/g-wrap/files/patch-Makefile.in11
-rw-r--r--devel/g-wrap/files/patch-ab13
-rw-r--r--devel/g-wrap/files/patch-g-wrap_Makefile.in11
-rw-r--r--devel/g-wrap/files/patch-guile_g-wrap-2.0-guile.pc.in15
-rw-r--r--devel/g-wrap/files/patch-libffi_configure11
-rw-r--r--devel/g-wrap/pkg-plist97
8 files changed, 103 insertions, 96 deletions
diff --git a/devel/g-wrap/Makefile b/devel/g-wrap/Makefile
index aadadd32780d..9cc75135b10a 100644
--- a/devel/g-wrap/Makefile
+++ b/devel/g-wrap/Makefile
@@ -4,31 +4,40 @@
# Whom: Matthew Condell (mcondell@alum.mit.edu)
#
# $FreeBSD$
-#
+# $MCom: ports/devel/g-wrap/Makefile,v 1.6 2006/12/24 18:45:08 ahze Exp $
PORTNAME= g-wrap
-PORTVERSION= 1.3.4
-PORTREVISION= 9
+PORTVERSION= 1.9.6
PORTEPOCH= 1
CATEGORIES= devel scheme
-MASTER_SITES= http://www.gnucash.org/pub/g-wrap/source/ \
- http://people.freebsd.org/~sobomax/
+MASTER_SITES= SAVANNAH
MAINTAINER= gnome@FreeBSD.org
COMMENT= A tool for exporting C libraries into Scheme interpreters
-BUILD_DEPENDS= ${LOCALBASE}/share/guile/1.6/slibcat:${PORTSDIR}/lang/slib-guile
-LIB_DEPENDS= guile.15:${PORTSDIR}/lang/guile \
- guilegtk-1.2.0:${PORTSDIR}/x11-toolkits/guile-gtk
-RUN_DEPENDS= ${LOCALBASE}/share/guile/1.6/slibcat:${PORTSDIR}/lang/slib-guile
+BUILD_DEPENDS= guile>=1.6.8_2:${PORTSDIR}/lang/guile \
+ slib-guile>0:${PORTSDIR}/lang/slib-guile
+RUN_DEPENDS= guile>=1.6.8_2:${PORTSDIR}/lang/guile \
+ slib-guile>0:${PORTSDIR}/lang/slib-guile
INFO= g-wrap
+USE_LDCONFIG= yes
GNU_CONFIGURE= yes
USE_GMAKE= yes
-USE_GNOME= gtk12
-USE_LDCONFIG= yes
-CONFIGURE_ENV+= GW_GLIB_CONFIG="${GLIB_CONFIG}"
-MAKE_ENV+= GUILE_LOAD_PATH=${WRKSRC}
+USE_GNOME= glib20 gnomehack
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|"glib"|"glib-2.0"|' \
+ ${WRKSRC}/configure
+
+pre-install:
+ @${REINPLACE_CMD} -e 's|libffi||' ${WRKSRC}/${MAKEFILE}
+
+post-install:
+ ${MKDIR} ${PREFIX}/include/g-wrap/ffi
+.for f in ffi.h ffitarget.h
+ ${INSTALL_DATA} ${WRKSRC}/libffi/include/${f} ${PREFIX}/include/g-wrap/ffi
+.endfor
.include <bsd.port.mk>
diff --git a/devel/g-wrap/distinfo b/devel/g-wrap/distinfo
index 2cef87078feb..9eabe531c56d 100644
--- a/devel/g-wrap/distinfo
+++ b/devel/g-wrap/distinfo
@@ -1,3 +1,3 @@
-MD5 (g-wrap-1.3.4.tar.gz) = bf29b8b563cc27d9f7fd90a6243653aa
-SHA256 (g-wrap-1.3.4.tar.gz) = bb9fa9b7b6b2a11899d98d730cf5970179bbf942fd763eda13b7b541278adee4
-SIZE (g-wrap-1.3.4.tar.gz) = 403570
+MD5 (g-wrap-1.9.6.tar.gz) = 4d83964f51376500eedced538c1620cb
+SHA256 (g-wrap-1.9.6.tar.gz) = ddb0e31d40581402d6d7045cce7cdc79e0bc0627831a4b12012f45703446d311
+SIZE (g-wrap-1.9.6.tar.gz) = 826045
diff --git a/devel/g-wrap/files/patch-Makefile.in b/devel/g-wrap/files/patch-Makefile.in
deleted file mode 100644
index 93024a542005..000000000000
--- a/devel/g-wrap/files/patch-Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- Makefile.in.orig Thu Nov 7 23:40:46 2002
-+++ Makefile.in Tue Feb 4 20:43:51 2003
-@@ -144,7 +144,7 @@
- sharedstatedir = @sharedstatedir@
- sysconfdir = @sysconfdir@
- target_alias = @target_alias@
--SUBDIRS = doc rpm bin g-wrap example test
-+SUBDIRS = doc rpm bin g-wrap example
-
- guilemoduledir = @GUILEMODDIR@
- guilemodule_DATA = @GUILEMOD_TARGET@
diff --git a/devel/g-wrap/files/patch-ab b/devel/g-wrap/files/patch-ab
deleted file mode 100644
index b22e980a6ce2..000000000000
--- a/devel/g-wrap/files/patch-ab
+++ /dev/null
@@ -1,13 +0,0 @@
---- doc/g-wrap.texi.orig Thu Jun 22 06:42:12 2000
-+++ doc/g-wrap.texi Sat Jul 15 12:15:38 2000
-@@ -2,6 +2,10 @@
- @c %**start of header
- @setfilename g-wrap.info
- @settitle g-wrap
-+@dircategory Scheme Programming
-+@direntry
-+* g-wrap: (g-wrap). A tool for exporting C libraries into Scheme interpreters.
-+@end direntry
- @setchapternewpage on
- @c Choices for setchapternewpage are {on,off,odd}.
- @paragraphindent 0
diff --git a/devel/g-wrap/files/patch-g-wrap_Makefile.in b/devel/g-wrap/files/patch-g-wrap_Makefile.in
deleted file mode 100644
index 1e5ab26f8e38..000000000000
--- a/devel/g-wrap/files/patch-g-wrap_Makefile.in
+++ /dev/null
@@ -1,11 +0,0 @@
---- g-wrap/Makefile.in.orig Tue Feb 4 20:45:49 2003
-+++ g-wrap/Makefile.in Tue Feb 4 20:46:00 2003
-@@ -197,7 +197,7 @@
-
-
- #AM_CFLAGS = -O2 -g -Wall -Wno-uninitialized -Werror
--AM_CFLAGS = -O2 -g -Wall -Werror \
-+AM_CFLAGS = -Wall -Werror \
- ${GW_GLIB_CFLAGS_ADD} \
- ${GW_GUILE_GTK_CFLAGS_ADD}
-
diff --git a/devel/g-wrap/files/patch-guile_g-wrap-2.0-guile.pc.in b/devel/g-wrap/files/patch-guile_g-wrap-2.0-guile.pc.in
new file mode 100644
index 000000000000..6ffbfe171907
--- /dev/null
+++ b/devel/g-wrap/files/patch-guile_g-wrap-2.0-guile.pc.in
@@ -0,0 +1,15 @@
+--- guile/g-wrap-2.0-guile.pc.in.orig Mon Oct 11 06:32:16 2004
++++ guile/g-wrap-2.0-guile.pc.in Tue Sep 12 17:10:41 2006
+@@ -5,9 +5,10 @@
+ libdir=@libdir@
+ includedir=@includedir@
+ module_directory=@GUILEMODDIR@
++ffiincludedir= @includedir@/g-wrap/ffi
+
+ Name: G-Wrap
+ Description: A Guile wrapper generator
+ Version: @VERSION@
+-Libs: -L${libdir} -lgwrap-guile-runtime -lgwrap-core-runtime @GUILE_LDFLAGS@ @LIBFFI_LIBS_INSTALLED@
+-Cflags: @STD_CFLAGS@ -I${includedir} @GUILE_CFLAGS@ @LIBFFI_CFLAGS_INSTALLED@
++Libs: -L/usr/local/lib/elf -L${libdir} -lgwrap-guile-runtime -lgwrap-core-runtime @GUILE_LDFLAGS@
++Cflags: @STD_CFLAGS@ -I${includedir} -I${ffiincludedir} @GUILE_CFLAGS@ @LIBFFI_CFLAGS_INSTALLED@
diff --git a/devel/g-wrap/files/patch-libffi_configure b/devel/g-wrap/files/patch-libffi_configure
new file mode 100644
index 000000000000..2121d0c04a00
--- /dev/null
+++ b/devel/g-wrap/files/patch-libffi_configure
@@ -0,0 +1,11 @@
+--- libffi/configure.orig Tue Sep 12 17:01:51 2006
++++ libffi/configure Tue Sep 12 17:02:19 2006
+@@ -3285,7 +3285,7 @@
+ ;;
+ esac
+ else
+- enable_shared=yes
++ enable_shared=no # don't build shared lib (or conflict with gcc3*)
+ fi;
+
+ # Check whether --enable-static or --disable-static was given.
diff --git a/devel/g-wrap/pkg-plist b/devel/g-wrap/pkg-plist
index 75a89facdc33..51e877875029 100644
--- a/devel/g-wrap/pkg-plist
+++ b/devel/g-wrap/pkg-plist
@@ -1,47 +1,54 @@
bin/g-wrap-config
-include/g-wrap/g-wrap-compatibility.h
-include/g-wrap/g-wrap-glib.h
-include/g-wrap/g-wrap-wct.h
-lib/libgw-glib.a
-lib/libgw-glib.la
-lib/libgw-glib.so
-lib/libgw-glib.so.0
-lib/libgw-gtk.a
-lib/libgw-gtk.la
-lib/libgw-gtk.so
-lib/libgw-gtk.so.0
-lib/libgw-standard.a
-lib/libgw-standard.la
-lib/libgw-standard.so
-lib/libgw-standard.so.0
-lib/libgw-wct.a
-lib/libgw-wct.la
-lib/libgw-wct.so
-lib/libgw-wct.so.0
-lib/libgwrap-glib.a
-lib/libgwrap-glib.la
-lib/libgwrap-glib.so
-lib/libgwrap-glib.so.1
-lib/libgwrap-wct.a
-lib/libgwrap-wct.la
-lib/libgwrap-wct.so
-lib/libgwrap-wct.so.1
-share/aclocal/g-wrap.m4
-share/guile/g-wrap.scm
-share/guile/g-wrap/enumeration.scm
-share/guile/g-wrap/g-translate.scm
-share/guile/g-wrap/gtkobj.scm
-share/guile/g-wrap/gw-glib-spec.scm
-share/guile/g-wrap/gw-glib.scm
-share/guile/g-wrap/gw-gtk-spec.scm
-share/guile/g-wrap/gw-gtk.scm
-share/guile/g-wrap/gw-standard-spec.scm
-share/guile/g-wrap/gw-standard.scm
-share/guile/g-wrap/gw-wct-spec.scm
-share/guile/g-wrap/gw-wct.scm
-share/guile/g-wrap/output-file.scm
-share/guile/g-wrap/runtime.scm
-share/guile/g-wrap/simple-type.scm
-share/guile/g-wrap/sorting.scm
-@dirrm share/guile/g-wrap
+include/g-wrap-wct.h
+include/g-wrap/core-runtime.h
+include/g-wrap/ffi-support.h
+include/g-wrap/ffi/ffi.h
+include/g-wrap/ffi/ffitarget.h
+include/g-wrap/guile-compatibility.h
+include/g-wrap/guile-runtime.h
+include/g-wrap/guile-wct.h
+lib/libgw-guile-gw-glib.a
+lib/libgw-guile-gw-glib.la
+lib/libgw-guile-gw-glib.so
+lib/libgw-guile-gw-glib.so.0
+lib/libgw-guile-standard.a
+lib/libgw-guile-standard.la
+lib/libgw-guile-standard.so
+lib/libgw-guile-standard.so.0
+lib/libgwrap-core-runtime.a
+lib/libgwrap-core-runtime.la
+lib/libgwrap-core-runtime.so
+lib/libgwrap-core-runtime.so.0
+lib/libgwrap-guile-runtime.a
+lib/libgwrap-guile-runtime.la
+lib/libgwrap-guile-runtime.so
+lib/libgwrap-guile-runtime.so.0
+libdata/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
+share/guile/site/srfi/srfi-34.scm
+share/guile/site/srfi/srfi-35.scm
+@dirrmtry share/guile/site/srfi
+@dirrmtry share/guile/site/g-wrap/ws
+@dirrmtry share/guile/site/g-wrap/gw
+@dirrmtry share/guile/site/g-wrap/guile/ws
+@dirrmtry share/guile/site/g-wrap/guile
+@dirrmtry share/guile/site/g-wrap
+@dirrmtry share/guile/site
+@dirrmtry share/guile
+@dirrm include/g-wrap/ffi
@dirrm include/g-wrap