diff --git a/sysutils/mprocs/Makefile b/sysutils/mprocs/Makefile index 2dd9e49bc711..37b38b84d896 100644 --- a/sysutils/mprocs/Makefile +++ b/sysutils/mprocs/Makefile @@ -1,27 +1,39 @@ PORTNAME= mprocs DISTVERSIONPREFIX= v DISTVERSION= 0.6.4 CATEGORIES= sysutils MAINTAINER= DtxdF@disroot.org COMMENT= Run multiple commands in parallel WWW= https://github.com/pvolok/mprocs/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= cargo gmake USE_GITHUB= yes GH_ACCOUNT= pvolok CARGO_INSTALL_PATH= src PLIST_FILES= bin/mprocs +.include + +.if ${ARCH:Mpowerpc64*} +EXTRA_PATCHES= ${FILESDIR}/extra-patch-src_Cargo.toml +LIB_DEPENDS= libluajit-5.1.so:lang/luajit-openresty +.endif + +.if ${ARCH} == powerpc +EXTRA_PATCHES= ${FILESDIR}/extra-patch-src_Cargo.toml +LIB_DEPENDS= libluajit-5.1.so:lang/luajit +.endif + post-patch: @${REINPLACE_CMD} -Ee 's/new\("make"\)/new("gmake")/' ${WRKSRC}/cargo-crates/luajit-src-*/src/lib.rs post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mprocs -.include +.include diff --git a/sysutils/mprocs/files/extra-patch-src_Cargo.toml b/sysutils/mprocs/files/extra-patch-src_Cargo.toml new file mode 100644 index 000000000000..e7fb6605af26 --- /dev/null +++ b/sysutils/mprocs/files/extra-patch-src_Cargo.toml @@ -0,0 +1,11 @@ +--- src/Cargo.toml.orig 2022-11-12 22:57:03 UTC ++++ src/Cargo.toml +@@ -43,7 +43,7 @@ indexmap = { version = "1.8.0", features = ["serde"] } + lazy_static = "1.4.0" + libc = "0.2.120" + log = "0.4.14" +-mlua = { version = "0.8.3", features = ["luajit52", "vendored", "serialize"] } ++mlua = { version = "0.8.3", features = ["luajit52", "serialize"] } + phf = { version = "0.10.1", features = ["macros"] } + portable-pty = { package = "mprocs-pty", path = "../vendor/pty", version = "0.1.0" } + serde = { version = "1.0.136", features = ["derive"] }