summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoravkarenow <avkarenow@o2.pl>2023-07-03 00:39:02 +0200
committercos <cos>2024-03-30 07:46:12 +0100
commit7ea362f1469293deb6c6fcc53d0ff40cb1311c5b (patch)
tree0e3f8b10299da2d39e53827a72ea8864bd44bdff
parent439a5dbc65ef7ef67ff45fcc1b6f72a31308abdc (diff)
downloadfreebsd-ports-wp-cli.zip
New port: www/wp-cliwp-cli
-rw-r--r--www/Makefile1
-rw-r--r--www/wp-cli/Makefile31
-rw-r--r--www/wp-cli/distinfo3
-rw-r--r--www/wp-cli/pkg-descr3
4 files changed, 38 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 3b97a3c2736b..91d4b57b4d04 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2469,6 +2469,7 @@
SUBDIR += wiki-tui
SUBDIR += wikicalc
SUBDIR += wordpress
+ SUBDIR += wp-cli
SUBDIR += wpebackend-fdo
SUBDIR += writeas-cli
SUBDIR += writefreely
diff --git a/www/wp-cli/Makefile b/www/wp-cli/Makefile
new file mode 100644
index 000000000000..582482202eb5
--- /dev/null
+++ b/www/wp-cli/Makefile
@@ -0,0 +1,31 @@
+PORTNAME= wp-cli
+PORTVERSION= 2.8.1
+CATEGORIES= www
+MASTER_SITES= https://github.com/wp-cli/wp-cli/releases/download/v${DISTVERSION}/
+PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
+EXTRACT_SUFX= .phar
+
+MAINTAINER= avkarenow@o2.pl
+COMMENT= Command line interface for WordPress
+WWW= https://wp-cli.org/
+
+LICENSE= MIT
+
+USES= php:cli,flavors
+USE_PHP= curl exif fileinfo ftp gd hash json mysqli pcre tokenizer xml zip zlib
+
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+NO_ARCH= yes
+
+PLIST_FILES= bin/wp bin/wp-cli.phar
+
+do-extract:
+ @${MKDIR} ${WRKSRC}/
+ ${CP} ${_DISTDIR}/wp-cli-${PORTVERSION}.phar ${WRKSRC}/wp-cli.phar
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/wp-cli.phar ${STAGEDIR}${PREFIX}/bin/
+ ${LN} -s wp-cli.phar ${STAGEDIR}${PREFIX}/bin/wp
+
+.include <bsd.port.mk>
diff --git a/www/wp-cli/distinfo b/www/wp-cli/distinfo
new file mode 100644
index 000000000000..a96dfbcc5d18
--- /dev/null
+++ b/www/wp-cli/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1688331466
+SHA256 (wp-cli-2.8.1.phar) = 8503cd579480d0cb237b4bef35e0c3da11c2ab872a1bc8f26d2da0ca0729b6a7
+SIZE (wp-cli-2.8.1.phar) = 6928461
diff --git a/www/wp-cli/pkg-descr b/www/wp-cli/pkg-descr
new file mode 100644
index 000000000000..34d2d8239eac
--- /dev/null
+++ b/www/wp-cli/pkg-descr
@@ -0,0 +1,3 @@
+WP-CLI is the command-line interface for WordPress.
+You can update plugins, configure multisite installations
+and much more without using a web browser.