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

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

Revision 1.6, Tue Jan 3 13:23:02 2017 UTC (2 years, 3 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1
Changes since 1.5: +4 -4 lines

Use "${MV} || ${TRUE}" and "${RM} -f" consistently in post-install targets.

# $NetBSD: Makefile,v 1.6 2017/01/03 13:23:02 jperkin Exp $

DISTNAME=	macholib-1.7
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
CATEGORIES=	devel python
MASTER_SITES=	${MASTER_SITE_PYPI:=m/macholib/}

MAINTAINER=	rodent@NetBSD.org
HOMEPAGE=	http://bitbucket.org/ronaldoussoren/macholib
COMMENT=	Mach-O header analysis and editing
LICENSE=	mit

DEPENDS+=	${PYPKGPREFIX}-altgraph>=0.11:../../graphics/py-altgraph

USE_LANGUAGES=	# none

REPLACE_PYTHON+=	macholib/macho_dump.py macholib/macho_find.py
REPLACE_PYTHON+=	macholib/macho_standalone.py

post-install:
	${MV} ${DESTDIR}${PREFIX}/bin/macho_dump \
		${DESTDIR}${PREFIX}/bin/macho_dump${PYVERSSUFFIX} || ${TRUE}
	${MV} ${DESTDIR}${PREFIX}/bin/macho_find \
		${DESTDIR}${PREFIX}/bin/macho_find${PYVERSSUFFIX} || ${TRUE}
	${MV} ${DESTDIR}${PREFIX}/bin/macho_standalone \
		${DESTDIR}${PREFIX}/bin/macho_standalone${PYVERSSUFFIX} || ${TRUE}

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