diff options
author | vanilla <vanilla@FreeBSD.org> | 2016-09-15 20:41:02 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2016-09-15 20:41:02 +0800 |
commit | 5086d327ea10663ccd82fd9c12497de70bf048fe (patch) | |
tree | 9ecf5bf4adb1ababb319b1ce6bc2f1a5da937caf | |
parent | 06b3f06ece5c75dbb92a296084c0ba2c94c5dd3e (diff) | |
download | freebsd-ports-gnome-5086d327ea10663ccd82fd9c12497de70bf048fe.tar.gz freebsd-ports-gnome-5086d327ea10663ccd82fd9c12497de70bf048fe.tar.zst freebsd-ports-gnome-5086d327ea10663ccd82fd9c12497de70bf048fe.zip |
1: rename php5-snappy to pecl-snappy.
2: it's php7 compatible now.
3: switch to GITHUB.
-rw-r--r-- | archivers/pecl-snappy/Makefile (renamed from archivers/php5-snappy/Makefile) | 14 | ||||
-rw-r--r-- | archivers/pecl-snappy/distinfo | 3 | ||||
-rw-r--r-- | archivers/pecl-snappy/pkg-descr (renamed from archivers/php5-snappy/pkg-descr) | 0 | ||||
-rw-r--r-- | archivers/php5-snappy/distinfo | 2 | ||||
-rw-r--r-- | archivers/php5-snappy/files/patch-config.m4 | 44 |
5 files changed, 8 insertions, 55 deletions
diff --git a/archivers/php5-snappy/Makefile b/archivers/pecl-snappy/Makefile index 9f0d8ef336e6..83195f1e09b7 100644 --- a/archivers/php5-snappy/Makefile +++ b/archivers/pecl-snappy/Makefile @@ -2,27 +2,23 @@ # $FreeBSD$ PORTNAME= php5-snappy -PORTVERSION= 0.0.2 -PORTREVISION= 2 +PORTVERSION= 0.1.5 CATEGORIES= archivers -MASTER_SITES= GOOGLE_CODE -PROJECTHOST= php-snappy -DISTNAME= ${PROJECTHOST}-${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= PHP extension for the snappy compression algorithm LICENSE= BSD2CLAUSE -BROKEN= Unfetchable (google code has gone away) - LIB_DEPENDS= libsnappy.so:archivers/snappy USES= php:ext +USE_GITHUB= yes +GH_ACCOUNT= kjdev +GH_PROJECT= php-ext-snappy PHP_MODNAME= snappy CONFIGURE_ARGS= --with-snappy-includedir=${LOCALBASE}/include -WRKSRC= ${WRKDIR}/${PROJECTHOST} -IGNORE_WITH_PHP= 70 +WRKSRC= ${WRKDIR}/php-ext-snappy-${PORTVERSION} do-test: (cd ${WRKSRC} && ${DO_MAKE_BUILD} NO_INTERACTION=yes test < /dev/null) diff --git a/archivers/pecl-snappy/distinfo b/archivers/pecl-snappy/distinfo new file mode 100644 index 000000000000..f4224e10de84 --- /dev/null +++ b/archivers/pecl-snappy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1473896952 +SHA256 (kjdev-php-ext-snappy-0.1.5_GH0.tar.gz) = 78d407290ca7d75eed5127642d8dcb5c08a71ec611efa5f197980e48b3623dab +SIZE (kjdev-php-ext-snappy-0.1.5_GH0.tar.gz) = 9516 diff --git a/archivers/php5-snappy/pkg-descr b/archivers/pecl-snappy/pkg-descr index a888fadefeee..a888fadefeee 100644 --- a/archivers/php5-snappy/pkg-descr +++ b/archivers/pecl-snappy/pkg-descr diff --git a/archivers/php5-snappy/distinfo b/archivers/php5-snappy/distinfo deleted file mode 100644 index a3a90d0bc716..000000000000 --- a/archivers/php5-snappy/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (php-snappy-0.0.2.tar.gz) = 7aa6be88e09985fc0f9054b3e3d06612383aaacbbc6db705913ad7d047dc9cd9 -SIZE (php-snappy-0.0.2.tar.gz) = 6801 diff --git a/archivers/php5-snappy/files/patch-config.m4 b/archivers/php5-snappy/files/patch-config.m4 deleted file mode 100644 index ee75b443f980..000000000000 --- a/archivers/php5-snappy/files/patch-config.m4 +++ /dev/null @@ -1,44 +0,0 @@ ---- config.m4.orig 2011-09-07 08:27:21 UTC -+++ config.m4 -@@ -53,7 +53,7 @@ if test "$PHP_SNAPPY" != "no"; then - - 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 @@ if test "$PHP_SNAPPY" != "no"; then - 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 @@ if test "$PHP_SNAPPY" != "no"; then - - dnl # add include path - -- PHP_ADD_INCLUDE($SNAPPY_DIR) -+ PHP_ADD_INCLUDE([$SNAPPY_DIR/include]) - - dnl # check for lib - -@@ -90,7 +90,7 @@ if test "$PHP_SNAPPY" != "no"; then - AC_LANG_CPLUSPLUS - AC_TRY_COMPILE( - [ -- #include "$SNAPPY_DIR/snappy-c.h" -+ #include "$SNAPPY_DIR/include/snappy-c.h" - ],[ - snappy_max_compressed_length(1); - ],[ |