diff options
Diffstat (limited to 'textproc/gitlab-elasticsearch-indexer')
6 files changed, 62 insertions, 10 deletions
diff --git a/textproc/gitlab-elasticsearch-indexer/Makefile b/textproc/gitlab-elasticsearch-indexer/Makefile index 5b4b318b058f..782ae36d76de 100644 --- a/textproc/gitlab-elasticsearch-indexer/Makefile +++ b/textproc/gitlab-elasticsearch-indexer/Makefile @@ -1,7 +1,6 @@ PORTNAME= gitlab-elasticsearch-indexer -PORTVERSION= 5.7.0 +PORTVERSION= 5.10.1 DISTVERSIONPREFIX= v -PORTREVISION= 1 CATEGORIES= textproc MAINTAINER= mfechner@FreeBSD.org @@ -11,12 +10,14 @@ WWW= https://gitlab.com/gitlab-org/gitlab-elasticsearch-indexer LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.md -BUILD_DEPENDS= git>=2.38.1:devel/git +BUILD_DEPENDS= git>=2.38.1:devel/git \ + gitlab-code-parser>=0.20.1:textproc/gitlab-code-parser LIB_DEPENDS= libicui18n.so:devel/icu \ - libicuuc.so:devel/icu + libicuuc.so:devel/icu \ + libparser_c_bindings.so:textproc/gitlab-code-parser #RUN_DEPENDS= p5-Image-ExifTool>=0:graphics/p5-Image-ExifTool -USES= gmake go:modules,no_targets,1.24 pkgconfig +USES= gmake go:modules,no_targets,1.23 pkgconfig USE_GITLAB= yes GL_ACCOUNT= gitlab-org @@ -29,6 +30,9 @@ MAKE_ENV+= ${GO_ENV} PLIST_FILES= bin/${PORTNAME} +post-patch: + ${REINPLACE_CMD} -e '/libparser-download/d' ${WRKSRC}/Makefile + # add a git tag, as that is required by the build script pre-build: cd ${WRKSRC} && \ diff --git a/textproc/gitlab-elasticsearch-indexer/distinfo b/textproc/gitlab-elasticsearch-indexer/distinfo index 8225879fbd20..7aa26f0efcd7 100644 --- a/textproc/gitlab-elasticsearch-indexer/distinfo +++ b/textproc/gitlab-elasticsearch-indexer/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1752677228 -SHA256 (go/textproc_gitlab-elasticsearch-indexer/gitlab-elasticsearch-indexer-v5.7.0/go.mod) = 6d07860d1af5a063ad7b2606b1a339b957cec48dc85f04a62b337c2d63ac4daf -SIZE (go/textproc_gitlab-elasticsearch-indexer/gitlab-elasticsearch-indexer-v5.7.0/go.mod) = 5605 -SHA256 (go/textproc_gitlab-elasticsearch-indexer/gitlab-elasticsearch-indexer-v5.7.0/gitlab-elasticsearch-indexer-v5.7.0.tar.bz2) = 4383624e2d3aeb8a36f2cfcbfef13c4e014cbbacc56393065c026c8a1d8e224d -SIZE (go/textproc_gitlab-elasticsearch-indexer/gitlab-elasticsearch-indexer-v5.7.0/gitlab-elasticsearch-indexer-v5.7.0.tar.bz2) = 116772 +TIMESTAMP = 1763473974 +SHA256 (go/textproc_gitlab-elasticsearch-indexer/gitlab-elasticsearch-indexer-v5.10.1/go.mod) = ba87496f645fc69725428a78a92f7f811c27a62344227ef501d21d5ac6fc6baa +SIZE (go/textproc_gitlab-elasticsearch-indexer/gitlab-elasticsearch-indexer-v5.10.1/go.mod) = 5684 +SHA256 (go/textproc_gitlab-elasticsearch-indexer/gitlab-elasticsearch-indexer-v5.10.1/gitlab-elasticsearch-indexer-v5.10.1.tar.bz2) = be451ff0ed52a3075a5a989e5d92fd49e3b998862288fe1eaff49740e750641b +SIZE (go/textproc_gitlab-elasticsearch-indexer/gitlab-elasticsearch-indexer-v5.10.1/gitlab-elasticsearch-indexer-v5.10.1.tar.bz2) = 119703 diff --git a/textproc/gitlab-elasticsearch-indexer/files/patch-Makefile b/textproc/gitlab-elasticsearch-indexer/files/patch-Makefile new file mode 100644 index 000000000000..db6f954c0c92 --- /dev/null +++ b/textproc/gitlab-elasticsearch-indexer/files/patch-Makefile @@ -0,0 +1,11 @@ +--- Makefile.orig 2025-11-17 05:11:42 UTC ++++ Makefile +@@ -44,7 +44,7 @@ all: build + all: build + + .PHONY: build +-build: tmp/libparser ++build: + $Q $(GO) build $(if $V,-v) $(VERSION_FLAGS) -o bin/gitlab-elasticsearch-indexer . + + install: build diff --git a/textproc/gitlab-elasticsearch-indexer/files/patch-vendor_gitlab.com_gitlab-org_rust_gitlab-code-parser_bindings_go_chunker_chunker.go b/textproc/gitlab-elasticsearch-indexer/files/patch-vendor_gitlab.com_gitlab-org_rust_gitlab-code-parser_bindings_go_chunker_chunker.go new file mode 100644 index 000000000000..974c9985e444 --- /dev/null +++ b/textproc/gitlab-elasticsearch-indexer/files/patch-vendor_gitlab.com_gitlab-org_rust_gitlab-code-parser_bindings_go_chunker_chunker.go @@ -0,0 +1,11 @@ +--- vendor/gitlab.com/gitlab-org/rust/gitlab-code-parser/bindings/go/chunker/chunker.go.orig 2025-10-25 07:41:10 UTC ++++ vendor/gitlab.com/gitlab-org/rust/gitlab-code-parser/bindings/go/chunker/chunker.go +@@ -2,7 +2,7 @@ package chunker + + /* + #include <stdint.h> +-#include "parser-c-bindings.h" ++#include <parser-c-bindings.h> + + extern int goChunkerYieldFunc(CChunk*, void*); + */ diff --git a/textproc/gitlab-elasticsearch-indexer/files/patch-vendor_gitlab.com_gitlab-org_rust_gitlab-code-parser_bindings_go_chunker_chunker__freebsd__amd64.go b/textproc/gitlab-elasticsearch-indexer/files/patch-vendor_gitlab.com_gitlab-org_rust_gitlab-code-parser_bindings_go_chunker_chunker__freebsd__amd64.go new file mode 100644 index 000000000000..fcd67d736b9b --- /dev/null +++ b/textproc/gitlab-elasticsearch-indexer/files/patch-vendor_gitlab.com_gitlab-org_rust_gitlab-code-parser_bindings_go_chunker_chunker__freebsd__amd64.go @@ -0,0 +1,13 @@ +--- vendor/gitlab.com/gitlab-org/rust/gitlab-code-parser/bindings/go/chunker/chunker_freebsd_amd64.go.orig 2025-10-25 07:47:52 UTC ++++ vendor/gitlab.com/gitlab-org/rust/gitlab-code-parser/bindings/go/chunker/chunker_freebsd_amd64.go +@@ -0,0 +1,10 @@ ++//go:build freebsd && amd64 ++// +build freebsd,amd64 ++ ++package chunker ++ ++/* ++#cgo CFLAGS: -I/usr/local/include ++#cgo LDFLAGS: -L/usr/local/lib -lparser_c_bindings ++*/ ++import "C" diff --git a/textproc/gitlab-elasticsearch-indexer/files/patch-vendor_gitlab.com_gitlab-org_rust_gitlab-code-parser_bindings_go_chunker_chunker__freebsd__arm64.go b/textproc/gitlab-elasticsearch-indexer/files/patch-vendor_gitlab.com_gitlab-org_rust_gitlab-code-parser_bindings_go_chunker_chunker__freebsd__arm64.go new file mode 100644 index 000000000000..0f6b5ca8f528 --- /dev/null +++ b/textproc/gitlab-elasticsearch-indexer/files/patch-vendor_gitlab.com_gitlab-org_rust_gitlab-code-parser_bindings_go_chunker_chunker__freebsd__arm64.go @@ -0,0 +1,13 @@ +--- vendor/gitlab.com/gitlab-org/rust/gitlab-code-parser/bindings/go/chunker/chunker_freebsd_arm64.go.orig 2025-10-25 07:48:01 UTC ++++ vendor/gitlab.com/gitlab-org/rust/gitlab-code-parser/bindings/go/chunker/chunker_freebsd_arm64.go +@@ -0,0 +1,10 @@ ++//go:build freebsd && arm64 ++// +build freebsd,arm64 ++ ++package chunker ++ ++/* ++#cgo CFLAGS: -I/usr/local/include ++#cgo LDFLAGS: -L/usr/local/lib -lparser_c_bindings ++*/ ++import "C" |
