[134014] trunk/dports/devel
blair at macports.org
blair at macports.org
Mon Mar 16 22:14:37 PDT 2015
Revision: 134014
https://trac.macports.org/changeset/134014
Author: blair at macports.org
Date: 2015-03-16 22:14:37 -0700 (Mon, 16 Mar 2015)
Log Message:
-----------
protobuf3-java: new port for protobuf version 3.
Modified Paths:
--------------
trunk/dports/devel/protobuf3-java/Portfile
Added Paths:
-----------
trunk/dports/devel/protobuf3-java/
Removed Paths:
-------------
trunk/dports/devel/protobuf3-java/files/
Modified: trunk/dports/devel/protobuf3-java/Portfile
===================================================================
--- trunk/dports/devel/protobuf-java/Portfile 2015-03-17 04:41:04 UTC (rev 134012)
+++ trunk/dports/devel/protobuf3-java/Portfile 2015-03-17 05:14:37 UTC (rev 134014)
@@ -3,12 +3,14 @@
PortSystem 1.0
PortGroup github 1.0
-name protobuf-java
-version 2.6.1
+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, \
@@ -27,31 +29,32 @@
logical record of information, containing a series of \
name-value pairs.
-github.setup google protobuf ${version} v
+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${version}
-distfiles protobuf-${version}.tar.bz2
-dist_subdir protobuf-cpp
-worksrcdir protobuf-${version}/java
+master_sites https://github.com/google/protobuf/releases/download/v${real_version}
+distfiles protobuf-java-${real_version}.tar.gz
+worksrcdir protobuf-${real_version}/java
-use_bzip2 yes
-checksums sha1 6421ee86d8fb4e39f21f56991daa892a3e8d314b \
- sha256 ee445612d544d885ae240ffbcbf9267faa9f593b7b101f21d58beceb92661910
+checksums sha1 9bcb71ffa7356ee961c9a5cf033e59f7090ad33d \
+ sha256 d58ee62daa782069c1149d8dd4d33845d29fd83c9e1994b01dc3d437d2025a35
platforms darwin
-depends_lib port:zlib port:protobuf-cpp
-depends_build port:apache-ant
+depends_lib port:zlib port:protobuf3-cpp
+depends_build port:maven31
patch {
- file copy ${filespath}/build.xml ${worksrcpath}/
+ reinplace "s#../src/protoc#${prefix}/bin/protoc#g" ${worksrcpath}/pom.xml
}
use_configure no
-build.cmd ant
-build.target jar api
+build.cmd mvn31
+build.target install javadoc:javadoc
+build.env MAVEN_OPTS=-Duser.home=${workpath}/.home
destroot {
set javadir ${destroot}${prefix}/share/java
@@ -60,6 +63,11 @@
xinstall -d -m 755 ${javadir}
xinstall -d -m 755 ${docdir}
- file copy ${worksrcpath}/protobuf.jar ${javadir}
- file copy ${worksrcpath}/api ${docdir}/api
+ 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 mvn31
+test.target test
+test.env ${build.env}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150316/b86d3a7b/attachment.html>
More information about the macports-changes
mailing list