# -*- 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
maintainers {emcrisostomo @emcrisostomo} openmaintainer
description Database Migrations Made Easy.
long_description Flyway is an open-source database migration tool. \
It strongly favors simplicity and convention over \
homepage https://flywaydb.org/
master_sites https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/${version}/
distname ${name}-commandline-${version}
worksrcdir ${name}-${version}
checksums rmd160 f183243cb374a850f1c9887c1972994f1b734740 \
sha256 ac42a414e316d7592c7035cd7fa14050ed02c77972196367ab8f11b9a9352a9a \
depends_run bin:java:kaffe
# The default build is a binary install of the jars.
set flywaydir ${destroot}${prefix}/share/java/${name}
# Create the target directory if it does not exist
xinstall -m 755 -d ${flywaydir}
# Copy over the needed elements of our directory tree
foreach f [glob -dir ${worksrcpath} *] {
file copy $f ${flywaydir}
file attributes ${flywaydir}/flyway -permissions 0755
# Symlink flyway into the bin directory
ln -s ../share/java/${name}/flyway ${destroot}${prefix}/bin/flyway
livecheck.url https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/maven-metadata.xml
livecheck.regex >(\\d+\\.\\d+(\\.\\d+)*)</