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.
36 lines
921 B
Makefile
36 lines
921 B
Makefile
# $OpenBSD: Makefile,v 1.20 2021/02/23 19:39:36 sthen Exp $
|
|
|
|
COMMENT= Python-based presentation tool
|
|
|
|
MODPY_EGG_VERSION= 1.2.1
|
|
DISTNAME= bruce-${MODPY_EGG_VERSION}
|
|
REVISION = 6
|
|
|
|
CATEGORIES= productivity
|
|
|
|
HOMEPAGE= https://sites.google.com/site/r1chardj0n3s/bruce
|
|
|
|
# BSD-like
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
MODPY_PI = Yes
|
|
|
|
MODULES= lang/python
|
|
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
|
|
RUN_DEPENDS= devel/pygame
|
|
|
|
NO_TEST= Yes
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bruce
|
|
${INSTALL_DATA} ${WRKSRC}/doc/socrates.txt \
|
|
${PREFIX}/share/doc/bruce/socrates.txt
|
|
@sed -e "s|doc/socrates.txt|${LOCALBASE}/share/doc/socrates.txt|" \
|
|
${WRKSRC}/README.txt > ${PREFIX}/share/doc/bruce/README
|
|
@mv ${PREFIX}/bin/socrates.py ${PREFIX}/bin/socrates
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/bruce
|
|
@cd ${WRKSRC}/doc/examples; tar cf - . | \
|
|
tar xf - -C ${PREFIX}/share/examples/bruce
|
|
|
|
.include <bsd.port.mk>
|