diff options
Diffstat (limited to 'mail/offlineimap/Makefile')
-rw-r--r-- | mail/offlineimap/Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/mail/offlineimap/Makefile b/mail/offlineimap/Makefile new file mode 100644 index 00000000000..448ea55ca5f --- /dev/null +++ b/mail/offlineimap/Makefile @@ -0,0 +1,40 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/08/10 10:09:20 seb Exp $ +# + +DISTNAME= offlineimap_${_OFFLINEIMAP_VER} +PKGNAME= offlineimap-${_OFFLINEIMAP_VER} +WRKSRC= ${WRKDIR}/offlineimap +CATEGORIES= mail +MASTER_SITES= http://gopher.quux.org:70/devel/offlineimap/ + +MAINTAINER= seb@netbsd.org +HOMEPAGE= http://gopher.quux.org:70/devel/offlineimap/ +COMMENT= Powerful IMAP/Maildir synchronization and reader support + +USE_BUILDLINK2= # defined + +# This is only to placate pkglint +_OFFLINEIMAP_VER= 4.0.0 + +PYTHON_VERSIONS_ACCEPTED= 22pth 23pth +BUILDLINK_DEPENDS.python22-pth= python22-pth>=2.2.2 +PYTHON_PATCH_SCRIPTS= bin/offlineimap +PYTHON_PATCH_SCRIPT_SED= -e "1s;^\#!.*python.*;\#!${PYTHONBIN};" +PLIST_SUBST+= PYSITELIB=${PYSITELIB} + +do-build: + cd ${WRKSRC}; ${PYTHONBIN} setup.py build + +do-install: + cd ${WRKSRC}; ${PYTHONBIN} setup.py install + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/offlineimap +.for _f_ in offlineimap.conf offlineimap.conf.minimal + ${INSTALL_DATA} ${WRKSRC}/${_f_} ${PREFIX}/share/examples/offlineimap/${_f_} +.endfor + ${INSTALL_MAN_DIR} ${PREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/offlineimap.1 ${PREFIX}/man/man1/offlineimap.1 + +.include "../../lang/python/application.mk" +.include "../../mk/bsd.pkg.mk" |