diff --git a/misc/xplr/Makefile b/misc/xplr/Makefile index ef098e3f0f02..ef3b819b919f 100644 --- a/misc/xplr/Makefile +++ b/misc/xplr/Makefile @@ -1,176 +1,183 @@ PORTNAME= xplr DISTVERSIONPREFIX= v DISTVERSION= 0.15.0 CATEGORIES= misc MAINTAINER= lcook@FreeBSD.org COMMENT= Hackable, minimal, fast TUI file explorer LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE USES= cargo desktop-file-utils gmake USE_GITHUB= yes GH_ACCOUNT= sayanarijit CARGO_CRATES= ansi-to-tui-0.4.1 \ anyhow-1.0.44 \ assert_cmd-2.0.1 \ atty-0.2.14 \ autocfg-1.0.1 \ bitflags-1.3.2 \ bstr-0.2.16 \ bumpalo-3.7.0 \ cassowary-0.3.0 \ cast-0.2.7 \ cc-1.0.70 \ cfg-if-1.0.0 \ chrono-0.4.19 \ clap-2.33.3 \ criterion-0.3.5 \ criterion-plot-0.4.4 \ crossbeam-channel-0.5.1 \ crossbeam-deque-0.8.1 \ crossbeam-epoch-0.9.5 \ crossbeam-utils-0.8.5 \ crossterm-0.20.0 \ crossterm-0.21.0 \ crossterm_winapi-0.8.0 \ csv-1.1.6 \ csv-core-0.1.10 \ difflib-0.4.0 \ dirs-4.0.0 \ dirs-sys-0.3.6 \ doc-comment-0.3.3 \ dtoa-0.4.8 \ either-1.6.1 \ erased-serde-0.3.16 \ getrandom-0.2.3 \ half-1.7.1 \ hashbrown-0.11.2 \ hermit-abi-0.1.19 \ humansize-1.1.1 \ indexmap-1.7.0 \ instant-0.1.10 \ itertools-0.10.1 \ itoa-0.4.8 \ js-sys-0.3.53 \ lazy_static-1.4.0 \ libc-0.2.103 \ linked-hash-map-0.5.4 \ lock_api-0.4.5 \ log-0.4.14 \ lua-src-543.0.0 \ luajit-src-210.2.0+resty5f13855 \ memchr-2.4.1 \ memoffset-0.6.4 \ mime-0.3.16 \ mime_guess-2.0.3 \ mio-0.7.13 \ miow-0.3.7 \ mlua-0.6.4 \ natord-1.0.9 \ ntapi-0.3.6 \ num-integer-0.1.44 \ num-traits-0.2.14 \ num_cpus-1.13.0 \ once_cell-1.8.0 \ oorandom-11.1.3 \ parking_lot-0.11.2 \ parking_lot_core-0.8.5 \ pkg-config-0.3.19 \ plotters-0.3.1 \ plotters-backend-0.3.2 \ plotters-svg-0.3.1 \ predicates-2.0.2 \ predicates-core-1.0.2 \ predicates-tree-1.0.3 \ proc-macro2-1.0.29 \ quote-1.0.9 \ rayon-1.5.1 \ rayon-core-1.9.1 \ redox_syscall-0.2.10 \ redox_users-0.4.0 \ regex-1.5.4 \ regex-automata-0.1.10 \ regex-syntax-0.6.25 \ rustc_version-0.4.0 \ ryu-1.0.5 \ same-file-1.0.6 \ scopeguard-1.1.0 \ semver-1.0.4 \ serde-1.0.130 \ serde_cbor-0.11.2 \ serde_derive-1.0.130 \ serde_json-1.0.67 \ serde_yaml-0.8.21 \ signal-hook-0.3.10 \ signal-hook-mio-0.2.1 \ signal-hook-registry-1.4.0 \ smallvec-1.6.1 \ syn-1.0.75 \ textwrap-0.11.0 \ time-0.1.44 \ tinytemplate-1.2.1 \ treeline-0.1.0 \ tui-0.16.0 \ unicase-2.6.0 \ unicode-segmentation-1.8.0 \ unicode-width-0.1.8 \ unicode-xid-0.2.2 \ version_check-0.9.3 \ wait-timeout-0.2.0 \ walkdir-2.3.2 \ wasi-0.10.0+wasi-snapshot-preview1 \ wasm-bindgen-0.2.76 \ wasm-bindgen-backend-0.2.76 \ wasm-bindgen-macro-0.2.76 \ wasm-bindgen-macro-support-0.2.76 \ wasm-bindgen-shared-0.2.76 \ web-sys-0.3.53 \ winapi-0.3.9 \ winapi-i686-pc-windows-gnu-0.4.0 \ winapi-util-0.1.5 \ winapi-x86_64-pc-windows-gnu-0.4.0 \ yaml-rust-0.4.5 BINARY_ALIAS= make=gmake PORTDOCS= CODE_OF_CONDUCT.md README.md RELEASE.md _EXAMPLES= ${WRKSRC}/src/init.lua PORTEXAMPLES= ${_EXAMPLES:T} OPTIONS_DEFINE= DOCS EXAMPLES _ASSETS= ${WRKSRC}/assets _ICONS= ${STAGEDIR}${PREFIX}/share/icons/hicolor +.include + +.if ${ARCH:Mpowerpc64*} +EXTRA_PATCHES= ${FILESDIR}/extra-patch-Cargo.toml +LIB_DEPENDS= libluajit-5.1.so:lang/luajit-openresty +.endif + post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} ${INSTALL_DATA} ${_ASSETS}/desktop/${PORTNAME}.desktop \ ${STAGEDIR}${PREFIX}/share/applications/${PORTNAME}.desktop @${MKDIR} ${_ICONS}/scalable/apps ${INSTALL_DATA} ${_ASSETS}/icon/${PORTNAME}.svg \ ${_ICONS}/scalable/apps .for res in 16 32 64 128 @${MKDIR} ${_ICONS}/${res}x${res}/apps .for icon in ico png ${INSTALL_DATA} ${_ASSETS}/icon/${PORTNAME}${res}.${icon} \ ${_ICONS}/${res}x${res}/apps/${PORTNAME}.${icon} .endfor .endfor post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} \ ${STAGEDIR}${DOCSDIR} post-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC} && \ ${INSTALL_DATA} ${_EXAMPLES} \ ${STAGEDIR}${EXAMPLESDIR} .include diff --git a/misc/xplr/files/extra-patch-Cargo.toml b/misc/xplr/files/extra-patch-Cargo.toml new file mode 100644 index 000000000000..f69fe3c97295 --- /dev/null +++ b/misc/xplr/files/extra-patch-Cargo.toml @@ -0,0 +1,11 @@ +--- Cargo.toml.orig 2021-10-11 23:08:59 UTC ++++ Cargo.toml +@@ -30,7 +30,7 @@ lazy_static = "1.4.0" + indexmap = { version = "1.7.0", features = ["serde"] } + natord = "1.0.9" + humansize = "1.1.1" +-mlua = { version = "0.6.4", features = ["luajit", "vendored", "serialize", "send"] } ++mlua = { version = "0.6.4", features = ["luajit", "serialize", "send"] } + ansi-to-tui = "0.4.1" + libc = "0.2.103" +