Index: devel/sonar-ant-task/Makefile =================================================================== --- devel/sonar-ant-task/Makefile +++ devel/sonar-ant-task/Makefile @@ -0,0 +1,45 @@ +# Created by: Dusan Vejnovic +# $FreeBSD$ + +PORTNAME= sonar-ant-task +PORTVERSION= 2.5 +CATEGORIES= devel java +MASTER_SITES= https://sonarsource.bintray.com/Distribution/sonarqube-ant-task/ \ + LOCAL/ler/sonar-ant-task +DISTNAME= sonarqube-ant-task-${PORTVERSION} +EXTRACT_SUFX= .jar +EXTRACT_ONLY= + +MAINTAINER= freebsd@dussan.org +COMMENT= SonarQube Plugin for analysis projects with an Apache Ant + +LICENSE= LGPL3 + +NO_ARCH= yes +NO_BUILD= yes +NO_WRKSUBDIR= yes + +RUN_DEPENDS+= ant:devel/apache-ant + +USES= cpe +CPE_VENDOR= sonarsource + +USE_JAVA= yes +JAVA_VERSION= 1.7+ + +SUB_FILES= pkg-message +PLIST_FILES= ${PORTNAME}/${PORTNAME}${EXTRACT_SUFX} + +SQ= ${PREFIX}/sonarqube/bin/freebsd + +OPTIONS_DEFINE= SQ +SQ_DESC= SonarQube server support +SQ_RUN_DEPENDS= ${SQ}/sonar.sh.sample:devel/sonarqube + +do-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME} + ${INSTALL_DATA} ${DISTDIR}/${DISTFILES} \ + ${STAGEDIR}${PREFIX}/${PORTNAME}/${PORTNAME}${EXTRACT_SUFX} + @${CHMOD} -R 644 ${STAGEDIR}${PREFIX}/${PORTNAME} + +.include Index: devel/sonar-ant-task/distinfo =================================================================== --- devel/sonar-ant-task/distinfo +++ devel/sonar-ant-task/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1484408469 +SHA256 (sonarqube-ant-task-2.5.jar) = 43e7a8e0a5f8d44cd602de4a7ccf2e819e23429370d1b97425d38562651331cf +SIZE (sonarqube-ant-task-2.5.jar) = 537405 Index: devel/sonar-ant-task/files/pkg-message.in =================================================================== --- devel/sonar-ant-task/files/pkg-message.in +++ devel/sonar-ant-task/files/pkg-message.in @@ -0,0 +1,12 @@ +************************************************************************ + + To integrate SonarQube with SonarQube Scanner for Ant (default + settings): + - define a new sonar Ant target in your Ant build script + - for the SonarQube target set classpath value to + "/usr/local/sonar-ant-task/sonar-ant-task.jar" + + More information: + http://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Ant + +************************************************************************ Index: devel/sonar-ant-task/pkg-descr =================================================================== --- devel/sonar-ant-task/pkg-descr +++ devel/sonar-ant-task/pkg-descr @@ -0,0 +1,8 @@ +The SonarQube Scanner for Ant is an Ant Task that is wrapper of SonarQube +Scanner, which works by invoking SonarQube Scanner and passing to it all +properties named following a sonar.* convention. This has the downside of not +being very Ant-y, but the upside of providing instant availability of any new +analysis parameter introduced by a new version of a plugin or of SonarQube +itself. + +WWW: http://docs.sonarqube.org/display/SONAR/Installing+and+Configuring+Ant+SonarQube+Task