[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / sysutils / py-diffoscope

File: [cvs.NetBSD.org] / pkgsrc / sysutils / py-diffoscope / Makefile (download)

Revision 1.2, Sun Aug 28 15:48:34 2016 UTC (2 years, 7 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2016Q3-base, pkgsrc-2016Q3
Changes since 1.1: +1 -3 lines

Remove unnecessary PLIST_SUBST and FILES_SUBST that are now provided
by the infrastructure.

Mark a couple more packages as not ready for python-3.x.

# $NetBSD: Makefile,v 1.2 2016/08/28 15:48:34 wiz Exp $

DISTNAME=	diffoscope-44
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
CATEGORIES=	sysutils
MASTER_SITES=	${MASTER_SITE_PYPI:=d/diffoscope/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://diffoscope.org/
COMMENT=	In-depth comparison of files, archives, and directories
LICENSE=	gnu-gpl-v3

DEPENDS+=	${PYPKGPREFIX}-libarchive-c-[0-9]*:../../archivers/py-libarchive-c
DEPENDS+=	${PYPKGPREFIX}-magic-[0-9]*:../../sysutils/py-magic
DEPENDS+=	${PYPKGPREFIX}-tlsh-[0-9]*:../../devel/py-tlsh
# for xxd
DEPENDS+=	vim-[0-9]*:../../editors/vim

USE_TOOLS+=	gtar:run xz:run bzip2:run

USE_LANGUAGES=		# none

SUBST_CLASSES+=		gtar
SUBST_SED.gtar+=	-e "s,'tar,'gtar,"
SUBST_FILES.gtar+=	diffoscope/comparators/tar.py tests/comparators/test_utils.py
SUBST_MESSAGE.gtar=	Fix path to gtar.
SUBST_STAGE.gtar=	post-configure

PYTHON_VERSIONS_INCOMPATIBLE=	27

post-install:
	cd ${DESTDIR}${PREFIX}/bin && \
		${MV} diffoscope diffoscope-${PYVERSSUFFIX}

.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"