svn commit: r318393 - in head/archivers: . snappy-java snappy-java/files
Jason Helfman
jgh at FreeBSD.org
Fri May 17 17:09:07 UTC 2013
Author: jgh
Date: Fri May 17 17:09:05 2013
New Revision: 318393
URL: http://svnweb.freebsd.org/changeset/ports/318393
Log:
Snappy-java is a Java port of snappy, a fast C++
compresser/decompresser developed by Google.
WWW: https://github.com/xerial/snappy-java
PR: ports/178560 (based on)
Submitted by: Radim Kolar <hsn at filez.com>
Added:
head/archivers/snappy-java/
head/archivers/snappy-java/Makefile (contents, props changed)
head/archivers/snappy-java/distinfo (contents, props changed)
head/archivers/snappy-java/files/
head/archivers/snappy-java/files/patch-likelinux (contents, props changed)
head/archivers/snappy-java/pkg-descr (contents, props changed)
Modified:
head/archivers/Makefile
Modified: head/archivers/Makefile
==============================================================================
--- head/archivers/Makefile Fri May 17 14:36:34 2013 (r318392)
+++ head/archivers/Makefile Fri May 17 17:09:05 2013 (r318393)
@@ -175,6 +175,7 @@
SUBDIR += sectar
SUBDIR += sharutils
SUBDIR += snappy
+ SUBDIR += snappy-java
SUBDIR += squeeze
SUBDIR += squsq
SUBDIR += star
Added: head/archivers/snappy-java/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/archivers/snappy-java/Makefile Fri May 17 17:09:05 2013 (r318393)
@@ -0,0 +1,57 @@
+# Created by: Radim Kolar <hsn at filez.com>
+# $FreeBSD$
+
+# Note to committers:
+# With each version update, a new maven repository must be created and distributed
+# so build is repeatable and cluster-safe.
+
+PORTNAME= snappy
+PORTVERSION= 1.0.4.1
+CATEGORIES= archivers java
+MASTER_SITES= GITHUB:source1 \
+ http://snappy.googlecode.com/files/:source2 \
+ LOCAL/jgh/archivers/${PORTNAME}/:source3
+PKGNAMESUFFIX= java
+DISTFILES+= snappy-${PORTVERSION}.tar.gz:source1 \
+ snappy-${PORTVERSION:R}.tar.gz:source2 \
+ FreeBSD-snappy-${PORTVERSION}-maven-repository.tar.gz:source3
+EXTRACT_ONLY= snappy-${PORTVERSION}.tar.gz \
+ FreeBSD-snappy-${PORTVERSION}-maven-repository.tar.gz
+
+MAINTAINER= hsn at sendmail.cz
+COMMENT= Fast compressor/decompressor library
+
+LICENSE= AL2
+
+BUILD_DEPENDS= ${LOCALBASE}/share/java/maven3/bin/mvn:${PORTSDIR}/devel/maven3
+
+GH_ACCOUNT= xerial
+GH_PROJECT= snappy-java
+GH_TAGNAME= snappy-java-${PORTVERSION}
+GH_COMMIT= 487f82d
+USE_GITHUB= yes
+
+USE_JAVA= yes
+JAVA_VERSION= 1.7
+USE_GMAKE= yes
+
+PLIST_FILES= %%JAVAJARDIR%%/snappy-java.jar
+
+post-patch-script:
+ @${REINPLACE_CMD} -e 's|curl.*||g' \
+ ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's|MVN:=mvn|MVN:=mvn -Dmaven.repo.local=${WRKDIR}/repository --offline|g' \
+ ${WRKSRC}/Makefile
+
+pre-build:
+ @${MKDIR} ${WRKSRC}/target
+ @${CP} ${DISTDIR}/snappy-${PORTVERSION:R}.tar.gz ${WRKSRC}/target/
+
+do-build: pre-build
+ cd ${WRKSRC} && ${SETENV} JAVA_HOME=${JAVA_HOME} \
+ ${GMAKE} && ${LOCALBASE}/share/java/maven3/bin/mvn -Dmaven.repo.local=${WRKDIR}/repository --offline test
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/target/snappy-java-${PORTVERSION}.jar ${JAVAJARDIR}/snappy-java.jar
+
+.include <bsd.port.mk>
Added: head/archivers/snappy-java/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/archivers/snappy-java/distinfo Fri May 17 17:09:05 2013 (r318393)
@@ -0,0 +1,6 @@
+SHA256 (snappy-1.0.4.1.tar.gz) = c8715bc9cb7c3112b6e56bee9368c024ef8bf12d09faaac45bb84f2d3aec3bd6
+SIZE (snappy-1.0.4.1.tar.gz) = 5475060
+SHA256 (snappy-1.0.4.tar.gz) = 4ad91adb1592b6de67ecaad2ade6c34b9cf98a0bbc74ac8786b520b529b3bf61
+SIZE (snappy-1.0.4.tar.gz) = 1676541
+SHA256 (FreeBSD-snappy-1.0.4.1-maven-repository.tar.gz) = 1d258eedabd2ff74954988b7d404ac803f55687b916f697179489c3a4cb0e243
+SIZE (FreeBSD-snappy-1.0.4.1-maven-repository.tar.gz) = 8290287
Added: head/archivers/snappy-java/files/patch-likelinux
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/archivers/snappy-java/files/patch-likelinux Fri May 17 17:09:05 2013 (r318393)
@@ -0,0 +1,13 @@
+--- Makefile.common.orig 2011-10-05 03:29:42.000000000 +0200
++++ Makefile.common 2013-05-13 02:19:31.000000000 +0200
+@@ -50,8 +50,8 @@
+
+ Default_CXX := g++
+ Default_STRIP := strip
+-Default_CXXFLAGS := -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -fvisibility=hidden
+-Default_LINKFLAGS := -shared -static
++Default_CXXFLAGS := -Ilib/inc_linux -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -fvisibility=hidden
++Default_LINKFLAGS := -lc -shared
+ Default_LIBNAME := libsnappyjava.so
+ Default_SNAPPY_FLAGS :=
+
Added: head/archivers/snappy-java/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/archivers/snappy-java/pkg-descr Fri May 17 17:09:05 2013 (r318393)
@@ -0,0 +1,4 @@
+Snappy-java is a Java port of snappy, a fast C++
+compresser/decompresser developed by Google.
+
+WWW: https://github.com/xerial/snappy-java
More information about the svn-ports-head
mailing list