FreeBSD Bugzilla – Attachment 142799 Details for
Bug 189885
[New port] archivers/php5-snappy
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
update.patch
update.patch (text/plain), 3.53 KB, created by
Melvyn Sopacua
on 2014-05-17 13:10:00 UTC
(
hide
)
Description:
update.patch
Filename:
MIME Type:
Creator:
Melvyn Sopacua
Created:
2014-05-17 13:10:00 UTC
Size:
3.53 KB
patch
obsolete
>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@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@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/
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 189885
: 142799