source: trunk/dports/devel/protobuf-java/Portfile

Last change on this file was 134015, checked in by blair@…, 2 years ago

protobuf-java: conflict with protobuf3-java.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 134015 2015-03-17 05:15:08Z ryandesign@macports.org $
2
3PortSystem      1.0
4PortGroup       github 1.0
5
6name            protobuf-java
7version         2.6.1
8categories      devel
9maintainers     blair
10license         BSD
11description     Encode data in an efficient yet extensible format.
12conflicts       protobuf3-java
13
14long_description \
15                Google Protocol Buffers are a flexible, efficient, \
16                automated mechanism for serializing structured data -- \
17                think XML, but smaller, faster, and simpler.  You \
18                define how you want your data to be structured once, \
19                then you can use special generated source code to \
20                easily write and read your structured data to and from \
21                a variety of data streams and using a variety of \
22                languages.  You can even update your data structure \
23                without breaking deployed programs that are compiled \
24                against the "old" format.  You specify how you want \
25                the information you're serializing to be structured by \
26                defining protocol buffer message types in .proto \
27                files.  Each protocol buffer message is a small \
28                logical record of information, containing a series of \
29                name-value pairs.
30
31github.setup    google protobuf ${version} v
32github.tarball_from releases
33homepage        https://github.com/google/protobuf
34master_sites    https://github.com/google/protobuf/releases/download/v${version}
35distfiles       protobuf-${version}.tar.bz2
36dist_subdir     protobuf-cpp
37worksrcdir      protobuf-${version}/java
38
39use_bzip2       yes
40checksums       sha1   6421ee86d8fb4e39f21f56991daa892a3e8d314b \
41                sha256 ee445612d544d885ae240ffbcbf9267faa9f593b7b101f21d58beceb92661910
42
43platforms       darwin
44
45depends_lib     port:zlib port:protobuf-cpp
46depends_build   port:apache-ant
47
48patch {
49    file copy ${filespath}/build.xml ${worksrcpath}/
50}
51
52use_configure   no
53
54build.cmd       ant
55build.target    jar api
56
57destroot {
58    set javadir ${destroot}${prefix}/share/java
59    set docdir ${destroot}${prefix}/share/doc/${name}
60
61    xinstall -d -m 755 ${javadir}
62    xinstall -d -m 755 ${docdir}
63
64    file copy ${worksrcpath}/protobuf.jar ${javadir}
65    file copy ${worksrcpath}/api ${docdir}/api
66}
Note: See TracBrowser for help on using the repository browser.