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

42 lines
864 B
Makefile

# $OpenBSD: Makefile,v 1.74 2021/02/23 19:39:45 sthen Exp $
COMMENT= graphical diff and merge tool
GNOME_VERSION= 3.21.0
GNOME_PROJECT= meld
MODPY_EGG_VERSION= ${GNOME_VERSION}
REVISION= 3
CATEGORIES= textproc
HOMEPAGE= http://meldmerge.org/
# GPLv2
PERMIT_PACKAGE= Yes
MODULES= devel/dconf \
lang/python \
x11/gnome
MODGNOME_TOOLS= desktop-file-utils gtk-update-icon-cache \
shared-mime-info yelp
MODPY_ADJ_FILES= bin/meld
RUN_DEPENDS= devel/py-gobject3${MODPY_FLAVOR} \
x11/gtksourceview4
# org.gnome.desktop.interface
RUN_DEPENDS += devel/gsettings-desktop-schemas
NO_TEST= yes
do-install:
${MODPY_CMD} --no-compile-schemas --no-update-icon-cache \
${MODPY_DISTUTILS_INSTALL}
mv ${PREFIX}/share/doc/meld{-${GNOME_VERSION},}
mv ${PREFIX}/{share,}/man/man1/meld.1
rmdir ${PREFIX}/share/man/{man1,}
.include <bsd.port.mk>