Lines 5-11
Link Here
|
5 |
|
5 |
|
6 |
PORTNAME= ripgrep |
6 |
PORTNAME= ripgrep |
7 |
PORTVERSION= 0.7.1 |
7 |
PORTVERSION= 0.7.1 |
8 |
PORTREVISION= 1 |
8 |
PORTREVISION= 2 |
9 |
CATEGORIES= textproc |
9 |
CATEGORIES= textproc |
10 |
|
10 |
|
11 |
MAINTAINER= petteri.valkonen@iki.fi |
11 |
MAINTAINER= petteri.valkonen@iki.fi |
Lines 20-29
Link Here
|
20 |
USE_GITHUB= yes |
20 |
USE_GITHUB= yes |
21 |
GH_ACCOUNT= BurntSushi |
21 |
GH_ACCOUNT= BurntSushi |
22 |
|
22 |
|
23 |
OPTIONS_DEFINE= BASH FISH ZSH |
23 |
OPTIONS_DEFINE= BASH FISH ZSH SIMD |
24 |
OPTIONS_DEFAULT=BASH FISH ZSH |
24 |
OPTIONS_DEFAULT=BASH FISH ZSH SIMD |
25 |
FISH_DESC= Install programmable completions for Fish |
25 |
FISH_DESC= Install programmable completions for Fish |
26 |
|
26 |
|
|
|
27 |
OPTIONS_DEFINE_amd64= AVX |
28 |
OPTIONS_DEFINE_i386= AVX |
29 |
|
30 |
AVX_DESC= ${SSE_DESC:S/SSE/AVX/} |
31 |
AVX_VARS= CARGO_FEATURES+=avx-accel RUSTFLAGS+="-C target-feature=+avx" |
32 |
AVX_IMPLIES= SIMD |
33 |
|
34 |
# simd crate uses cfg_target_feature which isn't stable yet, so unlock |
35 |
# unstable features similar to how lang/rust bootstraps. www/firefox |
36 |
# uses the same hack when building with --enable-rust-simd. |
37 |
SIMD_MAKE_ENV= RUSTC_BOOTSTRAP=1 |
38 |
SIMD_VARS= CARGO_FEATURES+=simd-accel |
39 |
|
27 |
PLIST_FILES= bin/rg \ |
40 |
PLIST_FILES= bin/rg \ |
28 |
man/man1/rg.1.gz |
41 |
man/man1/rg.1.gz |
29 |
BASH_PLIST_FILES= etc/bash_completion.d/rg.bash-completion |
42 |
BASH_PLIST_FILES= etc/bash_completion.d/rg.bash-completion |
Lines 74-95
Link Here
|
74 |
RIPGREP_OUTDIR= ${WRKDIR}/cargo-out |
87 |
RIPGREP_OUTDIR= ${WRKDIR}/cargo-out |
75 |
CARGO_ENV= RIPGREP_OUTDIR=${RIPGREP_OUTDIR} |
88 |
CARGO_ENV= RIPGREP_OUTDIR=${RIPGREP_OUTDIR} |
76 |
|
89 |
|
77 |
OPTIONS_DEFINE= SIMD |
|
|
78 |
OPTIONS_DEFAULT=SIMD |
79 |
|
80 |
OPTIONS_DEFINE_amd64= AVX |
81 |
OPTIONS_DEFINE_i386= AVX |
82 |
|
83 |
AVX_DESC= ${SSE_DESC:S/SSE/AVX/} |
84 |
AVX_VARS= CARGO_FEATURES+=avx-accel RUSTFLAGS+="-C target-feature=+avx" |
85 |
AVX_IMPLIES= SIMD |
86 |
|
87 |
# simd crate uses cfg_target_feature which isn't stable yet, so unlock |
88 |
# unstable features similar to how lang/rust bootstraps. www/firefox |
89 |
# uses the same hack when building with --enable-rust-simd. |
90 |
SIMD_MAKE_ENV= RUSTC_BOOTSTRAP=1 |
91 |
SIMD_VARS= CARGO_FEATURES+=simd-accel |
92 |
|
93 |
post-patch: |
90 |
post-patch: |
94 |
@${REINPLACE_CMD} -e 's|OUT_DIR|RIPGREP_OUTDIR|' ${WRKSRC}/build.rs |
91 |
@${REINPLACE_CMD} -e 's|OUT_DIR|RIPGREP_OUTDIR|' ${WRKSRC}/build.rs |
95 |
|
92 |
|