Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Aug 2016 19:49:27 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r421130 - in head/devel/apache-rat: . files
Message-ID:  <201608301949.u7UJnR0d028778@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Tue Aug 30 19:49:27 2016
New Revision: 421130
URL: https://svnweb.freebsd.org/changeset/ports/421130

Log:
  Introduce the new apache-rat 0.11 port.
  
  Apache Rat is a release audit tool, focused on licenses. Use Rat to improve
  accuracy and efficiency when checking releases for licenses.
  
  WWW: http://creadur.apache.org/rat/
  
  PR:		203846
  Submitted by:	pfg@

Added:
  head/devel/apache-rat/
  head/devel/apache-rat/Makefile   (contents, props changed)
  head/devel/apache-rat/distinfo   (contents, props changed)
  head/devel/apache-rat/files/
  head/devel/apache-rat/files/apache-rat.sh.in   (contents, props changed)
  head/devel/apache-rat/pkg-descr   (contents, props changed)
  head/devel/apache-rat/pkg-plist   (contents, props changed)

Added: head/devel/apache-rat/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/apache-rat/Makefile	Tue Aug 30 19:49:27 2016	(r421130)
@@ -0,0 +1,45 @@
+# Created by: Pedro Giffuni
+# $FreeBSD$
+
+PORTNAME=	apache-rat
+PORTVERSION=	0.11
+CATEGORIES=	devel java
+MASTER_SITES=	APACHE/creadur/${PORTNAME}-${PORTVERSION}/
+DISTNAME=	${PORTNAME}-${PORTVERSION}-bin
+
+MAINTAINER=	pfg@FreeBSD.org
+COMMENT=	Release audit tool
+
+LICENSE=	APACHE20
+
+USES=		tar:bzip2
+USE_JAVA=	yes
+
+NO_BUILD=	YES
+DATADIR=	${JAVASHAREDIR}/${PORTNAME}
+
+PORTDOCS=	README-ANT.txt README-CLI.txt README.txt RELEASE_NOTES.txt
+
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+SUB_FILES=	apache-rat.sh
+
+.include <bsd.port.options.mk>
+
+do-install:
+	@${ECHO_MSG} ">> Installing JAR..."
+	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-${PORTVERSION}.jar \
+	   ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
+	@${ECHO_MSG} " [ DONE ]"
+	@${ECHO_MSG} ">> Installing script..."
+	${INSTALL_SCRIPT} ${WRKDIR}/apache-rat.sh ${STAGEDIR}${PREFIX}/bin/apache-rat
+	@${ECHO_MSG} " [ DONE ]"
+
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	@${ECHO_MSG} ">> Installing documentation..."
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
+	@${ECHO_MSG} " [ DONE ]"
+.endif
+
+.include <bsd.port.mk>

Added: head/devel/apache-rat/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/apache-rat/distinfo	Tue Aug 30 19:49:27 2016	(r421130)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1472586549
+SHA256 (apache-rat-0.11-bin.tar.bz2) = 313a021845570e67d694fec716af72e6fef0731af63a10750b642b06b40b0e98
+SIZE (apache-rat-0.11-bin.tar.bz2) = 1281784

Added: head/devel/apache-rat/files/apache-rat.sh.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/apache-rat/files/apache-rat.sh.in	Tue Aug 30 19:49:27 2016	(r421130)
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# FreeBSD-specific script for Apache Rat.
+#
+# $FreeBSD$
+#
+# See: http://creadur.apache.org/rat/apache-rat/
+
+JAVACMD="${JAVACMD:-"%%LOCALBASE%%/bin/java"}"
+if [ ! -x "${JAVACMD}" ]; then
+	echo "Error: ${JAVACMD} is not present on your system" >&2
+	echo "       Please specify the path to an existing java executable with the" >&2
+	echo "       JAVACMD environment variable when running rat." >&2
+	exit 1
+fi
+
+exec "${JAVACMD}" -jar %%JAVAJARDIR%%/apache-rat.jar "$@"

Added: head/devel/apache-rat/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/apache-rat/pkg-descr	Tue Aug 30 19:49:27 2016	(r421130)
@@ -0,0 +1,6 @@
+Apache Rat.
+
+Apache Rat is a release audit tool, focused on licenses. Use Rat to improve
+accuracy and efficiency when checking releases for licenses.
+
+WWW: http://creadur.apache.org/rat/

Added: head/devel/apache-rat/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/apache-rat/pkg-plist	Tue Aug 30 19:49:27 2016	(r421130)
@@ -0,0 +1,2 @@
+bin/apache-rat
+%%JAVAJARDIR%%/apache-rat.jar



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