# $Id: Portfile 60133 2009-11-02 22:03:13Z blair@macports.org $

PortSystem 1.0

name                    scala-migrations
version                 0.9.2
categories              java
platforms               darwin
maintainers             blair
description             Database migrations written in Scala

long_description        Scala Migrations is a library to manage upgrades and \
                        rollbacks to database schemas.  Migrations allow a \
                        source control system to manage together the database \
                        schema and the code using the schema.  It is designed \
                        to allow multiple developers working on a project with \
                        a database backend to design schema modifications \
                        independently, apply the migrations to their local \
                        database for debugging and when complete, check them \
                        into a source control system to manage as one manages \
                        normal source code.  Other developers then check out \
                        the new migrations and apply them to their local \
                        database.  Finally, the migrations are used to migrate \
                        the production databases to the latest schema version. \
                        The Scala Migrations library is written in Scala and \
                        makes use of the clean Scala language to write easy to \
                        understand migrations, which are also written in \
                        Scala.  Scala Migrations provides a database \
                        abstraction layer that allows migrations to target any \
                        supported database vendor.

homepage                http://code.google.com/p/scala-migrations/

master_sites            googlecode
distfiles               ${name}-${version}.jar

checksums               md5 26236e19a2c11f0441f817b0e2d61d8d \
                        sha1 0b4a4ff0eaaef74e6ce9ff35fcd52b2e101abc9e \
                        rmd160 079bca38e0684c12a74d0e2b846961701599f404
extract.only

depends_lib             bin:java:kaffe

use_configure           no

build { }

destroot {
        set javadir ${destroot}${prefix}/share/java

        xinstall -d -m 755 ${javadir}
        file copy ${distpath}/${name}-${version}.jar ${javadir}/${name}.jar
}
