Lines 1-16
Link Here
|
1 |
# Created by: Petteri Valkonen <petteri.valkonen@iki.fi> |
1 |
# Created by: Petteri Valkonen <petteri.valkonen@iki.fi> |
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
# vim: ts=8 noet |
4 |
# vim: ts=8 noet |
5 |
|
5 |
|
6 |
PORTNAME= ripgrep |
6 |
PORTNAME= ripgrep |
7 |
DISTVERSION= 0.10.0 |
7 |
DISTVERSION= 0.10.0 |
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 |
12 |
COMMENT= Command line search tool |
12 |
COMMENT= Command line search tool |
13 |
|
13 |
|
14 |
LICENSE= MIT UNLICENSE |
14 |
LICENSE= MIT UNLICENSE |
15 |
LICENSE_COMB= dual |
15 |
LICENSE_COMB= dual |
16 |
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT |
16 |
LICENSE_FILE_MIT= ${WRKSRC}/LICENSE-MIT |
Lines 105-134
CARGO_ENV= RIPGREP_OUTDIR=${RIPGREP_OUTDIR}
Link Here
|
105 |
PLIST_FILES= bin/rg \ |
105 |
PLIST_FILES= bin/rg \ |
106 |
etc/bash_completion.d/rg.bash \ |
106 |
etc/bash_completion.d/rg.bash \ |
107 |
man/man1/rg.1.gz \ |
107 |
man/man1/rg.1.gz \ |
108 |
share/fish/completions/rg.fish \ |
108 |
share/fish/completions/rg.fish \ |
109 |
share/zsh/site-functions/_rg |
109 |
share/zsh/site-functions/_rg |
110 |
|
110 |
|
111 |
PORTDOCS= CHANGELOG.md FAQ.md GUIDE.md |
111 |
PORTDOCS= CHANGELOG.md FAQ.md GUIDE.md |
112 |
|
112 |
|
113 |
OPTIONS_DEFINE= DOCS SIMD |
113 |
OPTIONS_DEFINE= DOCS PCRE2 SIMD |
|
|
114 |
OPTIONS_DEFAULT=PCRE2 |
114 |
|
115 |
|
115 |
OPTIONS_DEFINE_amd64= AVX |
116 |
OPTIONS_DEFINE_amd64= AVX |
116 |
OPTIONS_DEFINE_i386= AVX |
117 |
OPTIONS_DEFINE_i386= AVX |
117 |
|
118 |
|
118 |
OPTIONS_DEFAULT_aarch64=SIMD |
119 |
OPTIONS_DEFAULT_aarch64=SIMD |
119 |
OPTIONS_DEFAULT_amd64= ${OPTIONS_DEFAULT_i386} |
120 |
OPTIONS_DEFAULT_amd64= ${OPTIONS_DEFAULT_i386} |
120 |
OPTIONS_DEFAULT_i386= ${MACHINE_CPU:tu:S/SSE2/SIMD/} |
121 |
OPTIONS_DEFAULT_i386= ${MACHINE_CPU:tu:S/SSE2/SIMD/} |
121 |
|
122 |
|
122 |
AVX_DESC= ${SSE_DESC:S/SSE/AVX/} |
123 |
AVX_DESC= ${SSE_DESC:S/SSE/AVX/} |
123 |
|
124 |
|
124 |
AVX_VARS= CARGO_FEATURES+=avx-accel RUSTFLAGS+="-C target-feature=+avx" |
125 |
AVX_VARS= CARGO_FEATURES+=avx-accel RUSTFLAGS+="-C target-feature=+avx" |
125 |
AVX_IMPLIES= SIMD |
126 |
AVX_IMPLIES= SIMD |
126 |
|
127 |
|
|
|
128 |
PCRE2_DESC= ${PCRE_DESC} version 2 |
129 |
PCRE2_LIB_DEPENDS= libpcre2-8.so:devel/pcre2 |
130 |
PCRE2_VARS= CARGO_FEATURES+=pcre2 |
131 |
|
127 |
# simd crate uses cfg_target_feature which isn't stable yet, so unlock |
132 |
# simd crate uses cfg_target_feature which isn't stable yet, so unlock |
128 |
# unstable features similar to how lang/rust bootstraps. www/firefox |
133 |
# unstable features similar to how lang/rust bootstraps. www/firefox |
129 |
# uses the same hack when building with --enable-rust-simd. |
134 |
# uses the same hack when building with --enable-rust-simd. |
130 |
SIMD_MAKE_ENV= RUSTC_BOOTSTRAP=1 |
135 |
SIMD_MAKE_ENV= RUSTC_BOOTSTRAP=1 |
131 |
SIMD_VARS= CARGO_FEATURES+=simd-accel ${SIMD_VARS_${ARCH}} |
136 |
SIMD_VARS= CARGO_FEATURES+=simd-accel ${SIMD_VARS_${ARCH}} |
132 |
SIMD_VARS_i386= RUSTFLAGS+="-C target-feature=+sse2" |
137 |
SIMD_VARS_i386= RUSTFLAGS+="-C target-feature=+sse2" |
133 |
|
138 |
|
134 |
post-patch: |
139 |
post-patch: |