freebsd-ports/graphics/py-mcomix/Makefile
Kai Knoblich 9292818758 graphics/py-mcomix: Fix runtime with graphics/py-pillow 6.0
* Prevent runtime breakage when graphics/py-pillow is updated to 6.0 where
  the deprecated constant "Image.VERSION" is no longer available. [1]

* Add a workaround for the behavior of the "_getexif" function that is still
  buggy with PNG files that contain EXIF meta data. [2]

Also while I'm here:
* Add "gnome" to USES as using USE_GNOME alone is deprecated.

PR:		237887, 237426 (related)
Approved by:	ashish (maintainer)
Obtained from:	upstream [1], https://github.com/multiSnow/mcomix3/issues/76 [2]
2019-05-18 11:15:00 +00:00

28 lines
650 B
Makefile

# Created by: Ashish SHUKLA <ashish@FreeBSD.org>
# $FreeBSD$
PORTNAME= mcomix
PORTVERSION= 1.2.1
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/MComix-${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ashish@FreeBSD.org
COMMENT= GTK2 comic book viewer
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pillow>=5.2.0:graphics/py-pillow@${PY_FLAVOR}
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= gnome python:2.7 tar:bzip2
USE_GNOME= pygtk2
USE_PYTHON= autoplist distutils
post-patch:
@${REINPLACE_CMD} -e 's|share/man/man1|man/man1|g' \
${WRKSRC}/setup.py
.include <bsd.port.mk>