# -*- 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

name                hibernate3
version             3.6.10.Final
revision            1
categories          java databases
platforms           darwin
maintainers         nomaintainer
supported_archs     noarch
license             LGPL-2.1

description         Hibernate ORM for Java.

long_description    Hibernate is a powerful, ultra-high performance object/relational \
                    persistence and query service for Java. Hibernate lets you develop \
                    persistent classes following common Java idiom - including association, \
                    inheritance, polymorphism, composition and the Java collections framework. \
                    The Hibernate Query Language, designed as a "minimal" object-oriented \
                    extension to SQL, provides an elegant bridge between the object and \
                    relational worlds. Hibernate also allows you to express queries using \
                    native SQL or Java-based Criteria and Example queries. Hibernate is \
                    now the most popular object/relational mapping solution for Java.

homepage            http://www.hibernate.org/
master_sites        sourceforge:hibernate
distname            hibernate-distribution-${version}
extract.suffix      -dist.tar.gz

checksums           sha1    cbc9d86e448cbb9eb88123ebc3ceb0e3f03a3b98 \
                    rmd160  dc53ba018689386f2268b02d98da1523f6727ba9 

use_configure       no

build {}

destroot {
    # Ensure needed directories
    xinstall -m 755 -d ${destroot}${prefix}/share/java \
        ${destroot}${prefix}/share/doc

    # Install the libs
    file copy ${worksrcpath}/lib \
        ${destroot}${prefix}/share/java/${name}

    # Install the jar
    xinstall -m 644 \
        ${worksrcpath}/${name}.jar \
        ${worksrcpath}/hibernate-testing.jar \
        ${destroot}${prefix}/share/java/${name}

    # Symlink for compatibility with previous port version
    ln -s ${name}/${name}.jar ${destroot}${prefix}/share/java

    # Install the docs
    file copy ${worksrcpath}/documentation \
        ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      sourceforge
livecheck.name      hibernate
livecheck.distname  ${name}