update to kawa-3.0, from Timo Myyrä

This commit is contained in:
sthen 2018-05-11 10:37:17 +00:00
parent ee4a13b581
commit f5fdcdbd94
9 changed files with 12 additions and 179 deletions

View File

@ -1,10 +1,8 @@
# $OpenBSD: Makefile,v 1.16 2018/03/18 13:26:46 sthen Exp $ # $OpenBSD: Makefile,v 1.17 2018/05/11 10:37:17 sthen Exp $
BROKEN-i386= doesn't build reliably#'
COMMENT= Scheme and language framework for the Java platform COMMENT= Scheme and language framework for the Java platform
DISTNAME= kawa-2.4 DISTNAME= kawa-3.0
CATEGORIES= lang java CATEGORIES= lang java
HOMEPAGE= https://www.gnu.org/software/kawa/ HOMEPAGE= https://www.gnu.org/software/kawa/
@ -24,7 +22,7 @@ USE_GMAKE= Yes
AUTOCONF_VERSION= 2.69 AUTOCONF_VERSION= 2.69
AUTOMAKE_VERSION= 1.15 AUTOMAKE_VERSION= 1.15
WANTLIB+= c ncurses readline WANTLIB+= c curses readline
BUILD_DEPENDS= print/texinfo \ BUILD_DEPENDS= print/texinfo \
${MODGNU_AUTOCONF_DEPENDS} \ ${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS} ${MODGNU_AUTOMAKE_DEPENDS}
@ -40,14 +38,7 @@ MAKE_FLAGS= JAVAC=${JAVA_HOME}/bin/javac \
AUTOCONF_VERSION=${AUTOCONF_VERSION} \ AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} AUTOMAKE_VERSION=${AUTOMAKE_VERSION}
.include <bsd.port.arch.mk>
# fails with this on i386, fails without this on amd64, unsure about
# other arch but lp64 is probably not a bad indicator.
.if ${PROPERTIES:Mlp64}
MAKE_ENV+= SLIB_JAVAFLAGS=-Xmx1200M MAKE_ENV+= SLIB_JAVAFLAGS=-Xmx1200M
.else
MAKE_ENV+= SLIB_JAVAFLAGS=-Xmx800M
.endif
# use UTF-8 encoding to avoid following errors: # use UTF-8 encoding to avoid following errors:
# unmappable character for encoding ASCII # unmappable character for encoding ASCII
@ -56,8 +47,12 @@ MAKE_ENV+= LANG=en_US.UTF-8
TEST_FLAGS = DIFF=diff \ TEST_FLAGS = DIFF=diff \
PATH=${PATH}:${JAVA_HOME}/bin PATH=${PATH}:${JAVA_HOME}/bin
# Use a bit complex xargs avoid unneeded modifications to files
# causing build issues on i386.
pre-patch: pre-patch:
find ${WRKSRC} -type f | \ find ${WRKSRC} -type f | \
xargs sed -i 's,^JAR =.*,JAR = ${JAVA_HOME}/bin/jar,g' xargs fgrep -l "JAR =" | \
xargs sed -i 's,^JAR =.*,JAR = ${JAVA_HOME}/bin/jar,g'; \
touch ${WRKSRC}/configure.ac
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (kawa-2.4.tar.gz) = FMCL6BYxoeuLiSbKI1GYyhZRVsDBeey+boONP0tHY10= SHA256 (kawa-3.0.tar.gz) = Hm6FIXvW2MKgw0eIgqRXAxTfa5UHj+exIlkRw5q/OM0=
SIZE (kawa-2.4.tar.gz) = 3285436 SIZE (kawa-3.0.tar.gz) = 3393879

View File

