Skip to content

Commit

Permalink
mail/mailpit: Try to fix build on all arches.
Browse files Browse the repository at this point in the history
Modify software to use esbuild-wasm to bundle npm packages. This
should work on any architecture.

To do this I rerolled the npm cache package. This has no functional
change on the produced package.
  • Loading branch information
madpilot78 committed Apr 30, 2023
1 parent d5e0a03 commit 82170ca
Show file tree
Hide file tree
Showing 4 changed files with 232 additions and 7 deletions.
5 changes: 1 addition & 4 deletions mail/mailpit/Makefile
Expand Up @@ -13,9 +13,6 @@ WWW= https://github.com/axllent/mailpit
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE

ONLY_FOR_ARCHS= aarch64 amd64
ONLY_FOR_ARCHS_REASON= Unsupported platform by required npm module

BUILD_DEPENDS+= npm>0:www/npm

USES= go:modules tar:zstd
Expand Down Expand Up @@ -91,7 +88,7 @@ pre-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} npm run build

# (for maintainer) helper target to generate node_modules tarball
make-npm-cache: extract
make-npm-cache: patch
@cd ${WRKDIR} && ${RM} -r .npm
@cd ${WRKSRC} && ${SETENV} HOME=${WRKDIR} npm ci
@cd ${WRKDIR} \
Expand Down
6 changes: 3 additions & 3 deletions mail/mailpit/distinfo
@@ -1,6 +1,6 @@
TIMESTAMP = 1682440772
SHA256 (mailpit-npm-cache-1.6.5.tar.zst) = 1f407be06dc5d15ef3d5d211188eb2c043ef742d0dbb53f17331776630a0e23f
SIZE (mailpit-npm-cache-1.6.5.tar.zst) = 25903633
TIMESTAMP = 1682846536
SHA256 (mailpit-npm-cache-1.6.5.tar.zst) = c916be044041890a2e38533be7b3100bf9f924c32588401c018a4a41745388d5
SIZE (mailpit-npm-cache-1.6.5.tar.zst) = 28857889
SHA256 (axllent-mailpit-v1.6.5_GH0.tar.gz) = 6c2d99dab0f6ae6f937b1372238f7b7cea7c286ca4a8c60eeba506e42e9fabc1
SIZE (axllent-mailpit-v1.6.5_GH0.tar.gz) = 230966
SHA256 (DATA-DOG-go-sqlmock-v1.5.0_GH0.tar.gz) = b78616fddfcc76892aecb5344968d7f3843128b70eba6c4752f092dc992c3b98
Expand Down
217 changes: 217 additions & 0 deletions mail/mailpit/files/patch-package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions mail/mailpit/files/patch-package.json
@@ -0,0 +1,11 @@
--- package.json.orig 2023-04-30 09:15:32 UTC
+++ package.json
@@ -21,7 +21,7 @@
"devDependencies": {
"@popperjs/core": "^2.11.5",
"@vue/compiler-sfc": "^3.2.37",
- "esbuild": "^0.17.5",
+ "esbuild-wasm": "^0.17.5",
"esbuild-plugin-vue-next": "^0.1.4",
"esbuild-sass-plugin": "^2.3.2"
}

0 comments on commit 82170ca

Please sign in to comment.