# -*- 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                hibernate4
version             4.1.2.Final
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-release-${version}
extract.suffix      .tgz

checksums           sha1    00352cfed902453b3d489ef53c6e6e4db6ab77eb \
                    rmd160  f2842b5494b6eeac417c01c891091bfb5c6294bb 

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 docs
    file copy ${worksrcpath}/documentation \
        ${destroot}${prefix}/share/doc/${name}
}

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