ports/189885: [New port] archivers/php5-snappy
Melvyn Sopacua
melvyn at magemana.nl
Sat May 17 12:10:00 UTC 2014
>Number: 189885
>Category: ports
>Synopsis: [New port] archivers/php5-snappy
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat May 17 12:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Melvyn Sopacua
>Release: FreeBSD 9.2-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD fire.magemana.nl 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #1 r263178: Mon Mar 17 21:30:16 CET 2014 melvyn at fire.magemana.nl:/usr/obj/usr/src/sys/TRANSIP amd64
>Description:
PHP extension for the snappy compression algorithm
Buildarchive:
https://redports.org/buildarchive/20140517115700-5928/
>How-To-Repeat:
>Fix:
--- update.patch begins here ---
diff -r fce86456d1b5 archivers/Makefile
--- a/archivers/Makefile Fri May 16 15:59:23 2014 +0000
+++ b/archivers/Makefile Sat May 17 14:02:40 2014 +0200
@@ -137,6 +137,7 @@
SUBDIR += php-horde_lz4
SUBDIR += php5-bz2
SUBDIR += php5-phar
+ SUBDIR += php5-snappy
SUBDIR += php5-zip
SUBDIR += php5-zlib
SUBDIR += php53-bz2
diff -r fce86456d1b5 archivers/php5-snappy/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/php5-snappy/Makefile Sat May 17 14:02:40 2014 +0200
@@ -0,0 +1,33 @@
+# Created by: Melvyn Sopacua <melvyn at magemana.nl>
+# $FreeBSD$
+
+PORTNAME= php5-snappy
+PORTVERSION= 0.0.2
+CATEGORIES= archivers
+MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
+PROJECTHOST= php-snappy
+DISTNAME= ${PROJECTHOST}-${PORTVERSION}
+
+MAINTAINER= melvyn at magemana.nl
+COMMENT= PHP extension for the snappy compression algorithm
+
+LICENSE= BSD
+
+LIB_DEPENDS+= snappy:${PORTSDIR}/archivers/snappy
+CONFIGURE_ARGS+= --with-snappy-includedir=${LOCALBASE}/include
+
+USE_PHP= yes
+USE_PHPEXT= yes
+PHP_MODNAME= snappy
+WRKSRC= ${WRKDIR}/${PROJECTHOST}
+OPTIONS_DEFINE= TEST
+
+.include <bsd.port.options.mk>
+test: build
+ @(cd ${WRKSRC} && ${MAKE} ${MAKE_ENV} NO_INTERACTION=yes ${.TARGET})
+
+.if !empty(${PORT_OPTIONS:MTEST})
+post-stage: test
+.endif
+
+.include <bsd.port.mk>
diff -r fce86456d1b5 archivers/php5-snappy/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/php5-snappy/distinfo Sat May 17 14:02:40 2014 +0200
@@ -0,0 +1,2 @@
+SHA256 (php-snappy-0.0.2.tar.gz) = 7aa6be88e09985fc0f9054b3e3d06612383aaacbbc6db705913ad7d047dc9cd9
+SIZE (php-snappy-0.0.2.tar.gz) = 6801
diff -r fce86456d1b5 archivers/php5-snappy/files/patch-config.m4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/php5-snappy/files/patch-config.m4 Sat May 17 14:02:40 2014 +0200
@@ -0,0 +1,44 @@
+--- config.m4.orig 2011-09-07 10:27:21.000000000 +0200
++++ config.m4 2014-05-17 13:31:39.000000000 +0200
+@@ -53,7 +53,7 @@
+
+ if test "$PHP_SNAPPY_INCLUDEDIR" != "no" && test "$PHP_SNAPPY_INCLUDEDIR" != "yes"; then
+ if test -r "$PHP_SNAPPY_INCLUDEDIR/snappy.h"; then
+- SNAPPY_DIR="$PHP_SNAPPY_INCLUDEDIR"
++ SNAPPY_DIR="$(dirname $PHP_SNAPPY_INCLUDEDIR)"
+ else
+ AC_MSG_ERROR([Can't find snappy headers under "$PHP_SNAPPY_INCLUDEDIR"])
+ fi
+@@ -61,12 +61,12 @@
+ SEARCH_PATH="/usr/local /usr" # you might want to change this
+ SEARCH_FOR="/include/snappy-c.h" # you most likely want to change this
+ if test -r $PHP_SNAPPY/$SEARCH_FOR; then # path given as parameter
+- SNAPPY_DIR="$PHP_SNAPPY/include"
++ SNAPPY_DIR="$PHP_SNAPPY"
+ else # search default path list
+ AC_MSG_CHECKING([for snappy files in default path])
+ for i in $SEARCH_PATH ; do
+ if test -r $i/$SEARCH_FOR; then
+- SNAPPY_DIR="$i/include"
++ SNAPPY_DIR="$i"
+ AC_MSG_RESULT(found in $i)
+ fi
+ done
+@@ -80,7 +80,7 @@
+
+ dnl # add include path
+
+- PHP_ADD_INCLUDE($SNAPPY_DIR)
++ PHP_ADD_INCLUDE([$SNAPPY_DIR/include])
+
+ dnl # check for lib
+
+@@ -90,7 +90,7 @@
+ AC_LANG_CPLUSPLUS
+ AC_TRY_COMPILE(
+ [
+- #include "$SNAPPY_DIR/snappy-c.h"
++ #include "$SNAPPY_DIR/include/snappy-c.h"
+ ],[
+ snappy_max_compressed_length(1);
+ ],[
diff -r fce86456d1b5 archivers/php5-snappy/pkg-descr
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/archivers/php5-snappy/pkg-descr Sat May 17 14:02:40 2014 +0200
@@ -0,0 +1,4 @@
+Provides the API to PHP for the snappy compression algorithm by
+Google.
+
+WWW: http://code.google.com/p/php-snappy/
--- update.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list