1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name sonarqube |
---|
7 | license BSD |
---|
8 | version 5.1.2 |
---|
9 | categories java www |
---|
10 | platforms darwin |
---|
11 | |
---|
12 | maintainers nomaintainer |
---|
13 | description SonarQube is an open platform to manage code quality. |
---|
14 | long_description SonarQube is an open platform to manage code quality. |
---|
15 | |
---|
16 | homepage http://www.sonarqube.org/ |
---|
17 | master_sites https://sonarsource.bintray.com/Distribution/sonarqube/ |
---|
18 | |
---|
19 | checksums md5 b626939d25d2ffa84c53d76ffbf5fae9 \ |
---|
20 | rmd160 70a299b501eb65807a209f84891d13a31f70ff19 \ |
---|
21 | sha256 a8d63d837242d0d07c0b3f65cfa9c84d5ae82ee51c6cbb52248bcf0d1bc58491 |
---|
22 | |
---|
23 | use_zip yes |
---|
24 | platforms darwin |
---|
25 | supported_archs noarch |
---|
26 | use_configure no |
---|
27 | build {} |
---|
28 | |
---|
29 | post-build { |
---|
30 | foreach f [glob ${worksrcpath}/bin/linux* ${worksrcpath}/bin/solaris* ${worksrcpath}/bin/windows*] {file delete -force -- $f} |
---|
31 | reinplace -W ${worksrcpath}/conf "s|#sonar.web.javaOpts|sonar.web.javaOpts|g" sonar.properties |
---|
32 | reinplace -W ${worksrcpath}/conf "s|#sonar.web.javaAdditionalOpts=|sonar.web.javaAdditionalopts=-server|g" sonar.properties |
---|
33 | } |
---|
34 | |
---|
35 | destroot { |
---|
36 | set sonardir ${destroot}${prefix}/share/${name} |
---|
37 | set platform "macosx-universal-64" |
---|
38 | set finalroot ${prefix}/share/${name}/${name}-${version} |
---|
39 | |
---|
40 | xinstall -m 755 -d ${sonardir} |
---|
41 | file copy ${worksrcpath} ${sonardir} |
---|
42 | |
---|
43 | ln -s ${finalroot}/bin/${platform}/sonar.sh ${destroot}${prefix}/bin/sonar |
---|
44 | } |
---|
45 | |
---|
46 | livecheck.type regex |
---|
47 | livecheck.url ${homepage}/downloads/ |
---|
48 | livecheck.regex "SonarQube (\\d+(?:\\.\\d+)*)" |
---|
49 | |
---|
50 | |
---|
51 | startupitem.create yes |
---|
52 | startupitem.logfile ${prefix}/var/log/${name}.log |
---|
53 | startupitem.logevents yes |
---|
54 | startupitem.netchange no |
---|
55 | startupitem.start ${prefix}/bin/sonar start |
---|
56 | startupitem.stop ${prefix}/bin/sonar stop |
---|
57 | startupitem.restart ${prefix}/bin/sonar restart |
---|