From: Alexander Dahl via ptxdist <ptxdist@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Alexander Dahl <ada@thorsis.com>,
Andreas Helmcke <ahelmcke@ela-soft.com>
Subject: [ptxdist] [PATCH v2 1/3] libonig: Add new package
Date: Tue, 3 Jun 2025 11:08:59 +0200 [thread overview]
Message-ID: <20250603090901.1066406-2-ada@thorsis.com> (raw)
In-Reply-To: <20250603090901.1066406-1-ada@thorsis.com>
The jq package has this as optional dependency and shipped it as vendor
code in a submodule, which might break the build, and makes specifying
license unnecessarily difficult. Split into separate package.
Note, the upstream project is EOL, but so would be the jq submodule.
Link: https://lore.ptxdist.org/ptxdist/1302b7b6-e272-48c1-8daf-e7519389c670@ela-soft.com/
Signed-off-by: Alexander Dahl <ada@thorsis.com>
---
rules/libonig.in | 11 ++++++++++
rules/libonig.make | 52 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 63 insertions(+)
create mode 100644 rules/libonig.in
create mode 100644 rules/libonig.make
diff --git a/rules/libonig.in b/rules/libonig.in
new file mode 100644
index 000000000..fa909fcb6
--- /dev/null
+++ b/rules/libonig.in
@@ -0,0 +1,11 @@
+## SECTION=system_libraries
+
+config LIBONIG
+ tristate
+ prompt "libonig"
+ help
+ Oniguruma is a modern and flexible regular expressions library.
+ It encompasses features from different regular expression
+ implementations that traditionally exist in different languages.
+
+# vim: ft=kconfig noet ts=8 sw=8
diff --git a/rules/libonig.make b/rules/libonig.make
new file mode 100644
index 000000000..3397f553f
--- /dev/null
+++ b/rules/libonig.make
@@ -0,0 +1,52 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2025 by Alexander Dahl <ada@thorsis.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_LIBONIG) += libonig
+
+#
+# Paths and names
+#
+LIBONIG_VERSION := 6.9.10
+LIBONIG_MD5 := 46c48d072eafe29a0dd0489df7f6f212
+LIBONIG := onig-$(LIBONIG_VERSION)
+LIBONIG_SUFFIX := tar.gz
+LIBONIG_URL := https://github.com/kkos/oniguruma/releases/download/v$(LIBONIG_VERSION)/$(LIBONIG).$(LIBONIG_SUFFIX)
+LIBONIG_SOURCE := $(SRCDIR)/$(LIBONIG).$(LIBONIG_SUFFIX)
+LIBONIG_DIR := $(BUILDDIR)/$(LIBONIG)
+LIBONIG_LICENSE := BSD-2-Clause
+LIBONIG_LICENSE_FILES := file://COPYING;md5=e6365c225bb5cc4321d0913f0baffa04
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBONIG_CONF_TOOL := autoconf
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libonig.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, libonig)
+ @$(call install_fixup, libonig,PRIORITY,optional)
+ @$(call install_fixup, libonig,SECTION,base)
+ @$(call install_fixup, libonig,AUTHOR,"Alexander Dahl <ada@thorsis.com>")
+ @$(call install_fixup, libonig,DESCRIPTION,missing)
+
+ @$(call install_lib, libonig, 0, 0, 0644, libonig)
+
+ @$(call install_finish, libonig)
+
+ @$(call touch)
+
+# vim: ft=make noet ts=8 sw=8
--
2.39.5
next prev parent reply other threads:[~2025-06-03 9:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-03 9:08 [ptxdist] [PATCH v2 0/3] jq: license update and version bump Alexander Dahl via ptxdist
2025-06-03 9:08 ` Alexander Dahl via ptxdist [this message]
2025-06-03 9:09 ` [ptxdist] [PATCH v2 2/3] jq: Make regex support optional Alexander Dahl via ptxdist
2025-06-03 9:09 ` [ptxdist] [PATCH v2 3/3] jq: version bump 1.7.1 -> 1.8.0 Alexander Dahl via ptxdist
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=20250603090901.1066406-2-ada@thorsis.com \
--to=ptxdist@pengutronix.de \
--cc=ada@thorsis.com \
--cc=ahelmcke@ela-soft.com \
/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