git: 32715e208d12 - main - mail/roundcube-gravatar: New port

From: Alexander Leidinger <netchild_at_FreeBSD.org>
Date: Thu, 07 Dec 2023 12:22:43 UTC
The branch main has been updated by netchild:

URL: https://cgit.FreeBSD.org/ports/commit/?id=32715e208d12b45f7e3220684713aac0abdbefc6

commit 32715e208d12b45f7e3220684713aac0abdbefc6
Author:     Alexander Leidinger <netchild@FreeBSD.org>
AuthorDate: 2023-12-07 12:20:25 +0000
Commit:     Alexander Leidinger <netchild@FreeBSD.org>
CommitDate: 2023-12-07 12:20:25 +0000

    mail/roundcube-gravatar: New port
    
    A gravatar plugin for roundcube.
---
 mail/roundcube-gravatar/Makefile  | 43 +++++++++++++++++++++++++++++++++++++++
 mail/roundcube-gravatar/distinfo  |  3 +++
 mail/roundcube-gravatar/pkg-plist | 14 +++++++++++++
 3 files changed, 60 insertions(+)

diff --git a/mail/roundcube-gravatar/Makefile b/mail/roundcube-gravatar/Makefile
new file mode 100644
index 000000000000..2e2c02c21cac
--- /dev/null
+++ b/mail/roundcube-gravatar/Makefile
@@ -0,0 +1,43 @@
+PORTNAME=	gravatar
+DISTVERSION=	1.6
+DISTVERSIONPREFIX=v
+CATEGORIES=	mail
+PKGNAMEPREFIX=	roundcube-
+PKGNAMESUFFIX=	${PHP_PKGNAMESUFFIX}
+
+MAINTAINER=	netchild@FreeBSD.org
+COMMENT=	Roundcube gravatar plugin
+WWW=		https://github.com/prodrigestivill/roundcube_gravatar/
+
+LICENSE=	GPLv3
+
+RUN_DEPENDS=	roundcube${PHP_PKGNAMESUFFIX}>=1.0:mail/roundcube@${PHP_FLAVOR}
+
+USES=		php:flavors
+
+WWWDIR=		${LOCALBASE}/www/roundcube
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	prodrigestivill
+GH_PROJECT=	roundcube-gravatar
+
+PLUGDIR=	${WWWDIR}/plugins/gravatar
+PLIST_SUB+=	PLUGDIR="www/roundcube/plugins/gravatar"
+
+do-install:
+	@${ECHO} "Installing in ${PLUGDIR}"
+	${MKDIR} ${STAGEDIR}/${PLUGDIR}
+	cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}/${PLUGDIR}
+
+gen-plist:
+	${FIND} ${WRKSRC} -type f -print | ${SORT} | \
+	    ${GREP} -v '.gitignore' | \
+	    ${SED} -e "s:${WRKSRC}:%%PLUGDIR%%:g" \
+	           -e 's:%%PLUGDIR%%/config.inc.php.dist:@sample %%PLUGDIR%%/config.inc.php.dist %%PLUGDIR%%/config.inc.php:'  \
+	    > pkg-plist.new
+	${FIND} ${WRKSRC} -type d -print | ${SORT} -r | \
+	    ${SED} -e "s:${WRKSRC}:@dir %%PLUGDIR%%:g"  >> pkg-plist.new
+
+.include <bsd.port.mk>
diff --git a/mail/roundcube-gravatar/distinfo b/mail/roundcube-gravatar/distinfo
new file mode 100644
index 000000000000..3cd6c944c848
--- /dev/null
+++ b/mail/roundcube-gravatar/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1701948875
+SHA256 (prodrigestivill-roundcube-gravatar-v1.6_GH0.tar.gz) = eb7c2dcfcdc5926c5d818a907c4363ce505eb9cc837f7d7ad3b672f0f545108a
+SIZE (prodrigestivill-roundcube-gravatar-v1.6_GH0.tar.gz) = 17713
diff --git a/mail/roundcube-gravatar/pkg-plist b/mail/roundcube-gravatar/pkg-plist
new file mode 100644
index 000000000000..0c9555543e60
--- /dev/null
+++ b/mail/roundcube-gravatar/pkg-plist
@@ -0,0 +1,14 @@
+%%PLUGDIR%%/LICENSE
+%%PLUGDIR%%/README.md
+%%PLUGDIR%%/composer.json
+@sample %%PLUGDIR%%/config.inc.php.dist %%PLUGDIR%%/config.inc.php
+%%PLUGDIR%%/gravatar.php
+%%PLUGDIR%%/gravatar_addressbook_backend.php
+%%PLUGDIR%%/localization/ca_ES.inc
+%%PLUGDIR%%/localization/de_DE.inc
+%%PLUGDIR%%/localization/en_US.inc
+%%PLUGDIR%%/localization/es_ES.inc
+%%PLUGDIR%%/localization/fr_FR.inc
+%%PLUGDIR%%/localization/pl_PL.inc
+@dir %%PLUGDIR%%/localization
+@dir %%PLUGDIR%%