openbsd-ports/devel/py-elftools/Makefile
jasper 3398279b30 - update to py-elftools-0.27
- switch to python3-only
2020-10-30 20:12:09 +00:00

35 lines
906 B
Makefile

# $OpenBSD: Makefile,v 1.13 2020/10/30 20:12:09 jasper Exp $
COMMENT = ELF and DWARF parser library for Python
MODPY_EGG_VERSION = 0.27
DISTNAME = pyelftools-${MODPY_EGG_VERSION}
PKGNAME = py-elftools-${MODPY_EGG_VERSION}
CATEGORIES = devel
HOMEPAGE = https://github.com/eliben/pyelftools
MAINTAINER = Jasper Lievisse Adriaanse <jasper@openbsd.org>
# Public domain
PERMIT_PACKAGE = Yes
FLAVORS = python3
FLAVOR ?= python3
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
# test.test_pubtypes.TestEmptyPubtypes is known failure to due missing files in distfile
MODPY_PYTEST = Yes
EXAMPLEDIR = ${PREFIX}/share/examples/${MODPY_PY_PREFIX}elftools
post-install:
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
${INSTALL_SCRIPT} ${WRKSRC}/examples/*.py ${EXAMPLEDIR}/
mv ${PREFIX}/bin/readelf.py{,${MODPY_BIN_SUFFIX}}
TEST_ENV += PYTHONPATH=${WRKSRC}:${WRKSRC}/test
.include <bsd.port.mk>