aboutsummaryrefslogtreecommitdiff
path: root/net/onedrive/Makefile
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2019-04-28 15:35:02 +0000
committerKurt Jaeger <pi@FreeBSD.org>2019-04-28 15:35:02 +0000
commitfd6e9a388e1e4cdb023697c98cf1bf7c9931ff94 (patch)
tree8179f9c2f767be7c44408b9aa961dd405babec98 /net/onedrive/Makefile
parent9643d28d53f129da0e0c35190d6712d1566fe850 (diff)
downloadports-fd6e9a388e1e4cdb023697c98cf1bf7c9931ff94.tar.gz
ports-fd6e9a388e1e4cdb023697c98cf1bf7c9931ff94.zip
net/onedrive: upgrade 1.1.3 -> 2.3.3
- MASTERSITE moved PR: 237545 Submitted by: Hiroo Ono <hiroo.ono+freebsd@gmail.com> (maintainer) Relnotes: https://github.com/abraunegg/onedrive/releases https://github.com/abraunegg/onedrive/blob/master/CHANGELOG.md
Notes
Notes: svn path=/head/; revision=500320
Diffstat (limited to 'net/onedrive/Makefile')
-rw-r--r--net/onedrive/Makefile55
1 files changed, 41 insertions, 14 deletions
diff --git a/net/onedrive/Makefile b/net/onedrive/Makefile
index 5e4dab4c04b3..2cf47b577153 100644
--- a/net/onedrive/Makefile
+++ b/net/onedrive/Makefile
@@ -2,35 +2,62 @@
PORTNAME= onedrive
DISTVERSIONPREFIX= v
-DISTVERSION= 1.1.3
-PORTREVISION= 1
+DISTVERSION= 2.3.3
CATEGORIES= net
MAINTAINER= hiroo.ono+freebsd@gmail.com
-COMMENT= Microsoft OneDrive client
+COMMENT= OneDrive Free client
LICENSE= GPLv3
LIB_DEPENDS= libcurl.so:ftp/curl \
libinotify.so:devel/libinotify
BUILD_DEPENDS= ldc2:lang/ldc
+RUN_DEPENDS= ${LOCALBASE}/sbin/logrotate:sysutils/logrotate
-USES= sqlite
+USES= gmake pkgconfig sqlite
USE_GITHUB= yes
-GH_ACCOUNT= skilion
+GH_ACCOUNT= abraunegg
-MAKE_ARGS= DC=ldc2
+DFLAGS+= -g
+PKGCONFIG= pkgconf
+MAKE_ARGS= DC=ldc2
+INSTALL_TARGET= install.noservice
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= DOCS NOTIFY BASH ZSH
+OPTIONS_DEFAULT= DOCS NOTIFY BASH ZSH
+OPTIONS_SUB= yes
+
+DOCFILES= README.md README.Office365.md config CHANGELOG.md
+
+NOTIFY_VARS= NOTIFICATIONS=1
+NOTIFY_USES= gnome
+NOTIFY_USE= GNOME=glib20
+NOTIFY_LIB_DEPENDS= libnotify.so:devel/libnotify
+
+BASH_COMPLETION_DIR= ${LOCALBASE}/share/bash-completion/completions
+ZSH_COMPLETION_DIR= ${LOCALBASE}/share/zsh/site-functions
post-extract:
${CP} ${FILESDIR}/freebsd_inotify.d ${WRKSRC}/src
- ${CP} ${FILESDIR}/version ${WRKSRC}
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/onedrive ${STAGEDIR}${PREFIX}/bin
- ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/config ${STAGEDIR}${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
+do-install-DOCS-on:
+.for f in ${DOCFILES}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
+.endfor
+
+do-install-BASH-on:
+ @${MKDIR} ${STAGEDIR}${BASH_COMPLETION_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/completions/complete.bash \
+ ${STAGEDIR}${BASH_COMPLETION_DIR}/onedrive
+
+do-install-ZSH-on:
+ @${MKDIR} ${STAGEDIR}${ZSH_COMPLETION_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/completions/complete.zsh \
+ ${STAGEDIR}${ZSH_COMPLETION_DIR}/_onedrive
+
+post-install-DOCS-on:
+ ${INSTALL_MAN} ${WRKSRC}/onedrive.1 ${STAGEDIR}${MANPREFIX}/man/man1
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>