Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Mar 2020 21:06:07 +0000 (UTC)
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r529128 - in head/devel: . libmatthew libmatthew/files
Message-ID:  <202003252106.02PL67UF072631@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: 0mp
Date: Wed Mar 25 21:06:07 2020
New Revision: 529128
URL: https://svnweb.freebsd.org/changeset/ports/529128

Log:
  New port: devel/libmatthew
  
  Selection of libraries for Java which are useful and not provided with
  Java.
  
  - Unix Sockets Library: This is a collection of classes and native code to
    allow you to read and write Unix sockets in Java.
  - Debug Library: This is a comprehensive logging and debugging solution.
  - CGI Library: This is a collection of classes and native code to allow you
    to write CGI applications in Java.
  - I/O Library: This provides a few much needed extensions to the Java I/O
    subsystem. Firstly, there is a class which will connect and InputStream
    with an OutputStream and copy data between them.  Secondly there are two
    classes for inserting into an Input or OutputStream pipe a command line
    command, so that everything is piped through that command.  Thirdly there
    are a pair of classes for splitting streams in two. This can either be to
    two OuputStreams, or to an OutputStream and a file. Equivelent to the
    UNIX tool tee in UNIX pipes.
  - Hexdump: This class formats byte-arrays in hex and ascii for display.
  
  WWW: http://www.matthew.ath.cx/projects/java/

Added:
  head/devel/libmatthew/
  head/devel/libmatthew/Makefile   (contents, props changed)
  head/devel/libmatthew/distinfo   (contents, props changed)
  head/devel/libmatthew/files/
  head/devel/libmatthew/files/patch-Makefile   (contents, props changed)
  head/devel/libmatthew/pkg-descr   (contents, props changed)
  head/devel/libmatthew/pkg-plist   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Wed Mar 25 21:05:30 2020	(r529127)
+++ head/devel/Makefile	Wed Mar 25 21:06:07 2020	(r529128)
@@ -1242,6 +1242,7 @@
     SUBDIR += liblxqt
     SUBDIR += libmaa
     SUBDIR += libmatheval
+    SUBDIR += libmatthew
     SUBDIR += libmba
     SUBDIR += libmill
     SUBDIR += libmimedir

