aboutsummaryrefslogtreecommitdiff
path: root/mail/roundcube-contextmenu/Makefile
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2014-04-21 02:39:02 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2014-04-21 02:39:02 +0000
commite52a01f757fd4aa586a7506837f0aa73d6df4fb9 (patch)
tree7c44250982e3f6304720ddd55873c93a18114467 /mail/roundcube-contextmenu/Makefile
parentffa389b8e0ae542711dcbea4a307333e88e3953a (diff)
downloadports-e52a01f757fd4aa586a7506837f0aa73d6df4fb9.tar.gz
ports-e52a01f757fd4aa586a7506837f0aa73d6df4fb9.zip
Notes
Diffstat (limited to 'mail/roundcube-contextmenu/Makefile')
-rw-r--r--mail/roundcube-contextmenu/Makefile34
1 files changed, 19 insertions, 15 deletions
diff --git a/mail/roundcube-contextmenu/Makefile b/mail/roundcube-contextmenu/Makefile
index 5553880a0f6e..2283c507eb05 100644
--- a/mail/roundcube-contextmenu/Makefile
+++ b/mail/roundcube-contextmenu/Makefile
@@ -2,10 +2,9 @@
# $FreeBSD$
PORTNAME= contextmenu
-PORTVERSION= 1.10 # PLEASE MIRROR DISTFILE WITH VERSIONED DIR
+PORTVERSION= 1.13
CATEGORIES= mail
-MASTER_SITES= http://www.tehinterweb.co.uk/roundcube/plugins/ \
- LOCAL/bdrewery/${PORTNAME}/${PORTVERSION}/
+MASTER_SITES= GH
PKGNAMEPREFIX= roundcube-
DISTNAME= ${PORTNAME}
@@ -14,24 +13,29 @@ COMMENT= RoundCube webmail contextmenu plugin
LICENSE= GPLv2
-RUN_DEPENDS= roundcube>=0.9:${PORTSDIR}/mail/roundcube
+RUN_DEPENDS= roundcube>=1.0:${PORTSDIR}/mail/roundcube
NO_BUILD= yes
-WWWDIR?= ${PREFIX}/www/roundcube/plugins/contextmenu
+USE_GITHUB= YES
+GH_ACCOUNT= JohnDoh
+GH_PROJECT= Roundcube-Plugin-Context-Menu
+GH_TAGNAME= 1.13
+GH_COMMIT= 53e7f7c
+
+PLUGINDIR= ${WWWDIR:S,/${PORTNAME}$$,,}/roundcube/plugins/${PORTNAME}
+RCDIR_REL= ${WWWDIR_REL:S,/${PORTNAME}$$,,}/roundcube
+PLIST_SUB= RCDIR_REL="${RCDIR_REL}"
# This target is only meant to be used by the port maintainer.
x-generate-plist: build
- cd ${WRKSRC}; \
- ${FIND} . ! -type d ! -name '*.orig' | ${SORT} | \
- ${SED} -e "s,^\.,%%WWWDIR%%," >${.CURDIR}/pkg-plist.tmp ; \
- ${FIND} . -type d | ${SORT} -r | ${SED} \
- -e "s,^\.$$,@dirrmtry %%WWWDIR%%," \
- -e "s,^\.,@dirrm %%WWWDIR%%," >>${.CURDIR}/pkg-plist.tmp
-
-NO_STAGE= yes
+ make makeplist | \
+ ${SED} \
+ -e "s,^\(@dirrm\)try\( %%RCDIR_REL%%/plugins/contextmenu\),\1\2," \
+ >${.CURDIR}/pkg-plist.tmp
+
do-install:
- ${MKDIR} ${WWWDIR}
- cd ${WRKSRC} && ${PAX} -r -w . ${WWWDIR}
+ ${MKDIR} ${STAGEDIR}${PLUGINDIR}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${PLUGINDIR}
.include <bsd.port.mk>