# -*- 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
PortGroup           java 1.0
PortGroup           github 1.0

github.setup        raphw byte-buddy 1.18.8 byte-buddy-
github.tarball_from archive
revision            0
checksums           rmd160  f9617a1f051d07616680a5bb1cac23e81792c5a2 \
                    sha256  ed41bcd1e2390d0d1dda298f9e682b9ac30c20662f2c727087fe5f68dee55ee6 \
                    size    3409483

categories          java
license             Apache-2
maintainers         nomaintainer

description         Byte Buddy is a code generation and manipulation library.
long_description    ${description}

homepage            https://bytebuddy.net/

use_zip             yes

depends_build       bin:mvn3:maven3

use_configure       no

set maven_local_repository ${worksrcpath}/.m2/repository
pre-build {
    file mkdir ${maven_local_repository}
}

build.cmd           mvn3
build.target        package
build.env-append    GRADLE_USER_HOME=${worksrcpath}/${name}
build.pre_args      install \
                    -Dmaven.repo.local=${maven_local_repository} \
                    -DskipTests

destroot {
    xinstall -m 0755 -d ${destroot}${prefix}/share/java
    xinstall -m 0644 ${worksrcpath}/${name}/target/${name}-${version}-jdk5.jar \
        ${destroot}${prefix}/share/java/${name}.jar
}

