java/javacc/Portfile: version -6.0 +7.0.13 and related changes #30388
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
+# -- 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 +
PortSystem 1.0
-name javacc
-version 6.0
+revision 4
+PortGroup github 1.0
+
+use_zip yes
+github.setup javacc javacc 7.0.13
+description Java Compiler Compiler, a parser generator for use with Java
categories java lang devel
-platforms any
-supported_archs noarch
-maintainers nomaintainer
license BSD
-description Java Compiler Compiler, a parser generator for use with Java
long_description Java Compiler Compiler (JavaCC) is the most popular \
-homepage https://javacc.org/
-master_sites http://java.net/projects/javacc/downloads/download/
-checksums rmd160 bac11ae2993642b254e4b90303e15de3599295eb \
-use_zip yes
-post-extract {
these wrappers are missing in the v6.0 zip-file
-}
+github.master_sites https://github.com/${github.author}/${name}/archive:source \
+distfiles ${distname}${extract.suffix}:source \
+platforms any
+supported_archs noarch
+maintainers nomaintainer
+checksums ${distname}${extract.suffix} \
+worksrcdir ${github.author}-${github.project}-${github.version}
configure {
}
build {}
destroot {
xinstall -d -m 755 ${destroot}${prefix}/share/java
${destroot}${prefix}/share/doc/
${destroot}${prefix}/bin
xinstall -m 644 -W ${worksrcpath} LICENSE
${destroot}${prefix}/share/doc/${name}
}
-livecheck.type regex
-livecheck.url ${homepage}
-livecheck.regex javacc-([0-9.]+).zip
Description
Type(s)
Tested on
macOS x.y
Xcode x.y / Command Line Tools x.y.z
Verification
Have you
port lint?sudo port test?sudo port -vst install?