# -*- 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 PortGroup java 1.0 name jabref version 2.10 categories java platforms darwin license GPL-2+ maintainers nicos openmaintainer description JabRef is an java-based bibliography reference manager. long_description JabRef is an open source bibliography reference manager. \ The native file format used by JabRef is BibTeX, the standard \ LaTeX bibliography format.\ homepage http://jabref.sourceforge.net/index.php distname JabRef-${version}-src master_sites sourceforge:project/jabref/jabref/${version} checksums rmd160 7144b51058f69953ef0440900f38311a7a4a916c \ sha256 09b57afcfeb1730b58a887dc28f0f4c803e9c00fade1f57245ab70e2a98ce6ad worksrcdir ${name}-${version} use_bzip2 yes depends_build port:apache-ant \ port:jarbundler use_configure no build.cmd ant build.target build osx destroot.cmd ant if {![variant_isset oracle]} { destroot.target jars osxjar } else { destroot.target jars bundle } destroot.destdir variant oracle description "Compile based on Oracle's Java (7 or 8)" { depends_build-delete port:jarbundler depends_build-append port:appbundler patchfiles patch-build.xml.diff } pre-configure { if {![variant_isset oracle]} { #Using macports jarbundler reinplace "s|classpath=\"\${lib.dir}/jarbundler-2.2.0.jar\"|classpath=\"${prefix}/share/java/jarbundler.jar\"|g" \ ${worksrcpath}/build.xml #Putting destination to destroot reinplace "s|NSHumanReadableCopyright|NSHighResolutionCapable\\\n\\\nNSHumanReadableCopyright|g" \ ${destroot}${applications_dir}/JabRef.app/Contents/Info.plist } } livecheck.type sourceforge livecheck.url http://sourceforge.net/projects/jabref/files/jabref/