sthen 3cbe1c2f30 Reverse the polarity of MODPY_VERSION; default is now 3.x,
if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}.

This commit doesn't change any versions currently used; it may be that
some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those
should be cleaned up in the course of updating ports where possible.

Python module ports providing py3-* packages should still use
FLAVOR=python3 so that we don't have a mixture of dependencies some
using ${MODPY_FLAVOR} and others not.
2021-02-23 19:39:08 +00:00

43 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.59 2021/02/23 19:39:29 sthen Exp $
COMMENT= powerful IMAP/Maildir synchronization and reader support
MODPY_EGG_VERSION = 7.3.3
DISTNAME = offlineimap-v${MODPY_EGG_VERSION}
PKGNAME = offlineimap-${MODPY_EGG_VERSION}
CATEGORIES= mail
HOMEPAGE= https://www.offlineimap.org/
# GPLv2+
PERMIT_PACKAGE= Yes
NO_TEST= Yes
MODULES= lang/python
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
BUILD_DEPENDS= textproc/asciidoc \
devel/py-rfc6555 \
devel/py-six
RUN_DEPENDS= devel/py-rfc6555 \
devel/py-six
MASTER_SITES= https://www.offlineimap.org/uploads/
EXAMPLESDIR= ${PREFIX}/share/examples/offlineimap
post-build:
${LOCALBASE}/bin/a2x -f manpage ${WRKSRC}/docs/offlineimap.txt
${LOCALBASE}/bin/a2x -f manpage ${WRKSRC}/docs/offlineimapui.txt
post-install:
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/offlineimap.conf{,.minimal} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/docs/offlineimap.1 ${PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/docs/offlineimapui.7 ${PREFIX}/man/man7
.include <bsd.port.mk>