Page MenuHomeFreeBSD

net-im/mastodon: Working port that handles node modules and assets
ClosedPublic

Authored by jrm on Sep 10 2017, 4:25 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 28, 8:43 PM
Unknown Object (File)
Feb 15 2024, 4:11 PM
Unknown Object (File)
Feb 15 2024, 4:11 PM
Unknown Object (File)
Feb 15 2024, 4:11 PM
Unknown Object (File)
Feb 15 2024, 4:11 PM
Unknown Object (File)
Feb 15 2024, 4:11 PM
Unknown Object (File)
Feb 15 2024, 4:11 PM
Unknown Object (File)
Feb 15 2024, 4:08 PM
Subscribers

Details

Summary

With these changes, users can just install the package without having to run any extra steps afterwards that generate many files not accounted for by the package. All files are installed under WWWDIR.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 11581
Build 11934: arc lint + arc unit

Event Timeline

Is asset generation working during the build stage? If yes, I think we can get rid of most node_modules - most importantly we can discard node-sass.

Do not hardcode NODE_ABI

net-im/mastodon/Makefile
104–105

This is bad. Is there a reasonable way to get the installed NODE_MODULE_ABI?

108–116

This prevents the problem with not cleaning WRKDIR, but is also obviously bad, because ${DISTDIR}/${PORTNAME}-npm/node_modules might be from a previous build.

Use an offline mirror to build the node modules

jrm marked 2 inline comments as done.Sep 15 2017, 1:28 AM

Handle node abi in pkg-plist and include changes to dependent ports

jrm retitled this revision from net-im/mastodon: searching for least evil way to fetch/build node modules to net-im/mastodon: Working port that handles node modules and assets.Sep 15 2017, 3:55 AM
jrm edited the summary of this revision. (Show Details)
converters/rubygem-json-ld/Makefile
5

DISTVERSION.

17–20

bad ordering.

devel/rubygem-paperclip-rails5/Makefile
21–22

should be later.

textproc/rubygem-iso-639/Makefile
5

DISTVERSION

16

bad ordering.

www/rubygem-rdf-normalize/Makefile
5

DISTVERSION.

16

Bar ordering.

Use DISTVERSION instead of PORTVERSION and fix ordering

jrm marked 6 inline comments as done.Sep 15 2017, 9:59 AM
jrm marked an inline comment as done.
This revision is now accepted and ready to land.Sep 15 2017, 11:01 PM