Added: head/devel/libmatthew/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libmatthew/Makefile	Wed Mar 25 21:06:07 2020	(r529128)
@@ -0,0 +1,27 @@
+# $FreeBSD$
+
+PORTNAME=	libmatthew
+DISTVERSION=	0.8.1
+CATEGORIES=	devel java
+MASTER_SITES=	http://www.matthew.ath.cx/projects/java/
+DISTNAME=	${PORTNAME}-java-${DISTVERSION}
+
+MAINTAINER=	0mp@FreeBSD.org
+COMMENT=	Selection of Java libraries by Matthew Johnson
+
+LICENSE=	EXPAT
+LICENSE_NAME=	Expat License
+LICENSE_FILE=	${WRKSRC}/COPYING
+LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+
+USES=		gmake localbase:ldconfig
+USE_JAVA=	yes
+USE_LDCONFIG=	yes
+
+MAKE_ENV=	JAVA_HOME='${JAVA_HOME}' \
+		LDSHAREFLAGS='-fpic -shared'
+
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/jni/*-java.so
+
+.include <bsd.port.mk>

Added: head/devel/libmatthew/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libmatthew/distinfo	Wed Mar 25 21:06:07 2020	(r529128)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1585137871
+SHA256 (libmatthew-java-0.8.1.tar.gz) = 46782b940c71d8db07470633efcf65c2aeda94de9a846fe178a5918fb2ad026f
+SIZE (libmatthew-java-0.8.1.tar.gz) = 29064

Added: head/devel/libmatthew/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libmatthew/files/patch-Makefile	Wed Mar 25 21:06:07 2020	(r529128)
@@ -0,0 +1,32 @@
+--- Makefile.orig	2020-03-25 12:08:05 UTC
++++ Makefile
+@@ -6,13 +6,13 @@ GCJ?=gcj
+ CC?=gcc
+ LD?=gcc
+ JPPFLAGS+=-C -P
+-CFLAGS+=-Wall -Os -pedantic -Werror
++CFLAGS+=-Wall -pedantic -Werror
+ CSTD?=-std=c99
+ CSHAREFLAG+=-fpic -fno-stack-protector
+ GCJJNIFLAG=-fjni
+ JVERCFLAGS+=-source 1.5
+ JCFLAGS+=
+-INCLUDES+=-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux
++INCLUDES+=-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/freebsd
+ JAVADOCFLAGS?=-quiet -author -link http://java.sun.com/j2se/1.4.2/docs/api/
+ 
+ LDVER?=$(shell ld -v | cut -d' ' -f1)
+@@ -91,11 +91,11 @@ libmatthew-java-$(MATTVER).tar.gz: Makefile cx cgi-jav
+ 	tar zcf $@ libmatthew-java-$(MATTVER)
+ 
+ debug-enable-$(DEBUGVER).jar: cx/ath/matthew/debug/Debug.jpp
+-	make .enabledebug
++	$(MAKE) .enabledebug
+ 	echo "Class-Path: $(JARDIR)/hexdump.jar" > Manifest
+ 	(cd classes;jar cfm ../$@ ../Manifest cx/ath/matthew/debug/*.class)
+ debug-disable-$(DEBUGVER).jar: cx/ath/matthew/debug/Debug.jpp
+-	make .disabledebug
++	$(MAKE) .disabledebug
+ 	echo "Class-Path: $(JARDIR)/hexdump.jar" > Manifest
+ 	(cd classes;jar cfm ../$@ ../Manifest cx/ath/matthew/debug/*.class)
+ .enabledebug: cx/ath/matthew/debug/Debug.jpp 

Added: head/devel/libmatthew/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libmatthew/pkg-descr	Wed Mar 25 21:06:07 2020	(r529128)
@@ -0,0 +1,18 @@
+Selection of libraries for Java which are useful and not provided with Java.
+
+- Unix Sockets Library: This is a collection of classes and native code to
+  allow you to read and write Unix sockets in Java.
+- Debug Library: This is a comprehensive logging and debugging solution.
+- CGI Library: This is a collection of classes and native code to allow you to
+  write CGI applications in Java.
+- I/O Library: This provides a few much needed extensions to the Java I/O
+  subsystem. Firstly, there is a class which will connect and InputStream with
+  an OutputStream and copy data between them.  Secondly there are two classes
+  for inserting into an Input or OutputStream pipe a command line command, so
+  that everything is piped through that command.  Thirdly there are a pair of
+  classes for splitting streams in two. This can either be to two OuputStreams,
+  or to an OutputStream and a file. Equivelent to the UNIX tool tee in UNIX
+  pipes.
+- Hexdump: This class formats byte-arrays in hex and ascii for display.
+
+WWW: http://www.matthew.ath.cx/projects/java/

Added: head/devel/libmatthew/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libmatthew/pkg-plist	Wed Mar 25 21:06:07 2020	(r529128)
@@ -0,0 +1,14 @@
+lib/jni/libcgi-java.so
+lib/jni/libunix-java.so
+%%JAVASHAREDIR%%/cgi-0.6.jar
+%%JAVASHAREDIR%%/cgi.jar
+%%JAVASHAREDIR%%/debug-disable-1.1.jar
+%%JAVASHAREDIR%%/debug-disable.jar
+%%JAVASHAREDIR%%/debug-enable-1.1.jar
+%%JAVASHAREDIR%%/debug-enable.jar
+%%JAVASHAREDIR%%/hexdump-0.2.jar
+%%JAVASHAREDIR%%/hexdump.jar
+%%JAVASHAREDIR%%/io-0.1.jar
+%%JAVASHAREDIR%%/io.jar
+%%JAVASHAREDIR%%/unix-0.5.jar
+%%JAVASHAREDIR%%/unix.jar



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003252106.02PL67UF072631>