e8f2c03fe9
post-install and add to ALTERNATIVES.
30 lines
846 B
Makefile
30 lines
846 B
Makefile
# $NetBSD: Makefile,v 1.2 2014/11/09 19:31:56 rodent Exp $
|
|
|
|
DISTNAME= hy-0.10.1
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= lang python
|
|
MASTER_SITES= https://pypi.python.org/packages/source/h/hy/
|
|
|
|
MAINTAINER= rodent@NetBSD.org
|
|
HOMEPAGE= http://hylang.org/
|
|
COMMENT= Lisp and Python love each other
|
|
LICENSE= mit
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-rply>=0.7.0:../../devel/py-rply
|
|
DEPENDS+= ${PYPKGPREFIX}-astor>=0.3:../../devel/py-astor
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
PY_PATCHPLIST= yes
|
|
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
|
|
|
|
post-install:
|
|
${MV} ${DESTDIR}${PREFIX}/bin/hy \
|
|
${DESTDIR}${PREFIX}/bin/hy${PYVERSSUFFIX}
|
|
${MV} ${DESTDIR}${PREFIX}/bin/hy2py \
|
|
${DESTDIR}${PREFIX}/bin/hy2py${PYVERSSUFFIX}
|
|
${MV} ${DESTDIR}${PREFIX}/bin/hyc \
|
|
${DESTDIR}${PREFIX}/bin/hyc${PYVERSSUFFIX}
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|