source: trunk/dports/java/poi/Portfile

Last change on this file was 92522, checked in by raimue@…, 5 years ago

java/poi:
Add livecheck

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- 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
2# $Id $
3
4PortSystem          1.0
5
6name                poi
7version             3.8
8categories          java
9platforms           darwin
10maintainers         nomaintainer
11supported_archs     noarch
12license             LGPL-2.1
13
14description         Apache POI - the Java API for Microsoft Documents
15
16long_description    The Apache POI Project's mission is to create and maintain Java APIs for manipulating \
17                    various file formats based upon the Office Open XML standards (OOXML) \
18                    and Microsoft's OLE 2 Compound Document format (OLE2).
19
20homepage            http://poi.apache.org/
21master_sites        apache:poi/release/bin/
22distname            poi-bin-3.8-20120326
23worksrcdir          ${name}-${version}
24
25checksums           sha1    65569f306c54a215431e8143a7a444314ce11788 \
26                    rmd160  7ecea4da4dd9b4824c857abd9ed4e2ded86d7555
27
28use_configure       no
29
30build {}
31
32destroot {
33    # Ensure needed directories
34    xinstall -m 755 -d ${destroot}${prefix}/share/java \
35        ${destroot}${prefix}/share/doc \
36        ${destroot}${prefix}/share/java/${name}
37
38    # Install the required libs
39    file copy ${worksrcpath}/lib \
40        ${destroot}${prefix}/share/java/${name}
41    file copy ${worksrcpath}/ooxml-lib \
42        ${destroot}${prefix}/share/java/${name}
43
44    # Install poi
45    eval file copy [glob ${worksrcpath}/*.jar] \
46        ${destroot}${prefix}/share/java/${name}
47
48    # Install the docs
49    file copy ${worksrcpath}/docs \
50        ${destroot}${prefix}/share/doc/${name}
51}
52
53livecheck.type  regex
54livecheck.url   http://poi.apache.org/download.html
55livecheck.regex {The latest stable release is Apache POI (\d+\.\d+)}
Note: See TracBrowser for help on using the repository browser.