svn commit: r435247 - in head/devel: . sonar-scanner-cli sonar-scanner-cli/files
Palle Girgensohn
girgen at FreeBSD.org
Thu Mar 2 15:52:48 UTC 2017
Author: girgen
Date: Thu Mar 2 15:52:46 2017
New Revision: 435247
URL: https://svnweb.freebsd.org/changeset/ports/435247
Log:
Add sonar-scanner-cli
The SonarQube Scanner is recommended as the default launcher to analyze a
project with SonarQube. The SonarQube Scanner allows you to perform source code
analyzes without using tools such as Ant or Maven. The SonarQube platform is an
open source quality management platform, dedicated to continuously analyzing
and measuring the technical quality of source code, from project portfolio down
to the method level. With the SonarQube Scanner, and also a tool like Jenkins,
everyone can analyze all kinds of languages, not just Java.
WWW: http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner
PR: 208667
Added:
head/devel/sonar-scanner-cli/
head/devel/sonar-scanner-cli/Makefile (contents, props changed)
head/devel/sonar-scanner-cli/README.md (contents, props changed)
head/devel/sonar-scanner-cli/distinfo (contents, props changed)
head/devel/sonar-scanner-cli/files/
head/devel/sonar-scanner-cli/files/pkg-message.in (contents, props changed)
head/devel/sonar-scanner-cli/pkg-descr (contents, props changed)
head/devel/sonar-scanner-cli/pkg-plist (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Thu Mar 2 15:45:05 2017 (r435246)
+++ head/devel/Makefile Thu Mar 2 15:52:46 2017 (r435247)
@@ -5609,6 +5609,7 @@
SUBDIR += smv
SUBDIR += soapui
SUBDIR += sonar-ant-task
+ SUBDIR += sonar-scanner-cli
SUBDIR += sonarqube
SUBDIR += sope2
SUBDIR += sope3
Added: head/devel/sonar-scanner-cli/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/sonar-scanner-cli/Makefile Thu Mar 2 15:52:46 2017 (r435247)
@@ -0,0 +1,49 @@
+# Created by: Dusan Vejnovic <freebsd at dussan.org>
+# $FreeBSD$
+
+PORTNAME= sonar-scanner-cli
+PORTVERSION= 2.8
+CATEGORIES= devel java
+MASTER_SITES= https://sonarsource.bintray.com/Distribution/${PORTNAME}/
+DISTNAME= sonar-scanner-${PORTVERSION}
+
+MAINTAINER= freebsd at dussan.org
+COMMENT= Launcher for analyzing projects with SonarQube
+
+LICENSE= LGPL3
+
+NO_ARCH= yes
+NO_BUILD= yes
+
+USES= cpe zip
+CPE_VENDOR= sonarsource
+
+USE_JAVA= yes
+JAVA_VERSION= 1.7+
+
+SR= sonar-runner
+SQ_CLI= sonar-scanner
+SQ_ARCH= x86-${ARCH:S/i386/32/:S/amd64/64/}
+SQ= ${PREFIX}/sonarqube/bin/freebsd-${SQ_ARCH}
+
+SUB_FILES= pkg-message
+PLIST_SUB= SR_HOME=${PREFIX}/${PORTNAME}
+
+OPTIONS_DEFINE= SQ
+SQ_DESC= SonarQube server support
+SQ_RUN_DEPENDS= ${SQ}/sonar.sh.sample:devel/sonarqube
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${PORTNAME})
+ @${MV} -f ${STAGEDIR}${PREFIX}/${PORTNAME}/conf/${SQ_CLI}.properties \
+ ${STAGEDIR}${PREFIX}/${PORTNAME}/conf/${SQ_CLI}.properties.sample
+ @${CHMOD} -R 644 ${STAGEDIR}${PREFIX}/${PORTNAME}
+
+post-install:
+ @${LN} -f ${STAGEDIR}${PREFIX}/${PORTNAME}/bin/${SR} \
+ ${STAGEDIR}${PREFIX}/bin/${SR}
+ @${LN} -f ${STAGEDIR}${PREFIX}/${PORTNAME}/bin/${SQ_CLI} \
+ ${STAGEDIR}${PREFIX}/bin/${SQ_CLI}
+
+.include <bsd.port.mk>
Added: head/devel/sonar-scanner-cli/README.md
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/sonar-scanner-cli/README.md Thu Mar 2 15:52:46 2017 (r435247)
@@ -0,0 +1,8 @@
+# Sonar Scanner CLI port for The FreeBSD Ports
+
+The Sonar Scanner CLI is the default launcher to analyze projects for SonarQube. The Sonar Runner allows you to perform source code analyzes without using tools such as Ant or Maven. The SonarQube platform is an open source quality management platform, dedicated to continuously analyzing and measuring the technical quality of source code, from project portfolio down to the method level. With the Sonar Runner, and also a tool like Jenkins, everyone can analyze all kinds of languages, not just Java. The SonarQube Scanner is recommended as the default launcher to analyze a project with SonarQube. The SonarQube Scanner allows you to perform source code analyzes without using tools such as Ant or Maven. The SonarQube platform is an open source quality management platform, dedicated to continuously analyzing and measuring the technical quality of source code, from project portfolio down to the method level. With the SonarQube Scanner, and also a tool like Jenkins, everyone can analyze all
kinds of languages, not just Java.
+
+___VERSION:___ 2.8
+___MAINTAINER:___ <freebsd at dussan.org>
+___LICENSE:___ [GNU Lesser General Public License, Version 3](http://www.gnu.org/licenses/lgpl-3.0.html)
+___WWW:___ [http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner](http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner)
Added: head/devel/sonar-scanner-cli/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/sonar-scanner-cli/distinfo Thu Mar 2 15:52:46 2017 (r435247)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1484414843
+SHA256 (sonar-scanner-2.8.zip) = 0295365a7e5d4499ec6b46cb6c70f3fa127159b58b73930f675acd0897a6b350
+SIZE (sonar-scanner-2.8.zip) = 496533
Added: head/devel/sonar-scanner-cli/files/pkg-message.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/sonar-scanner-cli/files/pkg-message.in Thu Mar 2 15:52:46 2017 (r435247)
@@ -0,0 +1,10 @@
+************************************************************************
+
+ Before start the SonarQube Scanner (default settings):
+ - create a new SONAR_RUNNER_HOME environment variable set to
+ "/usr/local/sonar-scanner-cli"
+
+ More information:
+ http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner
+
+************************************************************************
Added: head/devel/sonar-scanner-cli/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/sonar-scanner-cli/pkg-descr Thu Mar 2 15:52:46 2017 (r435247)
@@ -0,0 +1,9 @@
+The SonarQube Scanner is recommended as the default launcher to analyze a
+project with SonarQube. The SonarQube Scanner allows you to perform source code
+analyzes without using tools such as Ant or Maven. The SonarQube platform is an
+open source quality management platform, dedicated to continuously analyzing and
+measuring the technical quality of source code, from project portfolio down to
+the method level. With the SonarQube Scanner, and also a tool like Jenkins,
+everyone can analyze all kinds of languages, not just Java.
+
+WWW: http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner
Added: head/devel/sonar-scanner-cli/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/sonar-scanner-cli/pkg-plist Thu Mar 2 15:52:46 2017 (r435247)
@@ -0,0 +1,13 @@
+bin/sonar-runner
+bin/sonar-scanner
+@(,,755) %%SR_HOME%%/bin/sonar-runner
+@(,,755) %%SR_HOME%%/bin/sonar-scanner
+@(,,755) %%SR_HOME%%/bin/sonar-scanner-debug
+%%SR_HOME%%/bin/sonar-runner.bat
+%%SR_HOME%%/bin/sonar-scanner-debug.bat
+%%SR_HOME%%/bin/sonar-scanner.bat
+%%SR_HOME%%/lib/sonar-scanner-cli-2.8.jar
+ at sample %%SR_HOME%%/conf/sonar-scanner.properties.sample
+ at dir(,,755) %%SR_HOME%%/bin
+ at dir(,,755) %%SR_HOME%%/conf
+ at dir(,,755) %%SR_HOME%%/lib
More information about the svn-ports-head
mailing list