Ticket #58755: Portfile

File Portfile, 1.4 KB (added by someuser12, 5 years ago)
Line 
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
3PortSystem          1.0
4PortGroup           java 1.0
5
6name                bcprov
7version             1.62
8
9categories          java devel security
10license             MIT
11maintainers         nomaintainer
12platforms           darwin
13supported_archs     noarch
14
15description         A Java implementation of cryptographic algorithms
16long_description    ${description}
17homepage            https://www.bouncycastle.org/java.html
18
19master_sites        https://search.maven.org/remotecontent?filepath=org/bouncycastle/${name}-jdk15on/${version}/
20
21distname            ${name}-jdk15on-${version}
22distfiles           ${distname}.jar
23worksrcdir          ${distname}
24
25checksums           rmd160  288577b36c0385dcd4b9f5614929727f4b039a27 \
26                    sha256  2fa0ab71b154da29ac134097bc6bbacd90987dd4c4005516159e6494d1d52ea2 \
27                    size    4558151
28
29use_configure       no
30
31extract {
32    file copy ${distpath}/${distname}.jar ${workpath}
33}
34
35build {}
36
37destroot {
38    set javadir ${destroot}${prefix}/share/java
39    xinstall -d -m 755 -d ${javadir}/${name}
40    xinstall -m 644 ${workpath}/${distname}.jar ${javadir}/${name}/${name}.jar
41}
42
43livecheck.type      regex
44livecheck.url       https://repo1.maven.org/maven2/org/bouncycastle/${name}-jdk15on/maven-metadata.xml
45livecheck.regex     >(\\d+\\.\\d+(\\.\\d+)*)</