diff --git a/textproc/meilisearch/Makefile b/textproc/meilisearch/Makefile index 253bfe78b95c..8ef43a58af57 100644 --- a/textproc/meilisearch/Makefile +++ b/textproc/meilisearch/Makefile @@ -1,67 +1,67 @@ PORTNAME= meilisearch DISTVERSIONPREFIX= v DISTVERSION= 1.9.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= textproc MASTER_SITES= https://github.com/meilisearch/mini-dashboard/releases/download/v${DASHBOARD_VERSION}/build.zip?dummy=/:mini_dashboard_assets \ https://dlwqk3ibdg1xh.cloudfront.net/:dic_upstream \ https://milli-benchmarks.fra1.digitaloceanspaces.com/datasets/:benchmark DISTFILES= ${MINIDASHBOARDFILE}:mini_dashboard_assets \ mecab-ipadic-2.7.0-20070801.tar.gz:dic_upstream \ unidic-mecab-2.1.2.tar.gz:dic_upstream \ mecab-ko-dic-2.1.1-20180720.tar.gz:dic_upstream \ smol-songs.csv.gz:benchmark \ smol-songs-1_2.csv.gz:benchmark \ smol-songs-3_4.csv.gz:benchmark \ smol-songs-4_4.csv.gz:benchmark \ smol-wiki-articles.csv.gz:benchmark \ smol-wiki-articles-1_2.csv.gz:benchmark \ smol-wiki-articles-3_4.csv.gz:benchmark \ smol-wiki-articles-4_4.csv.gz:benchmark \ movies.json.gz:benchmark \ movies-1_2.json.gz:benchmark \ movies-3_4.json.gz:benchmark \ movies-4_4.json.gz:benchmark \ nested_movies.json.gz:benchmark \ smol-all-countries.jsonl.gz:benchmark EXTRACT_ONLY= ${DISTFILES:N*\:benchmark:N*\:dic_upstream:C/:.*//} MAINTAINER= ashish@FreeBSD.org COMMENT= Powerful, fast, and an easy to use search engine WWW= https://www.meilisearch.com/ LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= libgit2>=0:devel/libgit2 LIB_DEPENDS= libzstd.so:archivers/zstd \ libonig.so:devel/oniguruma BROKEN_i386= fails to build USES= cargo pkgconfig USE_GITHUB= yes #GH_TUPLE= meilisearch:lmdb:6a01c0a:lmdb/../lmdb-rs-501aa34a1ab7f092e3ff54a6c22ff6c55931a2d8/lmdb-sys/lmdb DASHBOARD_VERSION= 0.2.14 MINIDASHBOARDFILE= meilisearch-mini-dashboard-build-${DASHBOARD_VERSION}.zip CARGO_INSTALL_PATH= meilisearch CARGO_ENV= LIBGIT2_SYS_USE_PKG_CONFIG=1 \ MILLI_BENCH_DATASETS_PATH=${WRKDIR} PLIST_FILES= bin/${PORTNAME} post-extract: .for F in ${DISTFILES:M*\:benchmark:S/:benchmark//} @${GUNZIP} < ${DISTDIR}/${F} >${WRKDIR}/${F:S/.gz//} .endfor post-patch: ${REINPLACE_CMD} -e 's,%%MINIDASHBOARDFILE%%,${DISTDIR}/${MINIDASHBOARDFILE},' \ ${WRKSRC}/meilisearch/build.rs ${REINPLACE_CMD} -e 's,%%DISTDIR%%,${DISTDIR},' \ ${CARGO_VENDOR_DIR}/lindera-unidic-0.31.0/build.rs \ ${CARGO_VENDOR_DIR}/lindera-ipadic-0.31.0/build.rs \ ${CARGO_VENDOR_DIR}/lindera-ko-dic-0.31.0/build.rs ${GREP} -F -R -l %%WRKDIR%% ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \ 's,%%WRKDIR%%,${WRKDIR},' .include diff --git a/textproc/meilisearch/files/patch-cargo-crates_time-0.3.34_src_format__description_parse_mod.rs b/textproc/meilisearch/files/patch-cargo-crates_time-0.3.34_src_format__description_parse_mod.rs new file mode 100644 index 000000000000..9f7deb98165f --- /dev/null +++ b/textproc/meilisearch/files/patch-cargo-crates_time-0.3.34_src_format__description_parse_mod.rs @@ -0,0 +1,19 @@ +From 5b0c627366babea1636b35db641c0fec964ddbd1 Mon Sep 17 00:00:00 2001 +From: David Tolnay +Date: Fri, 15 Mar 2024 20:47:22 -0700 +Subject: [PATCH] Delete identity conversion in format_description::parse_owned + (#671) + +--- cargo-crates/time-0.3.34/src/format_description/parse/mod.rs.orig 2006-07-24 01:21:28 UTC ++++ cargo-crates/time-0.3.34/src/format_description/parse/mod.rs +@@ -80,9 +80,7 @@ pub fn parse_owned( + let mut lexed = lexer::lex::(s.as_bytes()); + let ast = ast::parse::<_, VERSION>(&mut lexed); + let format_items = format_item::parse(ast); +- let items = format_items +- .map(|res| res.map(Into::into)) +- .collect::, _>>()?; ++ let items = format_items.collect::, _>>()?; + Ok(items.into()) + } +