summaryrefslogtreecommitdiff
path: root/lang/likepython/Makefile
blob: e557d846503da7c6e77f28103a972be6e806bed9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $NetBSD: Makefile,v 1.3 2012/03/15 11:53:29 obache Exp $
#

VER=            0.1
DISTNAME=       likepython_${VER}
PKGNAME=        likepython-${VER}
PKGREVISION=	1

CATEGORIES=	lang
MASTER_SITES=	http://www.staringispolite.com/likepython/
EXTRACT_SUFX=	.tgz

MAINTAINER=	is@netbsd.org
HOMEPAGE=	http://www.staringispolite.com/likepython/
COMMENT=	OMG! It's like Python, but like, you know, casual!
LICENSE=	mit

PKG_DESTDIR_SUPPORT=	user-destdir

WRKSRC=		${WRKDIR} # More than one possibility -- please check manually.

REPLACE_PYTHON=  likepython

SUBST_CLASSES+=			fix-runt-interp
SUBST_STAGE.fix-runt-interp=	pre-configure
SUBST_MESSAGE.fix-runt-interp=	Fixing runtime python interpreter path.
SUBST_FILES.fix-runt-interp=	likepython
SUBST_SED.fix-runt-interp=	-e '/call/s,python,${PYTHONBIN},g'


NO_BUILD=      		yes

INSTALLATION_DIRS=	bin share/examples/likepython share/doc/likepython

do-install:
	cd ${WRKSRC} && ${INSTALL_SCRIPT} likepython ${DESTDIR}${PREFIX}/bin
	cd ${WRKSRC} && ${INSTALL_DATA} README ${DESTDIR}${PREFIX}/share/doc/likepython
	cd ${WRKSRC} && ${INSTALL_DATA} hello_world.lp ${DESTDIR}${PREFIX}/share/examples/likepython

.include "../../lang/python/extension.mk"
.include "../../lang/python/application.mk"

.include "../../mk/bsd.pkg.mk"