2013-05-17 19:09:05 +02:00
|
|
|
# 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
|
2015-05-30 23:25:06 +02:00
|
|
|
DISTVERSIONPREFIX= snappy-java-
|
2016-02-02 02:36:45 +01:00
|
|
|
PORTREVISION= 2
|
2013-05-17 19:09:05 +02:00
|
|
|
CATEGORIES= archivers java
|
2016-09-20 17:19:52 +02:00
|
|
|
MASTER_SITES= http://pkgs.fedoraproject.org/repo/pkgs/snappy/snappy-1.0.4.tar.gz/b69151652e82168bc5c643bcd6f07162/:source2 \
|
2013-05-17 19:09:05 +02:00
|
|
|
LOCAL/jgh/archivers/${PORTNAME}/:source3
|
|
|
|
PKGNAMESUFFIX= java
|
2016-03-08 14:09:12 +01:00
|
|
|
DISTFILES+= snappy-${PORTVERSION:R}.tar.gz:source2 \
|
2013-05-17 19:09:05 +02:00
|
|
|
FreeBSD-snappy-${PORTVERSION}-maven-repository.tar.gz:source3
|
2015-05-06 14:57:55 +02:00
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \
|
2013-05-17 19:09:05 +02:00
|
|
|
FreeBSD-snappy-${PORTVERSION}-maven-repository.tar.gz
|
|
|
|
|
2016-03-11 07:19:26 +01:00
|
|
|
MAINTAINER= mark@tranquillussoftware.co.uk
|
2013-05-17 19:09:05 +02:00
|
|
|
COMMENT= Fast compressor/decompressor library
|
|
|
|
|
2013-12-30 21:55:18 +01:00
|
|
|
LICENSE= APACHE20
|
2013-05-17 19:09:05 +02:00
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/share/java/maven3/bin/mvn:devel/maven3
|
2013-05-17 19:09:05 +02:00
|
|
|
|
2015-05-06 14:57:55 +02:00
|
|
|
USE_GITHUB= yes
|
2013-05-17 19:09:05 +02:00
|
|
|
GH_ACCOUNT= xerial
|
|
|
|
GH_PROJECT= snappy-java
|
|
|
|
|
|
|
|
USE_JAVA= yes
|
2016-02-02 02:36:45 +01:00
|
|
|
JAVA_VERSION= 1.7+
|
2013-08-26 19:28:28 +02:00
|
|
|
USES= gmake
|
2014-02-01 14:01:24 +01:00
|
|
|
USE_LDCONFIG= yes
|
2013-08-26 19:28:28 +02:00
|
|
|
MAKE_ARGS+= Default_CXX=${CXX}
|
2013-05-17 19:09:05 +02:00
|
|
|
|
2014-02-01 14:01:24 +01:00
|
|
|
PLIST_FILES= %%JAVAJARDIR%%/snappy-java.jar lib/libsnappyjava.so
|
2013-05-17 19:09:05 +02:00
|
|
|
|
2014-04-04 14:58:01 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|curl.*||g ; \
|
2016-03-11 07:19:26 +01:00
|
|
|
s|MVN:=mvn|MVN:=${LOCALBASE}/share/java/maven3/bin/mvn -Dmaven.repo.local=${WRKDIR}/repository --offline|g' \
|
2013-05-17 19:09:05 +02:00
|
|
|
${WRKSRC}/Makefile
|
|
|
|
|
2014-04-04 14:58:01 +02:00
|
|
|
do-build:
|
2013-05-17 19:09:05 +02:00
|
|
|
@${MKDIR} ${WRKSRC}/target
|
|
|
|
@${CP} ${DISTDIR}/snappy-${PORTVERSION:R}.tar.gz ${WRKSRC}/target/
|
|
|
|
cd ${WRKSRC} && ${SETENV} JAVA_HOME=${JAVA_HOME} \
|
2014-06-24 23:47:12 +02:00
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} && ${LOCALBASE}/share/java/maven3/bin/mvn -Dmaven.repo.local=${WRKDIR}/repository --offline test
|
2013-05-17 19:09:05 +02:00
|
|
|
|
|
|
|
do-install:
|
2014-02-01 14:01:24 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/target/snappy-java-${PORTVERSION}.jar \
|
|
|
|
${STAGEDIR}${JAVAJARDIR}/snappy-java.jar
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/target/snappy-${PORTVERSION:R}-Default/libsnappyjava.so \
|
|
|
|
${STAGEDIR}${LOCALBASE}/lib
|
2013-05-17 19:09:05 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|