Import of g-wrap 1.3.4

g-wrap provides shceme wrappers needed for GnuCash
This commit is contained in:
todd 2005-02-24 01:42:47 +00:00
parent 93676e9dd6
commit b9a02a65e1
11 changed files with 203 additions and 0 deletions

31
devel/g-wrap/Makefile Normal file
View File

@ -0,0 +1,31 @@
# $OpenBSD: Makefile,v 1.1.1.1 2005/02/24 01:42:47 todd Exp $
COMMENT= "g-wrap"
DISTNAME= g-wrap-1.3.4
CATEGORIES= gnome databases
MASTER_SITES= ${HOMEPAGE}/source/
HOMEPAGE= http://www.gnucash.org/pub/g-wrap
MAINTAINER= Todd T. Fries <todd@OpenBSD.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= m
LIB_DEPENDS= guile.9::lang/guile \
gthread.1.2::devel/glib
BUILD_DEPENDS= slib::devel/slib
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --with-modules-dir=${LOCALBASE}/share/guile
FAKE_FLAGS += prefix="${LOCALBASE}"
.include <bsd.port.mk>

3
devel/g-wrap/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (g-wrap-1.3.4.tar.gz) = bf29b8b563cc27d9f7fd90a6243653aa
RMD160 (g-wrap-1.3.4.tar.gz) = 64eddd127e24df11067b498d0986d8823f012d76
SHA1 (g-wrap-1.3.4.tar.gz) = 764f1c878e18341bf437f3e1ddc5f8618019bfc2

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-doc_g-wrap_texi,v 1.1.1.1 2005/02/24 01:42:47 todd Exp $
--- doc/g-wrap.texi.orig Wed Sep 18 15:17:03 2002
+++ doc/g-wrap.texi Wed Sep 18 15:17:29 2002
@@ -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

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-g-wrap_Makefile_in,v 1.1.1.1 2005/02/24 01:42:47 todd Exp $
--- g-wrap/Makefile.in.orig Thu Nov 7 22:40:46 2002
+++ g-wrap/Makefile.in Thu Mar 27 10:24:21 2003
@@ -214,7 +214,7 @@ libgwrap_wct_la_LIBADD = @GUILE_LIBS@
################## (g-wrap gw-wct) section
nodist_libgw_wct_la_SOURCES = gw-wct.c
-libgw_wct_la_LDFLAGS = -rpath $(libdir) -module -export-dynamic @GUILE_LIBS@
+libgw_wct_la_LDFLAGS = -rpath $(libdir) -L${DESTDIR}${prefix}/lib -module -export-dynamic @GUILE_LIBS@
libgw_wct_la_LIBADD = libgwrap-wct.la
test_link_gw_wct_SOURCES = dummy-main.c
test_link_gw_wct_LDADD = ./libgw-wct.la
@@ -222,7 +222,7 @@ test_link_gw_wct_LDADD = ./libgw-wct.la
################## From ../g-wrapped
LOCALPWD = $(shell pwd)
-SETGWPPATH = "(set! %load-path (cons \"${LOCALPWD}/..\" %load-path))"
+SETGWPPATH = "(set! %load-path (cons \"${LOCALPWD}/..\" %load-path)) (set! %load-path (cons \"${prefix}/share\" %load-path))"
################## (g-wrap gw-standard) section

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-g-wrap_scm,v 1.1.1.1 2005/02/24 01:42:47 todd Exp $
--- g-wrap.scm.orig Wed Jul 9 08:37:31 2003
+++ g-wrap.scm Wed Jul 9 08:38:17 2003
@@ -24,6 +24,9 @@
;; FIXME: What does this one do?
:use-module (g-wrap g-translate))
+(set! %load-path (cons "/usr/local/share" %load-path))
+
+
(use-modules (ice-9 slib))
(if (not (defined? 'simple-format))

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-ltconfig,v 1.1.1.1 2005/02/24 01:42:47 todd Exp $
--- ltconfig.orig Wed Sep 18 17:09:08 2002
+++ ltconfig Wed Sep 18 17:09:21 2002
@@ -1262,7 +1262,7 @@ else
;;
openbsd*)
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
+ archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts'
hardcode_libdir_flag_spec='-R$libdir'
hardcode_direct=yes
hardcode_shlibpath_var=no

View File

@ -0,0 +1,50 @@
$OpenBSD: patch-ltmain_sh,v 1.1.1.1 2005/02/24 01:42:47 todd Exp $
--- ltmain.sh.orig Thu Nov 7 22:40:36 2002
+++ ltmain.sh Sat Jul 19 09:12:10 2003
@@ -915,7 +915,8 @@ compiler."
[\\/]* | [A-Za-z]:[\\/]*) ;;
*)
$echo "$modename: only absolute run-paths are allowed" 1>&2
- exit 1
+ $echo "$modename: '$arg' is bad?" 1>&2
+ #exit 1
;;
esac
if test "$prev" = rpath; then
@@ -1082,8 +1083,16 @@ compiler."
continue
;;
+ -pthread)
+ compile_command="$compile_command -pthread"
+ finalize_command="$finalize_command -pthread"
+ compiler_flags="$compiler_flags -pthread"
+ continue
+ ;;
+
-module)
module=yes
+ build_old_libs=no
continue
;;
@@ -1767,10 +1776,7 @@ compiler."
continue
fi
- if test "$installed" = no; then
- notinst_deplibs="$notinst_deplibs $lib"
- need_relink=yes
- fi
+ need_relink=no
if test -n "$old_archive_from_expsyms_cmds"; then
# figure out the soname
@@ -2724,6 +2730,7 @@ EOF
echo "*** All declared inter-library dependencies are being dropped."
droppeddeps=yes
fi
+ droppeddeps=no
;;
esac
versuffix=$versuffix_save

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-test_Makefile_in,v 1.1.1.1 2005/02/24 01:42:47 todd Exp $
--- test/Makefile.in.orig Thu Nov 7 22:40:48 2002
+++ test/Makefile.in Thu Mar 27 09:47:57 2003
@@ -696,6 +696,7 @@ gw-test-enumeration.scm gw-test-enumerat
# (read-enable 'positions) \
#
+GW_SLIB_DIR="(set! %load-path (cons \"${prefix}/share\" %load-path))"
gw-test-parent.scm gw-test-parent.h gw-test-parent.c gw-test-parent.html gw-test-parent-autogen.h: gw-test-parent-spec.scm
LD_LIBRARY_PATH=${LOCALPWD}/..:${LOCALPWD}/..:${LD_LIBRARY_PATH} \
@@ -729,7 +730,7 @@ gw-test-glib.scm gw-test-glib.h gw-test-
test-gw-gtkobj.scm test-gw-gtkobj.h test-gw-gtkobj.c test-gw-gtkobj.html test-gw-gtkobj-autogen.h: test-gw-gtkobj-spec.scm
LD_LIBRARY_PATH=${LOCALPWD}/..:${LOCALPWD}/..: \
- guile -c \
+ guile -c ${GW_SLIB_DIR} \
"(set! %load-path (cons \"${G_WRAP_MODULE_DIR}\" %load-path)) \
(set! %load-path (cons \".\" %load-path)) \
(use-modules (g-wrap)) \

