mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Lars Alex Pedersen <lapeddk@gmail.com>
To: ptxdist@pengutronix.de
Cc: Lars Alex Pedersen <lapeddk@gmail.com>
Subject: [ptxdist] [PATCH 1/5] re2: new package
Date: Tue, 24 Mar 2026 07:28:17 +0100	[thread overview]
Message-ID: <20260324062821.82844-1-lapeddk@gmail.com> (raw)

Signed-off-by: Lars Alex Pedersen <lapeddk@gmail.com>
---
 rules/re2.in   | 11 ++++++++++
 rules/re2.make | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+)
 create mode 100644 rules/re2.in
 create mode 100644 rules/re2.make

diff --git a/rules/re2.in b/rules/re2.in
new file mode 100644
index 000000000..44e54a33b
--- /dev/null
+++ b/rules/re2.in
@@ -0,0 +1,11 @@
+## SECTION=system_libraries
+
+config RE2
+	tristate
+	select HOST_CMAKE
+	select ABSEIL_CPP
+	prompt "re2"
+	help
+	  RE2 is an efficient, principled regular expression library.
+
+# vim: ft=kconfig tw=80
diff --git a/rules/re2.make b/rules/re2.make
new file mode 100644
index 000000000..c5f820a7c
--- /dev/null
+++ b/rules/re2.make
@@ -0,0 +1,59 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2026 by Lars Pedersen <lapeddk@gmail.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_RE2) += re2
+
+#
+# Paths and names
+#
+RE2_VERSION		:= 2025-11-05
+RE2_MD5			:= 2a26009d8c226fd0a8721fbce7132a83
+RE2			:= re2-$(RE2_VERSION)
+RE2_SUFFIX		:= tar.gz
+RE2_URL			:= https://github.com/google/re2/archive/$(RE2_VERSION).$(RE2_SUFFIX)
+RE2_SOURCE		:= $(SRCDIR)/$(RE2).$(RE2_SUFFIX)
+RE2_DIR			:= $(BUILDDIR)/$(RE2)
+RE2_LICENSE		:= BSD-3-Clause
+RE2_LICENSE_FILES	:= \
+	file://LICENSE;md5=3b5c31eb512bdf3cb11ffd5713963760
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# cmake
+#
+RE2_CONF_TOOL	:= cmake
+RE2_CONF_OPT	:=  \
+	$(CROSS_CMAKE_USR) \
+	-DBUILD_SHARED_LIBS=ON
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/re2.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, re2)
+	@$(call install_fixup, re2, PRIORITY, optional)
+	@$(call install_fixup, re2, SECTION, base)
+	@$(call install_fixup, re2, AUTHOR, "Lars Pedersen <lapeddk@gmail.com>")
+	@$(call install_fixup, re2, DESCRIPTION, missing)
+
+	@$(call install_lib, re2, 0, 0, 0644, libre2)
+
+	@$(call install_finish, re2)
+
+	@$(call touch)
+
+# vim: ft=make

base-commit: eedd3da887e42dcc0e6ffb95a348107e2a5bcf4f
-- 
2.53.0




             reply	other threads:[~2026-03-24  6:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-24  6:28 Lars Alex Pedersen [this message]
2026-03-24  6:28 ` [ptxdist] [PATCH 2/5] abseil-cpp: Add option to build as shared library Lars Alex Pedersen
2026-03-24  6:28 ` [ptxdist] [PATCH 3/5] python3-typing-extensions: New package Lars Alex Pedersen
2026-03-24  6:28 ` [ptxdist] [PATCH 4/5] python3-protobuf: version bump 5.26.1 -> 7.34.1 Lars Alex Pedersen
2026-03-24  6:28 ` [ptxdist] [PATCH 5/5] python3-grpcio: New package Lars Alex Pedersen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260324062821.82844-1-lapeddk@gmail.com \
    --to=lapeddk@gmail.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox