View | Details | Raw Unified | Return to bug 223314 | Differences between
and this patch

Collapse All | Expand All

(-)b/textproc/ripgrep/Makefile (+14 lines)
Lines 5-10 Link Here
5
5
6
PORTNAME=	ripgrep
6
PORTNAME=	ripgrep
7
PORTVERSION=	0.7.1
7
PORTVERSION=	0.7.1
8
PORTREVISION=	1
8
CATEGORIES=	textproc
9
CATEGORIES=	textproc
9
10
10
MAINTAINER=	petteri.valkonen@iki.fi
11
MAINTAINER=	petteri.valkonen@iki.fi
Lines 73-78 CARGO_CRATES= aho-corasick-0.6.3 \ Link Here
73
RIPGREP_OUTDIR=	${WRKDIR}/cargo-out
74
RIPGREP_OUTDIR=	${WRKDIR}/cargo-out
74
CARGO_ENV=	RIPGREP_OUTDIR=${RIPGREP_OUTDIR}
75
CARGO_ENV=	RIPGREP_OUTDIR=${RIPGREP_OUTDIR}
75
76
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_MAKE_ENV=	RUSTC_BOOTSTRAP=1 # cheat Nightly requirement
88
SIMD_VARS=	CARGO_FEATURES+=simd-accel
89
76
post-patch:
90
post-patch:
77
	@${REINPLACE_CMD} -e 's|OUT_DIR|RIPGREP_OUTDIR|' ${WRKSRC}/build.rs
91
	@${REINPLACE_CMD} -e 's|OUT_DIR|RIPGREP_OUTDIR|' ${WRKSRC}/build.rs
78
92

Return to bug 223314