net-im/mastodon: Add run-time dependencies necessary for installing node

modules.  Also, re-add www/npm as a run-time dependency to prevent an error
installing node modules.
This commit is contained in:
Joseph Mingrone 2017-08-03 04:54:36 +00:00
parent 6449c62195
commit c4ca59887a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=447194
2 changed files with 5 additions and 17 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= mastodon
DISTVERSIONPREFIX= v
DISTVERSION= 1.5.0
PORTREVISION= 1
CATEGORIES= net-im www
MAINTAINER= jrm@FreeBSD.org
@ -13,7 +14,9 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libidn2.so:dns/libidn2
RUN_DEPENDS= ffmpeg>0:multimedia/ffmpeg \
libpqtypes>1.5.0:databases/libpqtypes
gmake>0:devel/gmake \
libpqtypes>1.5.0:databases/libpqtypes \
npm>=0:www/npm
# Dependencies below match Gemfile layout
RUN_DEPENDS+= rubygem-pkg-config>=1.2.0:devel/rubygem-pkg-config
@ -82,7 +85,7 @@ RUN_DEPENDS+= rubygem-active_model_serializers>0:databases/rubygem-active_model_
RUN_DEPENDS+= rubygem-lograge-rails5>0:www/rubygem-lograge-rails5 \
rubygem-redis-rails-rails5>0:www/rubygem-redis-rails-rails5
USES= gnome pgsql shebangfix
USES= gnome pgsql python:2 shebangfix
USE_GITHUB= yes
GH_ACCOUNT= tootsuite
USE_GNOME= libxml2 libxslt

View file

@ -1,15 +0,0 @@
--- package.json.orig 2017-07-31 15:09:11 UTC
+++ package.json
@@ -7,10 +7,9 @@
"build:production": "cross-env RAILS_ENV=production ./bin/webpack",
"manage:translations": "node ./config/webpack/translationRunner.js",
"start": "node ./streaming/index.js",
- "test": "npm run test:lint && npm run test:mocha",
+ "test": "yarn run test:lint && yarn run test:mocha",
"test:lint": "eslint -c .eslintrc.yml --ext=js app/javascript/ config/webpack/ spec/javascript/ streaming/",
- "test:mocha": "cross-env NODE_ENV=test mocha --require ./spec/javascript/setup.js --compilers js:babel-register ./spec/javascript/components/**/*.test.js",
- "postinstall": "npm rebuild node-sass"
+ "test:mocha": "cross-env NODE_ENV=test mocha --require ./spec/javascript/setup.js --compilers js:babel-register ./spec/javascript/components/**/*.test.js"
},
"repository": {
"type": "git",