blob: a6c04c739c9041507b3dce799bd7851bd2bc01ea (
plain) (
blame)
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
44
45
46
47
48
49
|
# Created by: Bruce A. Mah <bmah@freebsd.org>
# $FreeBSD$
PORTNAME= teslams
PORTVERSION= 1.1.4
CATEGORIES= misc
MAINTAINER= bmah@FreeBSD.org
COMMENT= Node.js implementation of Tesla Model S API client
# teslams is BSD2CLAUSE but the installation pulls in a bunch
# of other packages with varying licenses.
LICENSE= BSD2CLAUSE BSD3CLAUSE APACHE20 MIT ISCL
LICENSE_COMB= multi
BROKEN= tries to download from registry.npmjs.org during stage phase
DEPRECATED= Broken for more than 6 months
EXPIRATION_DATE= 2017-02-08
BUILD_DEPENDS= npm>=0:www/npm
RUN_DEPENDS= npm>=0:www/npm
NO_ARCH= yes
NO_BUILD= yes
USE_GITHUB= yes
GH_ACCOUNT= hjespers
GH_PROJECT= teslams
GH_TAGNAME= 6f6dfa2
SCRIPTS= chargebar climatemon restla streaming teslacmd teslamap \
visualize/visualize
do-install:
(cd ${STAGEDIR}${PREFIX}/lib ; ${SETENV} HOME=${WRKDIR} npm install ${WRKSRC})
# Link to executable scripts where the user can run them
.for l in ${SCRIPTS}
${LN} -s ../lib/node_modules/${PORTNAME}/examples/${l}.js ${STAGEDIR}${PREFIX}/bin/`echo ${l} | ${SED} -e 's,.*/,,'`
.endfor
# We have to generate the plist dynamically here because the
# npm install process pulls in dependencies at port install
# time, therefore the exact set of files included in the port
# isn't known until we try to install it. Another implication
# is that a rebuild of the port may wind up with different versions
# of dependencies but still carry the same version number. :-(
@(cd ${STAGEDIR}${PREFIX}; ${FIND} -s bin -not -type d) >> ${TMPPLIST}
@(cd ${STAGEDIR}${PREFIX}; ${FIND} -s lib/node_modules/${PORTNAME} -not -type d) >> ${TMPPLIST}
.include <bsd.port.mk>
|