summaryrefslogtreecommitdiff
path: root/lang/coffeescript/Makefile
blob: 1a47f4bfdbd2086b39bee6bfe8dfa142259a19a0 (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
PORTNAME=	coffeescript
DISTVERSION=	2.5.1
CATEGORIES=	lang

MAINTAINER=	egypcio@FreeBSD.org
COMMENT=	Unfancy JavaScript

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

RUN_DEPENDS=	node:www/node

USE_GITHUB=	yes
GH_ACCOUNT=	jashkenas

PORTEXAMPLES=	*.coffee

CONFLICTS_INSTALL=	cake

OPTIONS_DEFINE=	EXAMPLES

NO_ARCH=	yes
NO_BUILD=	yes

do-install:
	${MKDIR} ${STAGEDIR}${PREFIX}/lib/node_modules/${PORTNAME}
	${INSTALL_SCRIPT} ${WRKSRC}/bin/cake ${STAGEDIR}${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/bin/coffee ${STAGEDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}/*.js \
		${STAGEDIR}${PREFIX}/lib/node_modules/${PORTNAME}

do-install-EXAMPLES-on:
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${WRKSRC}/documentation/examples/${PORTEXAMPLES} \
		${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>