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.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.47 2021/02/23 19:39:24 sthen Exp $
COMMENT= gtk2 comic book viewer
DISTNAME= comix-4.0.4
REVISION= 9
CATEGORIES= graphics
# XXX consider replacing with more active fork,
# https://sourceforge.net/projects/mcomix/ ?
HOMEPAGE= http://comix.sourceforge.net/
# GPLv2
PERMIT_PACKAGE= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=comix/}
MODULES= lang/python \
devel/gconf2
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_2}
MODGCONF2_LIBDEP= No
MODGCONF2_SCHEMAS_DIR= comix
BUILD_DEPENDS= graphics/py2-Pillow \
x11/py-gtk2
RUN_DEPENDS= graphics/py2-Pillow \
x11/py-gtk2 \
misc/shared-mime-info \
devel/desktop-file-utils \
x11/gtk+3,-guic
NO_TEST= Yes
post-extract:
gzip -d ${WRKSRC}/comix.1.gz ${WRKSRC}/mime/comicthumb.1.gz
do-build:
${SUBST_CMD} -c ${WRKSRC}/src/comix.py ${WRKSRC}/comix
do-install:
cd ${WRKSRC} && ${MODPY_BIN} install.py --dir ${PREFIX} install
# schemas files are always installed under LOCALBASE, not PREFIX
${INSTALL_DATA_DIR} ${WRKINST}/${LOCALBASE}/${SCHEMAS_INSTDIR}/
${INSTALL_DATA} ${WRKSRC}/mime/comicbook.schemas \
${WRKINST}/${LOCALBASE}/${SCHEMAS_INSTDIR}/
.include <bsd.port.mk>