freebsd-ports/devel/py-uncompyle2/Makefile
Antoine Brodin f7455240e3 Reduce dependency on the python2 metaport
PR:		225752
Submitted by:	Yasuhiro KIMURA
2018-02-19 11:10:43 +00:00

28 lines
615 B
Makefile

# Created by: Mikhail Teterin <mi@aldan.algebra.com>
# $FreeBSD$
PORTNAME= uncompyle2
PORTVERSION= 1.1
PORTREVISION= 1
CATEGORIES= devel
PKGNAMEPREFIX= py-
MAINTAINER= mi@aldan.algebra.com
COMMENT= Decompiler for Python's .pyc and .pyo files
USE_GITHUB= yes
GH_ACCOUNT= Mysterie
GH_TAGNAME= 3956a5a
USES= python:2.7
USE_PYTHON= distutils
REINPLACE_ARGS= -i ""
pre-patch:
# Removing blanks at EOL
${FIND} ${WRKSRC} -type f -print0 | \
${XARGS} -0 ${REINPLACE_CMD} -E 's/[[:blank:]]+$$//g'
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/uncompyle2.py ${STAGEDIR}${PREFIX}/bin/uncompyle2
.include <bsd.port.mk>