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

46 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.9 2021/02/23 19:39:14 sthen Exp $
COMMENT= export an RCS or CVS history as a fast-import stream
DISTNAME= cvs-fast-export-1.49
CATEGORIES= devel
HOMEPAGE= http://www.catb.org/esr/cvs-fast-export/
# GPLv2+
PERMIT_PACKAGE= Yes
WANTLIB += c pthread
MASTER_SITES= http://www.catb.org/esr/cvs-fast-export/
# XXX weird tar, includes files symlinked to themselves
BUILD_DEPENDS= archivers/gtar
TAR= gtar
USE_GMAKE= Yes
MODULES= lang/python
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
CONFIGURE_STYLE= x # bad python.port.mk
MAKE_FLAGS= CFLAGS="${CFLAGS}" mandir=${WRKINST}${PREFIX}/man
BUILD_DEPENDS+= devel/bison \
textproc/asciidoc
ALL_TARGET= cvs-fast-export
TEST_TARGET= check
TEST_FLAGS= HOME=${WRKDIR} MAKE_PROGRAM=${MAKE_PROGRAM}
MODPY_ADJ_FILES= cvsconvert cvssync
post-install:
sed -i "s,’,',g" ${PREFIX}/man/man1/*.1
pre-test:
-ln -s ${MODPY_BIN} ${WRKDIR}/bin/python
-ln -s ${LOCALBASE}/bin/python${MODPY_DEFAULT_VERSION_3} \
${WRKDIR}/bin/python3
sed -i 's,^UseNewInfoFmtStrings=yes,#UseNewInfoFmtStrings=yes,' \
${WRKSRC}/tests/*/CVSROOT/config # avoid warnings from old cvs
.include <bsd.port.mk>