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

51 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.56 2021/02/23 19:39:30 sthen Exp $
COMMENT= Genealogical Research Analysis Management Programming System
MODPY_EGG_VERSION = 5.1.3
DISTNAME= gramps-${MODPY_EGG_VERSION}
CATEGORIES= misc x11
HOMEPAGE= https://gramps-project.org/
# GPLv2+
PERMIT_PACKAGE= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gramps/}
MODULES= lang/python \
textproc/intltool
RUN_DEPENDS= databases/py-bsddb3${MODPY_FLAVOR} \
devel/desktop-file-utils \
devel/py-gobject3${MODPY_FLAVOR} \
devel/xdg-utils \
fonts/freefont-ttf \
geo/osm-gps-map \
graphics/libgexiv2 \
graphics/py-Pillow${MODPY_FLAVOR} \
math/graphviz \
misc/shared-mime-info \
textproc/gtkspell3 \
textproc/py-ICU${MODPY_FLAVOR} \
x11/gtk+3,-guic
MODPY_DISTUTILS_BUILD= build
NO_TEST= Yes
pre-configure:
sed -i 's,/usr/share,${PREFIX}/share,g' \
${WRKSRC}/data/gramps.keys.in
sed -i 's,share/man,man,g' ${WRKSRC}/setup.py
post-install:
echo -n '${TRUEPREFIX}/share' \
>${WRKINST}/${MODPY_SITEPKG}/gramps/gen/utils/resource-path
gunzip ${PREFIX}/man/*/{,*}/*.gz
${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
mv ${PREFIX}/share/icons/gramps.png \
${PREFIX}/share/pixmaps/
.include <bsd.port.mk>