sthen d7f0752227 bump all the py3 things, _SYSTEM_VERSION didn't quite work out how
we expected and it's easier|safer to do it this way than fiddle with
pkg_add now. thanks aja for update tests with a quick bulk.
2019-04-28 20:51:26 +00:00

54 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.50 2019/04/28 20:51:43 sthen Exp $
COMMENT= Genealogical Research Analysis Management Programming System
MODPY_EGG_VERSION= 4.2.8
DISTNAME= gramps-${MODPY_EGG_VERSION}
REVISION= 3
CATEGORIES= misc x11
HOMEPAGE= https://gramps-project.org/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gramps/}
MODULES= lang/python \
textproc/intltool
MODPY_VERSION= ${MODPY_DEFAULT_VERSION_3}
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>