# Created by: Sofian Brabez <sbrabez@gmail.com>
# $FreeBSD: tags/RELEASE_10_4_0/devel/py-InlineEgg/Makefile 440775 2017-05-13 10:44:18Z miwi $

PORTNAME=	InlineEgg
PORTVERSION=	1.08
PORTREVISION=	1
CATEGORIES=	devel security python
MASTER_SITES=	http://corelabs.coresecurity.com/index.php?module=Wiki&action=attachment&type=tool&page=InlineEgg&file=
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	sbz@FreeBSD.org
COMMENT=	Python module for writing inline assembler programs

FETCH_BEFORE_ARGS=-o ${DISTFILES}
USES=		dos2unix python shebangfix
SHEBANG_FILES=	examples/*.py
USE_PYTHON=	distutils autoplist
BROKEN=		checksum mismatch

PORTDOCS=	InlineEgg.html Changelog README
PORTEXAMPLES=	*

OPTIONS_DEFINE=	DOCS EXAMPLES

post-install:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA}  ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>
