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

Last change on this file since 86531 was 86531, checked in by blair@…, 8 years ago

google-guava: update to 10.0.1:

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