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

PortSystem 1.0

name                activemq
version             5.3.0

categories          java
maintainers         nomaintainer
description         a messaging and Integration Patterns provider
long_description    Apache ActiveMQ is the most popular and powerful open \
                    source messaging and Integration Patterns provider.   \
                    Apache ActiveMQ is fast, supports many Cross Language \
                    Clients and Protocols, comes with easy to use         \
                    Enterprise Integration Patterns and many advanced     \
                    features while fully supporting JMS 1.1 and J2EE 1.4.

platforms           darwin
homepage            http://activemq.apache.org/
master_sites        apache
master_sites.mirror_subdir ${name}/apache-${name}/${version}
distname            apache-${name}-${version}-bin
worksrcdir          apache-${name}-${version}
checksums           md5     f4b88a2b4ffd21cb804cdbd4f2e0152f \
                    sha1    750abb2bf40f930818b904ec21041f15e78bd5f7 \
                    rmd160  95cf49e5a1cb58bffa792b91e423c5cb188ffef7

livecheck.type      regex
livecheck.url       http://activemq.apache.org/download.html
livecheck.regex     ActiveMQ (\[\\w.\]+) Release

depends_lib         bin:java:kaffe

use_configure       no

build               { }

set installdir      ${prefix}/share/java/${name}

destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/java/
    file copy ${worksrcpath} ${destroot}${installdir}

    # link wrapper script
    ln -s ${installdir}/bin/macosx/activemq ${destroot}${prefix}/bin
}

