Lines 4-10
Link Here
|
4 |
# vim: ts=8 noet |
4 |
# vim: ts=8 noet |
5 |
|
5 |
|
6 |
PORTNAME= ripgrep |
6 |
PORTNAME= ripgrep |
7 |
DISTVERSION= 0.8.0 |
7 |
DISTVERSION= 0.8.1 |
8 |
CATEGORIES= textproc |
8 |
CATEGORIES= textproc |
9 |
|
9 |
|
10 |
MAINTAINER= petteri.valkonen@iki.fi |
10 |
MAINTAINER= petteri.valkonen@iki.fi |
Lines 27-33
Link Here
|
27 |
bitflags-1.0.1 \ |
27 |
bitflags-1.0.1 \ |
28 |
bytecount-0.3.1 \ |
28 |
bytecount-0.3.1 \ |
29 |
cfg-if-0.1.2 \ |
29 |
cfg-if-0.1.2 \ |
30 |
clap-2.29.4 \ |
30 |
clap-2.30.0 \ |
31 |
crossbeam-0.3.2 \ |
31 |
crossbeam-0.3.2 \ |
32 |
encoding_rs-0.7.2 \ |
32 |
encoding_rs-0.7.2 \ |
33 |
fnv-1.0.6 \ |
33 |
fnv-1.0.6 \ |
Lines 57-63
Link Here
|
57 |
unreachable-1.0.0 \ |
57 |
unreachable-1.0.0 \ |
58 |
utf8-ranges-1.0.0 \ |
58 |
utf8-ranges-1.0.0 \ |
59 |
void-1.0.2 \ |
59 |
void-1.0.2 \ |
60 |
walkdir-2.1.3 \ |
60 |
walkdir-2.1.4 \ |
61 |
winapi-0.3.4 \ |
61 |
winapi-0.3.4 \ |
62 |
winapi-i686-pc-windows-gnu-0.4.0 \ |
62 |
winapi-i686-pc-windows-gnu-0.4.0 \ |
63 |
winapi-x86_64-pc-windows-gnu-0.4.0 |
63 |
winapi-x86_64-pc-windows-gnu-0.4.0 |
Lines 66-76
Link Here
|
66 |
CARGO_ENV= RIPGREP_OUTDIR=${RIPGREP_OUTDIR} |
66 |
CARGO_ENV= RIPGREP_OUTDIR=${RIPGREP_OUTDIR} |
67 |
|
67 |
|
68 |
PLIST_FILES= bin/rg \ |
68 |
PLIST_FILES= bin/rg \ |
69 |
man/man1/rg.1.gz |
69 |
man/man1/rg.1.gz \ |
|
|
70 |
etc/bash_completion.d/rg.bash \ |
71 |
share/fish/completions/rg.fish \ |
72 |
share/zsh/site-functions/_rg |
73 |
|
70 |
PORTDOCS= CHANGELOG.md FAQ.md GUIDE.md |
74 |
PORTDOCS= CHANGELOG.md FAQ.md GUIDE.md |
71 |
|
75 |
|
72 |
OPTIONS_DEFINE= BASH DOCS FISH SIMD ZSH |
76 |
OPTIONS_DEFINE= DOCS SIMD |
73 |
OPTIONS_DEFAULT=BASH FISH ZSH |
|
|
74 |
|
77 |
|
75 |
OPTIONS_DEFINE_amd64= AVX |
78 |
OPTIONS_DEFINE_amd64= AVX |
76 |
OPTIONS_DEFINE_i386= AVX |
79 |
OPTIONS_DEFINE_i386= AVX |
Lines 84-92
Link Here
|
84 |
AVX_VARS= CARGO_FEATURES+=avx-accel RUSTFLAGS+="-C target-feature=+avx" |
87 |
AVX_VARS= CARGO_FEATURES+=avx-accel RUSTFLAGS+="-C target-feature=+avx" |
85 |
AVX_IMPLIES= SIMD |
88 |
AVX_IMPLIES= SIMD |
86 |
|
89 |
|
87 |
BASH_PLIST_FILES= etc/bash_completion.d/rg.bash |
|
|
88 |
FISH_PLIST_FILES= share/fish/completions/rg.fish |
89 |
|
90 |
# simd crate uses cfg_target_feature which isn't stable yet, so unlock |
90 |
# simd crate uses cfg_target_feature which isn't stable yet, so unlock |
91 |
# unstable features similar to how lang/rust bootstraps. www/firefox |
91 |
# unstable features similar to how lang/rust bootstraps. www/firefox |
92 |
# uses the same hack when building with --enable-rust-simd. |
92 |
# uses the same hack when building with --enable-rust-simd. |
Lines 94-125
Link Here
|
94 |
SIMD_VARS= CARGO_FEATURES+=simd-accel ${SIMD_VARS_${ARCH}} |
94 |
SIMD_VARS= CARGO_FEATURES+=simd-accel ${SIMD_VARS_${ARCH}} |
95 |
SIMD_VARS_i386= RUSTFLAGS+="-C target-feature=+sse2" |
95 |
SIMD_VARS_i386= RUSTFLAGS+="-C target-feature=+sse2" |
96 |
|
96 |
|
97 |
ZSH_PLIST_FILES= share/zsh/site-functions/_rg |
|
|
98 |
|
99 |
post-patch: |
97 |
post-patch: |
100 |
@${REINPLACE_CMD} -e 's|OUT_DIR|RIPGREP_OUTDIR|' ${WRKSRC}/build.rs |
98 |
@${REINPLACE_CMD} -e 's|OUT_DIR|RIPGREP_OUTDIR|' ${WRKSRC}/build.rs |
101 |
|
99 |
|
102 |
post-install: |
100 |
post-install: |
103 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/rg |
101 |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/rg |
104 |
${INSTALL_MAN} ${RIPGREP_OUTDIR}/rg.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 |
102 |
${INSTALL_MAN} ${RIPGREP_OUTDIR}/rg.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 |
105 |
|
|
|
106 |
post-install-BASH-on: |
107 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d/ |
103 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d/ |
108 |
${INSTALL_DATA} ${RIPGREP_OUTDIR}/rg.bash \ |
104 |
${INSTALL_DATA} ${RIPGREP_OUTDIR}/rg.bash \ |
109 |
${STAGEDIR}${PREFIX}/etc/bash_completion.d/ |
105 |
${STAGEDIR}${PREFIX}/etc/bash_completion.d/ |
110 |
|
|
|
111 |
post-install-DOCS-on: |
112 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
113 |
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} |
114 |
|
115 |
post-install-FISH-on: |
116 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions/ |
106 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions/ |
117 |
${INSTALL_DATA} ${RIPGREP_OUTDIR}/rg.fish \ |
107 |
${INSTALL_DATA} ${RIPGREP_OUTDIR}/rg.fish \ |
118 |
${STAGEDIR}${PREFIX}/share/fish/completions/ |
108 |
${STAGEDIR}${PREFIX}/share/fish/completions/ |
119 |
|
|
|
120 |
post-install-ZSH-on: |
121 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions/ |
109 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions/ |
122 |
${INSTALL_DATA} ${WRKSRC}/complete/_rg \ |
110 |
${INSTALL_DATA} ${WRKSRC}/complete/_rg \ |
123 |
${STAGEDIR}${PREFIX}/share/zsh/site-functions/ |
111 |
${STAGEDIR}${PREFIX}/share/zsh/site-functions/ |
124 |
|
112 |
|
|
|
113 |
post-install-DOCS-on: |
114 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
115 |
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} |
116 |
|
125 |
.include <bsd.port.mk> |
117 |
.include <bsd.port.mk> |