aboutsummaryrefslogtreecommitdiffstats
path: root/devel/npm-source-map/Makefile
blob: d06bef7260d7cc55f87332f550dbbbc06b0ec3ba (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
# Created by: Rodrigo Osorio <rodrigo@freebsd.org>
# $FreeBSD$

PORTNAME=   npm-source-map
PORTVERSION=    0.5.6
CATEGORIES= devel www

MAINTAINER= rodrigo@FreeBSD.org
COMMENT=    Parse and consume source maps

LICENSE=    APACHE20

DEPRECATED= Broken for more than 6 months
EXPIRATION_DATE=    2018-01-27

BUILD_DEPENDS=  npm>=0:www/npm
RUN_DEPENDS=    npm>=0:www/npm \
        ${LOCALBASE}/lib/node_modules/amdefine/amdefine.js:devel/npm-amdefine

USE_GITHUB= yes
GH_ACCOUNT= mozilla
GH_PROJECT= source-map

# npm install both builds and installs.  To avoid building in the stage phase,
# allow npm to install in a temporary directory and move from there.
# Moreover, only a fraction of what is installed by npm needs to be packaged
do-build:
    ${MKDIR} ${WRKDIR}/build-lib
    (cd ${WRKDIR}/build-lib && \
        ${SETENV} HOME=${WRKDIR} npm install ${WRKSRC})

do-install:
    ${MKDIR} ${STAGEDIR}${PREFIX}/lib/node_modules/ && \
    ${MV} ${WRKDIR}/build-lib/node_modules/source-map \
        ${STAGEDIR}${PREFIX}/lib/node_modules/

.include <bsd.port.mk>