You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
58 lines
2.0 KiB
Tcl
58 lines
2.0 KiB
Tcl
# -*- 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
|
|
PortGroup java 1.0
|
|
|
|
name bfg
|
|
version 1.15.0
|
|
|
|
categories java devel
|
|
license GPL-3
|
|
maintainers {ra1nb0w @ra1nb0w} openmaintainer
|
|
platforms any
|
|
supported_archs noarch
|
|
|
|
description Removes large or troublesome blobs like git-filter-branch does, but faster.
|
|
long_description The BFG is a simpler, faster alternative to git-filter-branch for cleansing \
|
|
bad data out of your Git repository history: \n \
|
|
- Removing Crazy Big Files \n \
|
|
- Removing Passwords, Credentials & other Private data
|
|
homepage https://rtyley.github.io/bfg-repo-cleaner/
|
|
|
|
master_sites https://search.maven.org/remotecontent?filepath=com/madgag/${name}/${version}/
|
|
distfiles ${name}-${version}.jar
|
|
distname ${name}-${version}
|
|
worksrcdir ${name}-${version}
|
|
|
|
checksums rmd160 fa667bb895cc3037a69acc114bbd30d303bf5ebf \
|
|
sha256 dfe2885adc2916379093f02a80181200536856c9a987bf21c492e452adefef7a \
|
|
size 14721936
|
|
|
|
java.fallback openjdk8
|
|
java.version 1.7+
|
|
|
|
use_configure no
|
|
|
|
extract {
|
|
file copy ${distpath}/${distname}.jar ${workpath}
|
|
}
|
|
|
|
build {}
|
|
|
|
destroot {
|
|
set javadir ${destroot}${prefix}/share/java
|
|
xinstall -d -m 755 -d ${javadir}/${name}
|
|
xinstall -m 644 ${workpath}/${distname}.jar ${javadir}/${name}/${name}.jar
|
|
|
|
# Install the wrapper script
|
|
xinstall -m 755 ${filespath}/bfg ${destroot}${prefix}/bin/bfg
|
|
reinplace "s|_PREFIX_|${prefix}|g" ${destroot}${prefix}/bin/bfg
|
|
}
|
|
|
|
livecheck.type regex
|
|
livecheck.url https://repo1.maven.org/maven2/com/madgag/${name}/maven-metadata.xml
|
|
livecheck.regex >(\\d+\\.\\d+(\\.\\d+)*)</
|
|
|
|
test.run yes
|
|
test.cmd java -jar ${distname}.jar
|