mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
a0117ecf14
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. Features: - Supports languages: Java, C/C++, Objective-C, C#, PHP, Flex, Groovy, JavaScript, Python, PL/SQL, COBOL, etc. - Can also be used in Android development. - Offers reports on duplicated code, coding standards, unit tests, code coverage, complex code, potential bugs, comments and design and architecture. - Records metrics history and provides evolution graphs ("time machine") and differential views. - Provides fully automated analyses: integrates with Maven, Ant, Gradle and continuous integration tools (Atlassian Bamboo, Jenkins, Hudson, etc.). - Integrates with the Eclipse development environment. - Integrates with external tools: JIRA, Mantis, LDAP, Fortify, etc. - Is expandable with the use of plugins. - Implements the SQALE methodology to compute technical debt. WWW: http://www.sonarqube.org/ PR: 203077 Submitted by: Dusan Vejnovic <freebsd@dussan.org>
84 lines
2.4 KiB
Makefile
84 lines
2.4 KiB
Makefile
# Created by: Dusan Vejnovic <freebsd@dussan.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= sonarqube
|
|
PORTVERSION= 5.6
|
|
CATEGORIES= devel www java
|
|
MASTER_SITES= http://sonarsource.bintray.com/Distribution/sonarqube/
|
|
|
|
MAINTAINER= freebsd@dussan.org
|
|
COMMENT= Platform for continuous inspection of code quality
|
|
|
|
LICENSE= LGPL3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libbiconv.so:converters/iconv
|
|
RUN_DEPENDS= javaservicewrapper:sysutils/javaservicewrapper
|
|
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
USERS= www
|
|
GROUPS= www
|
|
|
|
USES= cpe dos2unix zip
|
|
CPE_VENDOR= sonarsource
|
|
DOS2UNIX_GLOB= *.properties *.conf
|
|
|
|
USE_JAVA= yes
|
|
JAVA_VERSION= 1.7+
|
|
|
|
SQ_FILE= sonar.sh
|
|
SQ_HOME= ${PREFIX}/${PORTNAME}
|
|
SQ_LOG_DIR= /var/log/${PORTNAME}
|
|
SQ_LOG_FILE= ${PORTNAME}.log
|
|
SQ_JSW= ${PREFIX}/lib/javaservicewrapper
|
|
|
|
SUB_LIST+= SQ_GROUP=${GROUPS} \
|
|
SQ_LOG_DIR=${SQ_LOG_DIR} \
|
|
SQ_LOG_FILE=${SQ_LOG_FILE} \
|
|
SQ_RC=${PORTNAME} \
|
|
SQ_RUN=${SQ_HOME}/bin/freebsd/${SQ_FILE} \
|
|
SQ_USER=${USERS}
|
|
PLIST_SUB+= SQ_GROUP=${GROUPS} \
|
|
SQ_HOME=${SQ_HOME} \
|
|
SQ_USER=${USERS}
|
|
|
|
OPTIONS_RADIO= SQL
|
|
OPTIONS_RADIO_SQL= MYSQL PGSQL
|
|
|
|
MYSQL_USE= mysql=yes
|
|
PGSQL_USES= pgsql
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%DIR%%|${SQ_HOME}|' \
|
|
-e 's|%%LIB%%|${SQ_JSW}|' \
|
|
-e 's|%%LOG%%|${SQ_LOG_DIR}/${SQ_LOG_FILE}|' \
|
|
-e 's|%%WRAPPER_JAR%%|${SQ_JSW}/lib/wrapper.jar|' \
|
|
${WRKSRC}/conf/wrapper.conf
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${SQ_HOME}
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${SQ_HOME})
|
|
@${MKDIR} ${STAGEDIR}${SQ_HOME}/bin/freebsd/lib
|
|
@${CP} ${STAGEDIR}${SQ_HOME}/bin/linux-x86-64/${SQ_FILE} \
|
|
${STAGEDIR}${SQ_HOME}/bin/freebsd
|
|
@${REINPLACE_CMD} -e 's|#RUN_AS_USER=|RUN_AS_USER=${USERS}|' \
|
|
-e 's|-p $$pid -o args|ww $$pid|' \
|
|
-e 's|=\"./wrapper\"|=\"${SQ_JSW}/bin/wrapper\"|' \
|
|
${STAGEDIR}${SQ_HOME}/bin/freebsd/${SQ_FILE}
|
|
@${MV} -f ${STAGEDIR}${SQ_HOME}/bin/freebsd/${SQ_FILE} \
|
|
${STAGEDIR}${SQ_HOME}/bin/freebsd/${SQ_FILE}.sample
|
|
@${MV} -f ${STAGEDIR}${SQ_HOME}/conf/sonar.properties \
|
|
${STAGEDIR}${SQ_HOME}/conf/sonar.properties.sample
|
|
@${MV} -f ${STAGEDIR}${SQ_HOME}/conf/wrapper.conf \
|
|
${STAGEDIR}${SQ_HOME}/conf/wrapper.conf.sample
|
|
@${RM} -drf ${STAGEDIR}${SQ_HOME}/bin/linux-x86-32
|
|
@${RM} -drf ${STAGEDIR}${SQ_HOME}/bin/linux-x86-64
|
|
@${RM} -drf ${STAGEDIR}${SQ_HOME}/bin/macosx-universal-64
|
|
@${RM} -drf ${STAGEDIR}${SQ_HOME}/bin/windows-x86-32
|
|
@${RM} -drf ${STAGEDIR}${SQ_HOME}/bin/windows-x86-64
|
|
|
|
.include <bsd.port.mk>
|