source: trunk/dports/java/google-guava/Portfile

Last change on this file was 97513, checked in by blair@…, 5 years ago

google-guava: add license.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 97513 2012-09-07 18:21:25Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    google-guava
6version                 13.0.1
7categories              java
8license                 Apache-2
9platforms               darwin
10maintainers             blair
11description             Google's core libraries for Java 1.6
12long_description        Google Guava replaces and includes Google Collections \
13                        plus many other important core libraries.  It is a \
14                        strict, backward-compatible superset of the Google \
15                        Collections Library.  It also includes six months \
16                        worth of bug fixes, documetnation fixes, and \
17                        performance fixes, so it is strongly encouraged to \
18                        instead of Google Collections.
19
20homepage                http://code.google.com/p/guava-libraries/
21
22depends_lib             bin:java:kaffe
23
24master_sites            "http://search.maven.org/remotecontent?filepath=com/google/guava/guava/${version}"
25distfiles               guava-${version}.jar \
26                        guava-${version}-javadoc.jar
27extract.cmd             unzip
28extract.pre_args        -q
29extract.post_args       "-d ${workpath}/api"
30extract.only            guava-${version}-javadoc.jar
31
32checksums               guava-${version}.jar \
33                        sha1 0d6f22b1e60a2f1ef99e22c9f5fde270b2088365 \
34                        rmd160 02855a27ffc659c3bd0a834b7023e9da08bcfc85 \
35                        sha256 feb4b5b2e79a63b72ec47a693b1cf35cf1cea1f60a2bb2615bf21f74c7a60bb0 \
36                        guava-${version}-javadoc.jar \
37                        sha1 adb5f5700edd5a7cba8f3121e9d58884cea8cd50 \
38                        rmd160 c6ad3b2c04452eda9d248e1af77f4d2064be08cb \
39                        sha256 0ee2e83e7b54ebb6633423e554c22508a2e7bcc9769607d13e5182b99d801a0e
40
41use_configure           no
42
43build { }
44
45destroot {
46        set javadir ${destroot}${prefix}/share/java
47        set docdir ${destroot}${prefix}/share/doc/${name}
48
49        xinstall -d ${docdir} ${javadir}
50
51        file copy ${distpath}/guava-${version}.jar \
52                ${javadir}/google-guava.jar
53        file copy ${workpath}/api ${docdir}
54}
Note: See TracBrowser for help on using the repository browser.