From owner-svn-ports-head@freebsd.org Tue Aug 30 19:49:28 2016 Return-Path: Delivered-To: svn-ports-head@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 9B80CBC956D; Tue, 30 Aug 2016 19:49:28 +0000 (UTC) (envelope-from cy@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 7698717A; Tue, 30 Aug 2016 19:49:28 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u7UJnRgQ028783; Tue, 30 Aug 2016 19:49:27 GMT (envelope-from cy@FreeBSD.org) Received: (from cy@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u7UJnR0d028778; Tue, 30 Aug 2016 19:49:27 GMT (envelope-from cy@FreeBSD.org) Message-Id: <201608301949.u7UJnR0d028778@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cy set sender to cy@FreeBSD.org using -f From: Cy Schubert Date: Tue, 30 Aug 2016 19:49:27 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2016 19:49:28 -0000 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 + +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 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