blob: 51ef29b6b1ee606011164afb8feaee5174dbe4e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
|
PORTNAME= xplr
DISTVERSIONPREFIX= v
DISTVERSION= 0.20.1
PORTREVISION= 5
CATEGORIES= misc
MAINTAINER= lcook@FreeBSD.org
COMMENT= Hackable, minimal, fast TUI file explorer
WWW= https://xplr.dev
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cargo compiler desktop-file-utils gmake
USE_GITHUB= yes
GH_ACCOUNT= sayanarijit
CARGO_CRATES= aho-corasick-0.7.20 \
android_system_properties-0.1.5 \
anes-0.1.6 \
ansi-to-tui-2.0.0 \
anyhow-1.0.66 \
assert_cmd-2.0.7 \
atty-0.2.14 \
autocfg-1.1.0 \
bitflags-1.3.2 \
bstr-0.2.17 \
bstr-1.0.1 \
bumpalo-3.11.1 \
cassowary-0.3.0 \
cast-0.3.0 \
cc-1.0.77 \
cfg-if-1.0.0 \
chrono-0.4.23 \
ciborium-0.2.0 \
ciborium-io-0.2.0 \
ciborium-ll-0.2.0 \
clap-3.2.23 \
clap_lex-0.2.4 \
codespan-reporting-0.11.1 \
core-foundation-sys-0.8.3 \
criterion-0.4.0 \
criterion-plot-0.5.0 \
crossbeam-channel-0.5.6 \
crossbeam-deque-0.8.2 \
crossbeam-epoch-0.9.13 \
crossbeam-utils-0.8.14 \
crossterm-0.25.0 \
crossterm_winapi-0.9.0 \
cxx-1.0.83 \
cxx-build-1.0.83 \
cxxbridge-flags-1.0.83 \
cxxbridge-macro-1.0.83 \
difflib-0.4.0 \
dirs-4.0.0 \
dirs-sys-0.3.7 \
doc-comment-0.3.3 \
either-1.8.0 \
erased-serde-0.3.23 \
fuzzy-matcher-0.3.7 \
gethostname-0.4.1 \
getrandom-0.2.8 \
half-1.8.2 \
hashbrown-0.12.3 \
hermit-abi-0.1.19 \
humansize-2.1.2 \
iana-time-zone-0.1.53 \
iana-time-zone-haiku-0.1.1 \
indexmap-1.9.2 \
itertools-0.10.5 \
itoa-1.0.4 \
js-sys-0.3.60 \
lazy_static-1.4.0 \
libc-0.2.138 \
libm-0.2.6 \
link-cplusplus-1.0.7 \
lock_api-0.4.9 \
log-0.4.17 \
lua-src-544.0.1 \
luajit-src-210.4.3+resty8384278 \
memchr-2.5.0 \
memoffset-0.7.1 \
mime-0.3.16 \
mime_guess-2.0.4 \
minimal-lexical-0.2.1 \
mio-0.8.5 \
mlua-0.8.6 \
natord-1.0.9 \
nom-7.1.1 \
num-integer-0.1.45 \
num-traits-0.2.15 \
num_cpus-1.14.0 \
once_cell-1.16.0 \
oorandom-11.1.3 \
os_str_bytes-6.4.1 \
parking_lot-0.12.1 \
parking_lot_core-0.9.5 \
path-absolutize-3.0.14 \
path-dedot-3.0.18 \
pkg-config-0.3.26 \
plotters-0.3.4 \
plotters-backend-0.3.4 \
plotters-svg-0.3.3 \
predicates-2.1.4 \
predicates-core-1.0.5 \
predicates-tree-1.0.7 \
proc-macro2-1.0.47 \
quote-1.0.21 \
rayon-1.6.0 \
rayon-core-1.10.1 \
redox_syscall-0.2.16 \
redox_users-0.4.3 \
regex-1.7.0 \
regex-automata-0.1.10 \
regex-syntax-0.6.28 \
rustc-hash-1.1.0 \
ryu-1.0.11 \
same-file-1.0.6 \
scopeguard-1.1.0 \
scratch-1.0.2 \
serde-1.0.148 \
serde_derive-1.0.148 \
serde_json-1.0.89 \
serde_yaml-0.9.14 \
signal-hook-0.3.14 \
signal-hook-mio-0.2.3 \
signal-hook-registry-1.4.0 \
smallvec-1.10.0 \
syn-1.0.105 \
termcolor-1.1.3 \
termtree-0.4.0 \
textwrap-0.16.0 \
thiserror-1.0.37 \
thiserror-impl-1.0.37 \
thread_local-1.1.4 \
time-0.1.45 \
tinytemplate-1.2.1 \
tui-0.19.0 \
tui-input-0.6.1 \
unicase-2.6.0 \
unicode-ident-1.0.5 \
unicode-segmentation-1.10.0 \
unicode-width-0.1.10 \
unsafe-libyaml-0.2.4 \
version_check-0.9.4 \
wait-timeout-0.2.0 \
walkdir-2.3.2 \
wasi-0.10.0+wasi-snapshot-preview1 \
wasi-0.11.0+wasi-snapshot-preview1 \
wasm-bindgen-0.2.83 \
wasm-bindgen-backend-0.2.83 \
wasm-bindgen-macro-0.2.83 \
wasm-bindgen-macro-support-0.2.83 \
wasm-bindgen-shared-0.2.83 \
web-sys-0.3.60 \
which-4.3.0 \
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 \
windows-0.43.0 \
windows-sys-0.42.0 \
windows_aarch64_gnullvm-0.42.0 \
windows_aarch64_msvc-0.42.0 \
windows_i686_gnu-0.42.0 \
windows_i686_msvc-0.42.0 \
windows_x86_64_gnu-0.42.0 \
windows_x86_64_gnullvm-0.42.0 \
windows_x86_64_msvc-0.42.0
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 <bsd.port.options.mk>
.if ${ARCH:Mpowerpc64*}
EXTRA_PATCHES= ${FILESDIR}/extra-patch-Cargo.toml
LIB_DEPENDS= libluajit-5.1.so:lang/luajit-openresty
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == powerpc && ${COMPILER_VERSION} < 140
BUILD_DEPENDS+= as:devel/binutils
CFLAGS+= -fno-integrated-as
.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 <bsd.port.post.mk>
|