From owner-svn-ports-all@freebsd.org Tue Mar 14 12:29:52 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7D28ED0A4BF; Tue, 14 Mar 2017 12:29:52 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 57B24180A; Tue, 14 Mar 2017 12:29:52 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v2ECTpWp029053; Tue, 14 Mar 2017 12:29:51 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v2ECTp8o029050; Tue, 14 Mar 2017 12:29:51 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201703141229.v2ECTp8o029050@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Tue, 14 Mar 2017 12:29:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r436150 - in head/lang/kawa: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Mar 2017 12:29:52 -0000 Author: danfe Date: Tue Mar 14 12:29:51 2017 New Revision: 436150 URL: https://svnweb.freebsd.org/changeset/ports/436150 Log: - Update `lang/kawa' to version 2.3 - Instead sed(1)ing over every file set needed variables via MAKE_ARGS - Unbreak the tests (against JDK 1.8) and convert to test framework TIMESTAMP (kawa-2.3.tar.gz) = 1484583959 Added: head/lang/kawa/files/ head/lang/kawa/files/patch-bin_kawa.sh.in (contents, props changed) Modified: head/lang/kawa/Makefile head/lang/kawa/distinfo Modified: head/lang/kawa/Makefile ============================================================================== --- head/lang/kawa/Makefile Tue Mar 14 12:04:35 2017 (r436149) +++ head/lang/kawa/Makefile Tue Mar 14 12:29:51 2017 (r436150) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= kawa -PORTVERSION= 2.1 +PORTVERSION= 2.3 CATEGORIES= lang scheme java MASTER_SITES= GNU @@ -19,25 +19,24 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-kawa-frontend \ --with-java-source=${JAVA_PORT_VERSION} CONFIGURE_ENV= MAKEINFO=${LOCALBASE}/bin/makeinfo -MAKE_ENV= READLINE_LIB_PATH=${LOCALBASE}/lib +MAKE_ARGS= JAR="${JAR}" READLINE_LIB_PATH="-L${LOCALBASE}/lib" +MAKE_ENV= JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8 +TEST_TARGET= check +TEST_ARGS= # must be empty, otherwise tests fail +TEST_ENV= # must be empty, otherwise tests fail MAKE_JOBS_UNSAFE=yes INFO= kawa -PLIST_FILES= bin/kawa bin/qexo share/java/kawa.jar \ - share/java/kawa-${PORTVERSION}.jar \ +PLIST_FILES= bin/kawa bin/qexo \ + share/kawa/bin/kawa share/kawa/lib/kawa.jar \ man/man1/kawa.1.gz man/man1/qexo.1.gz \ pre-patch: - @${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} \ - -e '/^JAR =/s|[a-zA-Z]*$$|${JAR}|g;' @${REINPLACE_CMD} -e 's|{JAVAC-javac}|{JAVAC-${JAVAC}}|g;' \ -e 's|{JAVA-java}|{JAVA-${JAVA}}|g;' ${WRKSRC}/configure - @${REINPLACE_CMD} -e '/^READLINE_LIB_PATH =/s|$$|-L${LOCALBASE}/lib|' \ - ${WRKSRC}/bin/Makefile.in ${WRKSRC}/bin/Makefile.am - -regression-test: build - ${MAKE_CMD} -C ${WRKSRC} check + @${REINPLACE_CMD} -e '/life-grid.log$$/s,>&,>,' \ + ${WRKSRC}/testsuite/Makefile.in .include Modified: head/lang/kawa/distinfo ============================================================================== --- head/lang/kawa/distinfo Tue Mar 14 12:04:35 2017 (r436149) +++ head/lang/kawa/distinfo Tue Mar 14 12:29:51 2017 (r436150) @@ -1,2 +1,3 @@ -SHA256 (kawa-2.1.tar.gz) = caf8eb01fbefe82f3e44b5ad08d4356ee56335da79499d9cca2b720f7d04fd39 -SIZE (kawa-2.1.tar.gz) = 3015953 +TIMESTAMP = 1484583959 +SHA256 (kawa-2.3.tar.gz) = ecddb2b149e41f7c1614c3009138556b954e8cc6a3135a953eb97e7e86dc47fe +SIZE (kawa-2.3.tar.gz) = 3273722 Added: head/lang/kawa/files/patch-bin_kawa.sh.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/kawa/files/patch-bin_kawa.sh.in Tue Mar 14 12:29:51 2017 (r436150) @@ -0,0 +1,31 @@ +--- bin/kawa.sh.in.orig 2016-11-22 21:30:51 UTC ++++ bin/kawa.sh.in +@@ -1,13 +1,7 @@ + #!@KAWA_SHELL@ +-thisfile=`type -p $0` +-case "$thisfile" in +- "") echo "installation error - can't find path to $0"; exit -1 ;; +- /*) ;; +- *) thisfile="$PWD/$thisfile" ;; +-esac +-while test -L "$thisfile"; do thisfile=$(readlink -f "$thisfile"); done +-thisdir=`dirname "$thisfile"` +-kawadir=`echo "$thisdir" | sed -e 's|/bin\(/\.\)*$||'` ++ ++kawadir=`readlink -f "$(dirname "$0")/.."` ++ + if [ "$#" -eq 0 ] + then + command_line="$0" +@@ -19,9 +13,9 @@ test -t 0 || no_console="--no-console" + # If configured with --enable-kawa-frontend then kawa.sh is + # only used for pre-install testing. In that case + # we don't need to set KAWALIB, since kawapath.c looks for it in "..". +-@ENABLE_KAWA_FRONTEND_TRUE@ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$thisdir ++@ENABLE_KAWA_FRONTEND_TRUE@ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$kawadir/bin + @ENABLE_KAWA_FRONTEND_TRUE@ export LD_LIBRARY_PATH +-@ENABLE_KAWA_FRONTEND_TRUE@ exec $thisdir/kawa "$@" ++@ENABLE_KAWA_FRONTEND_TRUE@ exec $kawadir/bin/kawa "$@" + + KAWALIB=${KAWALIB-"`@CYGPATH_W@ $kawadir/lib/kawa.jar`"} + # MSYS: KAWALIB=${KAWALIB-"`cd $kawadir/lib/; pwd -W`@CLASSPATH_SEPARATOR@kawa.jar`"}