33 lines
805 B
Makefile
33 lines
805 B
Makefile
# $OpenBSD: Makefile,v 1.2 2013/03/11 10:50:25 espie Exp $
|
|
|
|
COMMENT = ELF and DWARF parser library for Python
|
|
|
|
MODPY_EGG_VERSION = 0.20
|
|
DISTNAME = pyelftools-${MODPY_EGG_VERSION}
|
|
PKGNAME = py-elftools-${MODPY_EGG_VERSION}
|
|
CATEGORIES = devel
|
|
|
|
HOMEPAGE = https://bitbucket.org/eliben/pyelftools
|
|
MAINTAINER = Edd Barrett <edd@openbsd.org>
|
|
|
|
# Public domain
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
MASTER_SITES = ${MASTER_SITE_PYPI:=p/pyelftools/}
|
|
MODULES = lang/python
|
|
|
|
EXAMPLEDIR = ${PREFIX}/share/examples/py-elftools
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
|
|
cd ${WRKSRC}/examples && \
|
|
for i in *.py; do \
|
|
echo ${EXAMPLEDIR}; \
|
|
echo ${WRKSRC}/examples/$$i; \
|
|
${INSTALL_SCRIPT} $$i ${EXAMPLEDIR}; \
|
|
done
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && ${MODPY_BIN} test/run_all_unittests.py
|
|
|
|
.include <bsd.port.mk>
|