# $Id$ PortSystem 1.0 PortGroup github 1.0 name protobuf3-java version 0.0.0.1 set real_version 3.0.0-alpha-1 categories devel maintainers blair license BSD description Encode data in an efficient yet extensible format. conflicts protobuf-java long_description \ Google Protocol Buffers are a flexible, efficient, \ automated mechanism for serializing structured data -- \ think XML, but smaller, faster, and simpler. You \ define how you want your data to be structured once, \ then you can use special generated source code to \ easily write and read your structured data to and from \ a variety of data streams and using a variety of \ languages. You can even update your data structure \ without breaking deployed programs that are compiled \ against the "old" format. You specify how you want \ the information you're serializing to be structured by \ defining protocol buffer message types in .proto \ files. Each protocol buffer message is a small \ logical record of information, containing a series of \ name-value pairs. github.setup google protobuf-java ${real_version} v github.tarball_from releases # REMOVE THE VERSION LINE WHEN THERE IS A GA RELEASE AND LEAVE THE ONE ABOVE version 0.0.0.1 homepage https://github.com/google/protobuf master_sites https://github.com/google/protobuf/releases/download/v${real_version} distfiles protobuf-java-${real_version}.tar.gz worksrcdir protobuf-${real_version}/java checksums sha1 9bcb71ffa7356ee961c9a5cf033e59f7090ad33d \ sha256 d58ee62daa782069c1149d8dd4d33845d29fd83c9e1994b01dc3d437d2025a35 platforms darwin depends_lib port:zlib port:protobuf3-cpp depends_build port:maven3 patch { reinplace "s#../src/protoc#${prefix}/bin/protoc#g" ${worksrcpath}/pom.xml } use_configure no build.cmd mvn3 build.target install javadoc:javadoc build.env MAVEN_OPTS=-Duser.home=${workpath}/.home destroot { set javadir ${destroot}${prefix}/share/java set docdir ${destroot}${prefix}/share/doc/${name} xinstall -d -m 755 ${javadir} xinstall -d -m 755 ${docdir} file copy ${worksrcpath}/target/protobuf-java-${real_version}.jar ${javadir}/protobuf.jar file copy ${worksrcpath}/target/site/apidocs ${docdir}/api } test.run yes test.cmd mvn3 test.target test test.env ${build.env}