summaryrefslogtreecommitdiff
path: root/lang/hs-language-javascript/Makefile
blob: 3d13fbf6cbaea3a6b698942292b4818ca1bd247f (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
# $NetBSD: Makefile,v 1.2 2022/02/26 03:58:15 pho Exp $

DISTNAME=	language-javascript-0.7.1.0
PKGREVISION=	1
CATEGORIES=	lang

MAINTAINER=	pkgsrc-users@NetBSD.org
COMMENT=	Parser for JavaScript
LICENSE=	modified-bsd

USE_TOOLS+=	alex happy

.include "../../devel/hs-blaze-builder/buildlink3.mk"
.include "../../devel/hs-utf8-string/buildlink3.mk"
.include "../../mk/haskell.mk"
.include "../../mk/bsd.pkg.mk"

# XXX Kludge: happy has a problem reading
# ${WRKSRC}/src/Language/JavaScript/Parser/Grammer7.y in a locale other
# than this. We need to make this override the C locale that pkgsrc tries
# hard to ensure everything gets built in for the sake of reproducibility,
# so it has to come _after_ bsd.pkg.mk. The right locale would be C.UTF-8,
# but it was only recently introduced into NetBSD, so let's pick a locale
# that is pretty universally supported even if not exactly appropriate for
# this.
MAKE_ENV+=	LC_ALL=en_US.UTF-8