aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2018-02-13 03:04:49 +0800
committersunpoet <sunpoet@FreeBSD.org>2018-02-13 03:04:49 +0800
commitcd09be5f22e3d33b8bdcc1df4a046c71ba298103 (patch)
treec056e57b58c16b094f9a1f9b8be679e2a4469951 /devel
parent863b6c9313d4bad35a77c860728d37fbf97cbb2b (diff)
downloadfreebsd-ports-gnome-cd09be5f22e3d33b8bdcc1df4a046c71ba298103.tar.gz
freebsd-ports-gnome-cd09be5f22e3d33b8bdcc1df4a046c71ba298103.tar.zst
freebsd-ports-gnome-cd09be5f22e3d33b8bdcc1df4a046c71ba298103.zip
Add pecl-jsmin2 2.0.1 (copied from pecl-jsmin)
PR: 225425 Submitted by: Pascal Christen <pascal.christen@hostpoint.ch>
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/pecl-jsmin2/Makefile17
-rw-r--r--devel/pecl-jsmin2/distinfo2
-rw-r--r--devel/pecl-jsmin2/files/patch-utf8.c11
-rw-r--r--devel/pecl-jsmin2/pkg-descr3
5 files changed, 34 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 4849dde8df3d..9962b8049863 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -3976,6 +3976,7 @@
SUBDIR += pecl-inotify
SUBDIR += pecl-intl
SUBDIR += pecl-jsmin
+ SUBDIR += pecl-jsmin2
SUBDIR += pecl-json_post
SUBDIR += pecl-jsonc
SUBDIR += pecl-jsond
diff --git a/devel/pecl-jsmin2/Makefile b/devel/pecl-jsmin2/Makefile
new file mode 100644
index 000000000000..df24c22577a6
--- /dev/null
+++ b/devel/pecl-jsmin2/Makefile
@@ -0,0 +1,17 @@
+# Created by: Gasol Wu <gasol.wu@gmail.com>
+# $FreeBSD$
+
+PORTNAME= jsmin
+PORTVERSION= 2.0.1
+CATEGORIES= devel
+PKGNAMESUFFIX= 2
+
+MAINTAINER= pascal.christen@hostpoint.ch
+COMMENT= PHP extension for minifying JavaScript
+
+LICENSE= PHP301
+
+USES= php:pecl
+IGNORE_WITH_PHP=70 71 72
+
+.include <bsd.port.mk>
diff --git a/devel/pecl-jsmin2/distinfo b/devel/pecl-jsmin2/distinfo
new file mode 100644
index 000000000000..43a8055f899b
--- /dev/null
+++ b/devel/pecl-jsmin2/distinfo
@@ -0,0 +1,2 @@
+SHA256 (PECL/jsmin-2.0.1.tgz) = 0ce689c6c605bad2440f0627364603a051168a6b4dd13f9d4c3020cd0a607efa
+SIZE (PECL/jsmin-2.0.1.tgz) = 13123
diff --git a/devel/pecl-jsmin2/files/patch-utf8.c b/devel/pecl-jsmin2/files/patch-utf8.c
new file mode 100644
index 000000000000..3e47e8bdcbbd
--- /dev/null
+++ b/devel/pecl-jsmin2/files/patch-utf8.c
@@ -0,0 +1,11 @@
+--- utf8.c.orig 2015-11-19 03:00:13 UTC
++++ utf8.c
+@@ -18,8 +18,6 @@
+ #include <stdarg.h>
+ #ifdef WIN32
+ #include <malloc.h>
+-#else
+-#include <alloca.h>
+ #endif
+
+ #ifdef WIN32
diff --git a/devel/pecl-jsmin2/pkg-descr b/devel/pecl-jsmin2/pkg-descr
new file mode 100644
index 000000000000..ef8e5b2446af
--- /dev/null
+++ b/devel/pecl-jsmin2/pkg-descr
@@ -0,0 +1,3 @@
+This extension provides an API for minifying JavaScript.
+
+WWW: https://pecl.php.net/package/jsmin