Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / sysutils / duplicity / Makefile
blob5b3c96b03e6ac300f54fc86b1ab0129ba560295e
1 # $NetBSD: Makefile,v 1.23 2012/10/23 19:50:59 asau Exp $
3 DISTNAME= duplicity-0.6.21
4 CATEGORIES= sysutils net
5 MASTER_SITES= http://code.launchpad.net/duplicity/0.6-series/${PKGVERSION_NOREV}/+download/
7 MAINTAINER= pkgsrc-users@NetBSD.org
8 HOMEPAGE= http://www.nongnu.org/duplicity/
9 COMMENT= Remote encrypting incremental backup utility
10 LICENSE= gnu-gpl-v2
12 USE_PKGLOCALEDIR= yes
14 PKG_OPTIONS_VAR= PKG_OPTIONS.duplicity
15 PKG_SUPPORTED_OPTIONS= gnupg2
16 .include "../../mk/bsd.options.mk"
17 .if !empty(PKG_OPTIONS:Mgnupg2)
18 DEPENDS+= gnupg2-[0-9]*:../../security/gnupg2
19 GPGPATH= ${LOCALBASE}/bin/gpg2
20 .else
21 DEPENDS+= gnupg>=1.0.0:../../security/gnupg
22 GPGPATH= ${LOCALBASE}/bin/gpg
23 .endif
25 REPLACE_PYTHON+= bin/*
27 SUBST_CLASSES+= fix-paths
28 SUBST_STAGE.fix-paths= pre-configure
29 SUBST_MESSAGE.fix-paths= fixing hard coded dirs
30 SUBST_FILES.fix-paths= setup.py
31 SUBST_SED.fix-paths= -e 's,share/man/man1,${PKGMANDIR}/man1,'
32 SUBST_SED.fix-paths+= -e 's,share/locale,${PKGLOCALEDIR}/locale,'
34 SUBST_CLASSES+= gpgpath
35 SUBST_STAGE.gpgpath= pre-configure
36 SUBST_FILES.gpgpath= duplicity/gpginterface.py
37 SUBST_VARS.gpgpath= GPGPATH
39 # XXX in 0.6.21, doc files are mode 0600
40 post-extract:
41 cd ${WRKSRC} && ${CHMOD} go+r *
43 BUILDLINK_API_DEPENDS.librsync+= librsync>=0.9.6
44 .include "../../devel/librsync/buildlink3.mk"
45 .include "../../lang/python/distutils.mk"
46 .include "../../lang/python/application.mk"
47 .include "../../mk/bsd.pkg.mk"