Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 May 2024 11:34:18 +0200 (CEST)
From:      Ronald Klop <ronald-lists@klop.ws>
To:        freebsd-ports@freebsd.org
Subject:   help needed for a nodejs + npm port: mongosh
Message-ID:  <939040813.103.1716456858934@localhost>

next in thread | raw e-mail | index | archive | help
------=_Part_102_1449998857.1716456858924
Content-Type: multipart/alternative; 
	boundary="----=_Part_101_481748236.1716456858903"

------=_Part_101_481748236.1716456858903
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

I'm trying to port MongoDB Shell to FreeBSD.
See the attached Makefile.

The build stage starts to fetch some npm packages which is not possible in poudriere.
How can I install NPM packages upfront?

The Mk/Uses/nodejs.mk file does not mention this and the porters handbook is also pretty limited on nodejs/npm information.

A pointer to some existing port as an example would also help.

Regards,
Ronald.
 
------=_Part_101_481748236.1716456858903
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html><head></head><body>Hi,<br>
<br>
I'm trying to port MongoDB Shell to FreeBSD.<br>
See the attached Makefile.<br>
<br>
The build stage starts to fetch some npm packages which is not possible in poudriere.<br>
How can I install NPM packages upfront?<br>
<br>
The Mk/Uses/nodejs.mk file does not mention this and the porters handbook is also pretty limited on nodejs/npm information.<br>
<br>
A pointer to some existing port as an example would also help.<br>
<br>
Regards,<br>
Ronald.<br>
&nbsp;</body></html>
------=_Part_101_481748236.1716456858903--

------=_Part_102_1449998857.1716456858924
Content-Type: application/octet-stream; name=Makefile
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=Makefile

PORTNAME=	mongosh
DISTVERSION=	2.2.6
DISTVERSIONPREFIX=	v
CATEGORIES=	databases
MASTER_SITES=	NPM

MAINTAINER=	ronald@FreeBSD.org
COMMENT=	MongoDB Shell
WWW=		https://www.mongodb.com/docs/mongodb-shell/ \
		https://github.com/mongodb-js/mongosh

LICENSE=	APACHE20

BUILD_DEPENDS+=	npm>0:www/npm

USES=		nodejs
#nodejs:run

USE_GITHUB=	yes
GH_ACCOUNT=	mongodb-js

do-build:
	cd ${WRKSRC} && npm --cache=${WRKDIR}/.npm --browser=false run bootstrap
	cd ${WRKSRC} && npm --cache=${WRKDIR}/.npm --browser=false run compile-exec
#	npm run evergreen-release package -- --build-variant=deb-x64

.include <bsd.port.mk>

------=_Part_102_1449998857.1716456858924--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?939040813.103.1716456858934>