aboutsummaryrefslogtreecommitdiff
path: root/mail/davmail/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/davmail/Makefile')
-rw-r--r--mail/davmail/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/mail/davmail/Makefile b/mail/davmail/Makefile
index 9fbc019dc145..7c3e9a3bc9e2 100644
--- a/mail/davmail/Makefile
+++ b/mail/davmail/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= davmail
-PORTVERSION= 3.9.8
-PORTREVISION= 1
+PORTVERSION= 3.9.9
CATEGORIES= mail java
MASTER_SITES= SF/davmail/davmail/${PORTVERSION}
DISTNAME= ${PORTNAME}-src-${PORTVERSION}-${REVISION}
@@ -24,7 +23,7 @@ USE_ANT= yes
USE_JAVA= yes
JAVA_VERSION= 1.6+
ALL_TARGET= release
-REVISION= 1921
+REVISION= 1976
# port build number, same as on DISTNAME
MAKE_ARGS= -Drevision=${REVISION}
@@ -33,6 +32,11 @@ DATADIR= ${JAVASHAREDIR}/${PORTNAME}
USE_RC_SUBR= davmail
SUB_FILES= davmail.sh
+post-patch:
+ @${REINPLACE_CMD} -e 's#exec=\"davmail\"#exec=\"${PREFIX}/bin/davmail\"#' \
+ -e 's#icon=\"/usr/share/davmail/davmail.png\"#icon=\"${DATADIR}/davmail.png\"#' \
+ ${WRKSRC}/build.xml
+
do-install:
@cd ${WRKSRC}/dist && ${FIND} . -type d \
-exec ${MKDIR} ${DATADIR}/\{} \;
@@ -44,10 +48,13 @@ do-install:
-not -name "*.zip" \
-not -name "*.war" \
-not -name "*.rpm" \
+ -not -name "*.desktop" \
-exec ${INSTALL_DATA} \{} ${DATADIR}/\{} \;
@${INSTALL_SCRIPT} ${WRKDIR}/davmail.sh ${PREFIX}/bin/davmail
@${INSTALL_DATA} ${FILESDIR}/davmail.properties.sample \
${PREFIX}/etc
+ @${MKDIR} ${PREFIX}/share/applications
+ @${INSTALL_DATA} ${WRKSRC}/dist/davmail.desktop ${PREFIX}/share/applications/
post-install:
@if [ ! -f ${PREFIX}/etc/davmail.properties ]; then \