diff options
author | jgh <jgh@FreeBSD.org> | 2013-05-18 01:09:05 +0800 |
---|---|---|
committer | jgh <jgh@FreeBSD.org> | 2013-05-18 01:09:05 +0800 |
commit | f5701852a3190ec1f79d9dfdce407bc04acab439 (patch) | |
tree | f6be4e77fdb9c8806bac563e5f670dc1fd437623 /archivers | |
parent | 129832b89905c6ea415529af03c252e950d777cb (diff) | |
download | freebsd-ports-gnome-f5701852a3190ec1f79d9dfdce407bc04acab439.tar.gz freebsd-ports-gnome-f5701852a3190ec1f79d9dfdce407bc04acab439.tar.zst freebsd-ports-gnome-f5701852a3190ec1f79d9dfdce407bc04acab439.zip |
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@filez.com>
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/Makefile | 1 | ||||
-rw-r--r-- | archivers/snappy-java/Makefile | 57 | ||||
-rw-r--r-- | archivers/snappy-java/distinfo | 6 | ||||
-rw-r--r-- | archivers/snappy-java/files/patch-likelinux | 13 | ||||
-rw-r--r-- | archivers/snappy-java/pkg-descr | 4 |
5 files changed, 81 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile index d0cc67be2162..ed67613351d1 100644 --- a/archivers/Makefile +++ b/archivers/Makefile @@ -175,6 +175,7 @@ SUBDIR += sectar SUBDIR += sharutils SUBDIR += snappy + SUBDIR += snappy-java SUBDIR += squeeze SUBDIR += squsq SUBDIR += star diff --git a/archivers/snappy-java/Makefile b/archivers/snappy-java/Makefile new file mode 100644 index 000000000000..4379c5169dae --- /dev/null +++ b/archivers/snappy-java/Makefile @@ -0,0 +1,57 @@ +# Created by: Radim Kolar <hsn@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@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> diff --git a/archivers/snappy-java/distinfo b/archivers/snappy-java/distinfo new file mode 100644 index 000000000000..113194a7e488 --- /dev/null +++ b/archivers/snappy-java/distinfo @@ -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 diff --git a/archivers/snappy-java/files/patch-likelinux b/archivers/snappy-java/files/patch-likelinux new file mode 100644 index 000000000000..e2cbea524c08 --- /dev/null +++ b/archivers/snappy-java/files/patch-likelinux @@ -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 := + diff --git a/archivers/snappy-java/pkg-descr b/archivers/snappy-java/pkg-descr new file mode 100644 index 000000000000..f497625b528a --- /dev/null +++ b/archivers/snappy-java/pkg-descr @@ -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 |