@ -1,10 +0,0 @@
$OpenBSD: patch-bin_kawa_sh_in,v 1.1 2017/08/31 06:33:05 jasper Exp $
--- bin/kawa.sh.in.orig Sun Apr 9 08:44:21 2017
+++ bin/kawa.sh.in Sun Apr 9 08:44:30 2017
@@ -1,5 +1,5 @@
#!@KAWA_SHELL@
-thisfile=`type -p $0`
+thisfile=`command -v $0`
case "$thisfile" in
"") echo "installation error - can't find path to $0"; exit -1 ;;
/*) ;;

View File

@ -1,19 +0,0 @@
$OpenBSD: patch-doc_Makefile_am,v 1.1 2017/08/31 06:33:05 jasper Exp $
--- doc/Makefile.am.orig Sat Mar 25 12:33:43 2017
+++ doc/Makefile.am Sat Mar 25 12:34:24 2017
@@ -29,12 +29,11 @@ TEXI2PDF = texi2pdf
man_MANS = kawa.1 qexo.1
kawa.1: $(srcdir)/kawa.man
- nroff -man $(srcdir)/kawa.man > tpm-kawa.1
- mv tpm-kawa.1 kawa.1
+ cp $(srcdir)/kawa.man kawa.1
+
qexo.1: $(srcdir)/qexo.man
- nroff -man $(srcdir)/qexo.man > tpm-qexo1
- mv tpm-qexo1 qexo.1
+ cp $(srcdir)/qexo.man qexo.1
../kawa-doc-$(VERSION).tar.gz: kawa.info $(KAWA_HTMLDIR)/index.html kawa.pdf
tar cf - $(KAWA_HTMLDIR)/*.html kawa.pdf|gzip -c --best >$@

View File

@ -1,85 +0,0 @@
$OpenBSD: patch-gnu_xquery_testsuite_Makefile_am,v 1.1 2017/08/31 06:33:05 jasper Exp $
Index: gnu/xquery/testsuite/Makefile.am
--- gnu/xquery/testsuite/Makefile.am.orig
+++ gnu/xquery/testsuite/Makefile.am
@@ -2,6 +2,7 @@ include $(top_srcdir)/Make-rules
KAWALIB = $(top_builddir)
KAWA = ../../../bin/kawa.sh
+DIFF = diff -b
EXTRA_CLEAN = tmp* *.log testing.zip */*.class
mostlyclean-am: mostlyclean-generic
rm -rf Mod1 Mod2
@@ -34,7 +35,7 @@ XQTS_JAVA_FLAGS = -Xmx120m
check-XQTS: RunXQTS.class
CLASSPATH=$(KAWALIB) \
$(JAVA) $(XQTS_JAVA_FLAGS) gnu.xquery.testsuite.RunXQTS $(XQTS_DIR)
- @if diff -b $(srcdir)/XQTS-trace.exp XQuery-trace.log; \
+ @if $(DIFF) $(srcdir)/XQTS-trace.exp XQuery-trace.log; \
then echo '# XQTS trace output matches'; \
else echo FAIL XQuery trace output mismatch; fi
@@ -47,7 +48,7 @@ check-suite: TestSuite.class
check-maketab1: maketab1.xql
CLASSPATH=".$(CLASSPATH_SEPARATOR)$(KAWALIB)" $(KAWA) $< >tmp2
- @if diff -b $(srcdir)/tab.html tmp2; then echo '# maketab1 test passes'; else echo FAIL maketab1 test; fi
+ @if $(DIFF) $(srcdir)/tab.html tmp2; then echo '# maketab1 test passes'; else echo FAIL maketab1 test; fi
# FIXME - this does not do the correct thing
check-desc:
@@ -59,29 +60,29 @@ multab.class: multab.xql
check-multab: multab.class
CLASSPATH=".$(CLASSPATH_SEPARATOR)$(KAWALIB)" $(JAVA) multab \
max=10 caption="Multiplication table " out:xml-indent=pretty >tmpmul
- @if diff -b $(srcdir)/expectedmul.xml tmpmul; then echo '# multab test passes'; else echo FAIL multab test; fi
+ @if $(DIFF) $(srcdir)/expectedmul.xml tmpmul; then echo '# multab test passes'; else echo FAIL multab test; fi
descend.class: descend.xql
$(KAWA) --main --xquery -C $<
check-descend: descend.class
CLASSPATH=".$(CLASSPATH_SEPARATOR)$(KAWALIB)" $(JAVA) descend >tmpdesc
- @if diff -b $(srcdir)/expdescend.xml tmpdesc; then echo '# descend test passes'; else echo FAIL descend test; fi
+ @if $(DIFF) $(srcdir)/expdescend.xml tmpdesc; then echo '# descend test passes'; else echo FAIL descend test; fi
check-latin1a:
$(KAWA) --xquery $(srcdir)/latin1a.xql >tmplatin1a
- @if diff -b $(srcdir)/latin1a.expected tmplatin1a; then echo '# latin1a test passes'; else echo FAIL latin1a test; fi
+ @if $(DIFF) $(srcdir)/latin1a.expected tmplatin1a; then echo '# latin1a test passes'; else echo FAIL latin1a test; fi
check-xsltest1:
$(KAWA) --xslt -f $(srcdir)/xsltest1.xsl $(srcdir)/outline.xml >tmp-xsltest1.log
- @if diff -b $(srcdir)/xsltest1.expected tmp-xsltest1.log; \
+ @if $(DIFF) $(srcdir)/xsltest1.expected tmp-xsltest1.log; \
then echo '# xsltest1 test passes'; \
else echo FAIL xsltest1 test; fi
check-format-users:
$(KAWA) --xslt $(srcdir)/format-users.xsl $(srcdir)/users.xml \
- |sed 's/^ *//'>tmp-format-users.html
- @if diff -b -B $(srcdir)/exp-format-users.html tmp-format-users.html; then echo '# format-users test passes'; else echo FAIL format-users test; fi
+ |sed 's/^ *//; /^\s*$$/d' >tmp-format-users.html
+ @if $(DIFF) $(srcdir)/exp-format-users.html tmp-format-users.html; then echo '# format-users test passes'; else echo FAIL format-users test; fi
./Mod1/mod1.class: mod1.xql
$(CLASSPATH_ENV) $(KAWA) --module-static -d ../../.. -C $<
@@ -93,7 +94,7 @@ usemod.class: usemod.xql ./Mod1/mod1.class ./Mod2/mod2
$(CLASSPATH_ENV) $(KAWA) --main -C $<
check-mod: usemod.class
CLASSPATH=".$(CLASSPATH_SEPARATOR)$(KAWALIB)" $(JAVA) usemod >tmp-usemod
- @if diff -b $(srcdir)/usemod.exp tmp-usemod; \
+ @if $(DIFF) $(srcdir)/usemod.exp tmp-usemod; \
then echo '# usemod test passes'; \
else echo FAIL usemod test; fi
@@ -101,7 +102,7 @@ bad-1.log: $(srcdir)/bad-1.xql
-CLASSPATH=$(KAWALIB) $(KAWA) -C $< 2>&1 \
| sed -e '1d' -e 's|^.*/bad-1.xql|bad-1.xql|' >bad-1.log
check-bad-1: bad-1.log
- @if diff -b $(srcdir)/expected-1.errs bad-1.log; \
+ @if $(DIFF) $(srcdir)/expected-1.errs bad-1.log; \
then echo '# bad-1 test passes'; \
else echo FAIL bad-1 test; fi