1
devel/g-wrap/pkg/DESCR Normal file
View File

@ -0,0 +1 @@
g-wrap provides scheme wrappers, needed for GnuCash

View File

@ -0,0 +1,6 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2005/02/24 01:42:47 todd Exp $
@lib lib/libgw-glib.so.0.0
@lib lib/libgw-standard.so.0.0
@lib lib/libgw-wct.so.0.0
@lib lib/libgwrap-glib.so.1.0
@lib lib/libgwrap-wct.so.1.0

32
devel/g-wrap/pkg/PLIST Normal file
View File

@ -0,0 +1,32 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2005/02/24 01:42:47 todd Exp $
bin/g-wrap-config
include/g-wrap/
include/g-wrap/g-wrap-compatibility.h
include/g-wrap/g-wrap-glib.h
include/g-wrap/g-wrap-wct.h
@info info/g-wrap.info
lib/libgw-glib.la
lib/libgw-standard.la
lib/libgw-wct.la
lib/libgwrap-glib.a
lib/libgwrap-glib.la
lib/libgwrap-wct.a
lib/libgwrap-wct.la
@comment share/aclocal/
share/aclocal/g-wrap.m4
@comment share/guile/
share/guile/g-wrap/
share/guile/g-wrap.scm
share/guile/g-wrap/enumeration.scm
share/guile/g-wrap/g-translate.scm
share/guile/g-wrap/gw-glib-spec.scm
share/guile/g-wrap/gw-glib.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
%%SHARED%%