Ticket #34252: Portfile

File Portfile, 1.7 KB (added by bgrupe27, 12 years ago)
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
23extract.suffix      .tar.gz
24worksrcdir          ${name}-${version}
25
26checksums           sha1    65569f306c54a215431e8143a7a444314ce11788 \
27                    rmd160  7ecea4da4dd9b4824c857abd9ed4e2ded86d7555
28
29use_configure       no
30
31build {}
32
33destroot {
34    # Ensure needed directories
35    xinstall -m 755 -d ${destroot}${prefix}/share/java \
36        ${destroot}${prefix}/share/doc \
37        ${destroot}${prefix}/share/java/${name}
38   
39    # Install the required libs
40    file copy ${worksrcpath}/lib \
41        ${destroot}${prefix}/share/java/${name}
42    file copy ${worksrcpath}/ooxml-lib \
43        ${destroot}${prefix}/share/java/${name}
44
45    # Install poi
46    eval file copy [glob ${worksrcpath}/*.jar] \
47        ${destroot}${prefix}/share/java/${name}
48
49    # Install the docs
50    file copy ${worksrcpath}/docs \
51        ${destroot}${prefix}/share/doc/${name}
52}
53