Commits
Enrico M. Crisostomo authored and Mojca Miklavec committed ba175af7fc6
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 + | |
3 + | PortSystem 1.0 |
4 + | PortGroup select 1.0 |
5 + | |
6 + | name flyway |
7 + | version 5.0.3 |
8 + | |
9 + | categories java devel |
10 + | license Apache-2 |
11 + | maintainers {gmail.com:enrico.m.crisostomo @emcrisostomo} openmaintainer |
12 + | platforms darwin |
13 + | supported_archs noarch |
14 + | |
15 + | description Database Migrations Made Easy. |
16 + | long_description Flyway is an open-source database migration tool. \ |
17 + | It strongly favors simplicity and convention over \ |
18 + | configuration. |
19 + | |
20 + | homepage https://flywaydb.org/ |
21 + | |
22 + | master_sites https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/${version}/ |
23 + | distname ${name}-commandline-${version} |
24 + | worksrcdir ${name}-${version} |
25 + | checksums rmd160 c19bccf906ce78102f9e7b46c2500546362da267 \ |
26 + | sha256 390b54a0e2f8fea34f1152adfe551daf6ea7a3ee72bda7902ec57b61c64fe4cc |
27 + | |
28 + | depends_run bin:java:kaffe |
29 + | |
30 + | use_configure no |
31 + | |
32 + | # The default build is a binary install of the jars. |
33 + | build {} |
34 + | |
35 + | destroot { |
36 + | set flywaydir ${destroot}${prefix}/share/java/${name} |
37 + | |
38 + | # Create the target directory if it does not exist |
39 + | xinstall -m 755 -d ${flywaydir} |
40 + | |
41 + | # Copy over the needed elements of our directory tree |
42 + | foreach f [glob -dir ${worksrcpath} *] { |
43 + | file copy $f ${flywaydir} |
44 + | } |
45 + | |
46 + | file attributes ${flywaydir}/flyway -permissions 0755 |
47 + | |
48 + | # Symlink flyway into the bin directory |
49 + | ln -s ../share/java/${name}/flyway ${destroot}${prefix}/bin/flyway |
50 + | } |
51 + | |
52 + | livecheck.type regex |
53 + | livecheck.url https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/maven-metadata.xml |
54 + | livecheck.regex >(\\d+\\.\\d+(\\.\\d+)*)</ |