[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / databases / gramps5

File: [cvs.NetBSD.org] / pkgsrc / databases / gramps5 / Makefile (download)

Revision 1.5, Fri Dec 4 20:45:04 2020 UTC (3 years, 2 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4
Changes since 1.4: +2 -2 lines

Revbump packages with a runtime Python dep but no version prefix.

For the Python 3.8 default switch.

# $NetBSD: Makefile,v 1.5 2020/12/04 20:45:04 nia Exp $

DISTNAME=		gramps-5.1.2
PKGREVISION=		3
CATEGORIES=		databases
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=gramps/}

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		https://gramps-project.org/
COMMENT=		Genealogical Research and Analysis Management Programming System V5
LICENSE=		gnu-gpl-v2

USE_TOOLS+=		msgfmt pkg-config intltool msgconv

PYTHON_VERSIONS_INCOMPATIBLE=	27 36

REPLACE_PYTHON+=	gramps/gen/utils/place.py
REPLACE_PYTHON+=	gramps/gen/datehandler/_date_fr.py
REPLACE_PYTHON+=	docs/update_doc.py
REPLACE_PYTHON+=	docs/conf.py
REPLACE_PYTHON+=	setup.py

SUBST_CLASSES+=		man
SUBST_FILES.man+=	setup.py
SUBST_STAGE.man+=	pre-configure
SUBST_MESSAGE.man+=	Fixing man page installation path
SUBST_SED.man+=		-e "s,share/man,${PKGMANDIR},"

# pkgsrc registers mime files using mimedb.mk (see below)
CONFIGURE_ARGS+=	--enable-packager-mode

# needs svg pixbuf loader at runtime
DEPENDS+=	librsvg-[0-9]*:../../graphics/librsvg
DEPENDS+=	${PYPKGPREFIX}-gobject3-[0-9]*:../../devel/py-gobject3

# setup.py target includes ${DESTDIR}, which is wrong
post-install:
	${ECHO} -n ${PREFIX}/share > ${DESTDIR}${PREFIX}/${PYSITELIB}/gramps/gen/utils/resource-path

.include "options.mk"

.include "../../databases/py-bsddb3/buildlink3.mk"
.include "../../graphics/gnome-icon-theme/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../lang/python/distutils.mk"
.include "../../databases/shared-mime-info/mimedb.mk"
.include "../../mk/bsd.pkg.mk"