View File

@ -1,12 +0,0 @@
$OpenBSD: patch-gnu_xquery_testsuite_exp-format-users_html,v 1.1 2017/08/31 06:33:05 jasper Exp $
Index: gnu/xquery/testsuite/exp-format-users.html
--- gnu/xquery/testsuite/exp-format-users.html.orig
+++ gnu/xquery/testsuite/exp-format-users.html
@@ -29,4 +29,4 @@
<td>Rip Van Winkle</td>
<td>B</td>
</tr>
-</table>
+</table>
\ No newline at end of file

View File

@ -1,9 +0,0 @@
$OpenBSD: patch-gnu_xquery_testsuite_latin1a_expected,v 1.1 2017/08/31 06:33:05 jasper Exp $
Index: gnu/xquery/testsuite/latin1a.expected
--- gnu/xquery/testsuite/latin1a.expected.orig
+++ gnu/xquery/testsuite/latin1a.expected
@@ -1 +1 @@
-<p>Norwegian letters: ae:&#xE6; oe:&#xF8; aa:&#xE5;</p>
+<p>Norwegian letters: ae:&#xE6; oe:&#xF8; aa:&#xE5;</p>
\ No newline at end of file

View File

@ -1,23 +0,0 @@
$OpenBSD: patch-testsuite_Makefile_am,v 1.1 2017/08/31 06:33:05 jasper Exp $
Index: testsuite/Makefile.am
--- testsuite/Makefile.am.orig
+++ testsuite/Makefile.am
@@ -8,7 +8,7 @@ KAWA = ../bin/kawa.sh
CPJAVA = CLASSPATH="..$(CLASSPATH_SEPARATOR)@conf_classpath@.$(CLASSPATH_SEPARATOR)$$CLASSPATH" $(JAVA)
CPKAWA = CLASSPATH="@conf_classpath@.$(CLASSPATH_SEPARATOR)$$CLASSPATH" $(KAWA)
KAWATEST = CLASSPATH=".$(CLASSPATH_SEPARATOR)$$CLASSPATH" $(KAWA) $(OPTIONS) -e '(load "testing.zip")'
-DIFF = diff --strip-trailing-cr
+DIFF = diff
if ENABLE_SERVLET
if ENABLE_XQUERY
@@ -632,7 +632,7 @@ check-bridge:
$(KAWA) $(OPTIONS) "$(srcdir)/bridge.scm"
check-life-grid:
- $(KAWA) $(srcdir)/life-grid.scm >& life-grid.log
+ $(KAWA) $(srcdir)/life-grid.scm > life-grid.log 2>&1
@if $(DIFF) $(srcdir)/life-grid.expected life-grid.log; \
then echo '# check-life-grid passes'; \
else echo FAIL check-life-grid passes; fi

View File

@ -1,11 +1,7 @@
@comment $OpenBSD: PLIST,v 1.5 2017/08/31 06:33:05 jasper Exp $ @comment $OpenBSD: PLIST,v 1.6 2018/05/11 10:37:17 sthen Exp $
@bin bin/kawa @bin bin/kawa
bin/qexo bin/qexo
info/kawa.info @info info/kawa.info
info/kawa.info-1
info/kawa.info-2
info/kawa.info-3
info/kawa.info-4
@man man/man1/kawa.1 @man man/man1/kawa.1
@man man/man1/qexo.1 @man man/man1/qexo.1
share/kawa/ share/kawa/