openbsd-ports/devel/py-elftools/Makefile
2012-07-09 09:28:53 +00:00

36 lines
890 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2012/07/09 09:28:53 edd 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
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = 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-regress:
cd ${WRKSRC} && ${MODPY_BIN} test/run_all_unittests.py
.include <bsd.port.mk>