All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/utfcpp: new package
@ 2025-01-18 21:40 Bernd Kuhls
  2025-01-18 21:40 ` [Buildroot] [PATCH 2/2] package/taglib: bump version to 2.0.2 Bernd Kuhls
  2025-02-04 16:53 ` [Buildroot] [PATCH 1/2] package/utfcpp: new package Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 4+ messages in thread
From: Bernd Kuhls @ 2025-01-18 21:40 UTC (permalink / raw)
  To: buildroot; +Cc: Thomas Petazzoni

Needed for taglib 2.x:
https://github.com/taglib/taglib/commit/6ed0ca28db0d12a75572c0f5dcefdc5ebb34cc21

Upstream discourages the use of CMakeList.txt to install the package:
https://github.com/nemtrif/utfcpp/commit/4965d378fb141a21c8afa7c283a8af4725e6a57e

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 DEVELOPERS                 |  1 +
 package/Config.in          |  1 +
 package/utfcpp/Config.in   |  6 ++++++
 package/utfcpp/utfcpp.hash |  3 +++
 package/utfcpp/utfcpp.mk   | 23 +++++++++++++++++++++++
 5 files changed, 34 insertions(+)
 create mode 100644 package/utfcpp/Config.in
 create mode 100644 package/utfcpp/utfcpp.hash
 create mode 100644 package/utfcpp/utfcpp.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 354a006190..d26e059e04 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -506,6 +506,7 @@ F:	package/tor/
 F:	package/transmission/
 F:	package/tvheadend/
 F:	package/unixodbc/
+F:	package/utfcpp/
 F:	package/vlc/
 F:	package/wget/
 F:	package/wireless-regdb/
diff --git a/package/Config.in b/package/Config.in
index 8aa3a6cc43..6478d017c8 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2357,6 +2357,7 @@ menu "Text and terminal handling"
 	source "package/tclap/Config.in"
 	source "package/termcolor/Config.in"
 	source "package/utf8proc/Config.in"
+	source "package/utfcpp/Config.in"
 endmenu
 
 endmenu
diff --git a/package/utfcpp/Config.in b/package/utfcpp/Config.in
new file mode 100644
index 0000000000..d48209aef2
--- /dev/null
+++ b/package/utfcpp/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_UTFCPP
+	bool "utfcpp"
+	help
+	  UTF-8 with C++ in a Portable Way
+
+	  https://github.com/nemtrif/utfcpp
diff --git a/package/utfcpp/utfcpp.hash b/package/utfcpp/utfcpp.hash
new file mode 100644
index 0000000000..65b3ad2a88
--- /dev/null
+++ b/package/utfcpp/utfcpp.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256  6920a6a5d6a04b9a89b2a89af7132f8acefd46e0c2a7b190350539e9213816c0  utfcpp-4.0.6.tar.gz
+sha256  c9bff75738922193e67fa726fa225535870d2aa1059f91452c411736284ad566  LICENSE
diff --git a/package/utfcpp/utfcpp.mk b/package/utfcpp/utfcpp.mk
new file mode 100644
index 0000000000..3a4613841e
--- /dev/null
+++ b/package/utfcpp/utfcpp.mk
@@ -0,0 +1,23 @@
+################################################################################
+#
+# taglib
+#
+################################################################################
+
+UTFCPP_VERSION = 4.0.6
+UTFCPP_SITE = $(call github,nemtrif,utfcpp,v$(UTFCPP_VERSION))
+UTFCPP_LICENSE = BSL-1.0
+UTFCPP_LICENSE_FILES = LICENSE
+
+# utfcpp is a header-only library, it only makes sense
+# to have it installed into the staging directory.
+UTFCPP_INSTALL_STAGING = YES
+UTFCPP_INSTALL_TARGET = NO
+
+define UTFCPP_INSTALL_STAGING_CMDS
+	mkdir -p $(STAGING_DIR)/usr/include/utf8/
+	$(INSTALL) -m 0644 $(@D)/source/utf8.h $(STAGING_DIR)/usr/include/utf8.h
+	$(INSTALL) -m 0644 $(@D)/source/utf8/* $(STAGING_DIR)/usr/include/utf8/
+endef
+
+$(eval $(generic-package))
-- 
2.39.5

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 2/2] package/taglib: bump version to 2.0.2
  2025-01-18 21:40 [Buildroot] [PATCH 1/2] package/utfcpp: new package Bernd Kuhls
@ 2025-01-18 21:40 ` Bernd Kuhls
  2025-02-04 16:53   ` Thomas Petazzoni via buildroot
  2025-02-04 16:53 ` [Buildroot] [PATCH 1/2] package/utfcpp: new package Thomas Petazzoni via buildroot
  1 sibling, 1 reply; 4+ messages in thread
From: Bernd Kuhls @ 2025-01-18 21:40 UTC (permalink / raw)
  To: buildroot; +Cc: Thomas Petazzoni

Changelog: https://github.com/taglib/taglib/blob/master/CHANGELOG.md

Needs utfcpp:
https://github.com/taglib/taglib/commit/6ed0ca28db0d12a75572c0f5dcefdc5ebb34cc21

Switched _SITE to https.

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
 package/taglib/Config.in   | 1 +
 package/taglib/taglib.hash | 2 +-
 package/taglib/taglib.mk   | 5 +++--
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/package/taglib/Config.in b/package/taglib/Config.in
index 6a87a13215..5b641a9653 100644
--- a/package/taglib/Config.in
+++ b/package/taglib/Config.in
@@ -2,6 +2,7 @@ config BR2_PACKAGE_TAGLIB
 	bool "taglib"
 	depends on BR2_INSTALL_LIBSTDCPP
 	depends on BR2_USE_WCHAR
+	select BR2_PACKAGE_UTFCPP
 	help
 	  TagLib is a library for reading and editing the meta-data of
 	  several popular audio formats. Currently it supports both
diff --git a/package/taglib/taglib.hash b/package/taglib/taglib.hash
index e83aa451f3..bbf5dd26d5 100644
--- a/package/taglib/taglib.hash
+++ b/package/taglib/taglib.hash
@@ -1,4 +1,4 @@
 # Locally calculated
-sha256  c8da2b10f1bfec2cd7dbfcd33f4a2338db0765d851a50583d410bacf055cfd0b  taglib-1.13.1.tar.gz
+sha256  0de288d7fe34ba133199fd8512f19cc1100196826eafcb67a33b224ec3a59737  taglib-2.0.2.tar.gz
 sha256  dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551  COPYING.LGPL
 sha256  53692a2ed6c6a2c6ec9b32dd0b820dfae91e0a1fcdf625ca9ed0bdf8705fcc4f  COPYING.MPL
diff --git a/package/taglib/taglib.mk b/package/taglib/taglib.mk
index 9bdf05b85d..005a6cc728 100644
--- a/package/taglib/taglib.mk
+++ b/package/taglib/taglib.mk
@@ -4,9 +4,10 @@
 #
 ################################################################################
 
-TAGLIB_VERSION = 1.13.1
-TAGLIB_SITE = http://taglib.github.io/releases
+TAGLIB_VERSION = 2.0.2
+TAGLIB_SITE = https://taglib.org/releases
 TAGLIB_INSTALL_STAGING = YES
+TAGLIB_DEPENDENCIES += utfcpp
 TAGLIB_LICENSE = LGPL-2.1 or MPL-1.1
 TAGLIB_LICENSE_FILES = COPYING.LGPL COPYING.MPL
 TAGLIB_CPE_ID_VENDOR = taglib
-- 
2.39.5

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH 1/2] package/utfcpp: new package
  2025-01-18 21:40 [Buildroot] [PATCH 1/2] package/utfcpp: new package Bernd Kuhls
  2025-01-18 21:40 ` [Buildroot] [PATCH 2/2] package/taglib: bump version to 2.0.2 Bernd Kuhls
@ 2025-02-04 16:53 ` Thomas Petazzoni via buildroot
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2025-02-04 16:53 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: buildroot

Hello,

On Sat, 18 Jan 2025 22:40:52 +0100
Bernd Kuhls <bernd@kuhls.net> wrote:

> diff --git a/package/utfcpp/Config.in b/package/utfcpp/Config.in
> new file mode 100644
> index 0000000000..d48209aef2
> --- /dev/null
> +++ b/package/utfcpp/Config.in
> @@ -0,0 +1,6 @@
> +config BR2_PACKAGE_UTFCPP
> +	bool "utfcpp"
> +	help
> +	  UTF-8 with C++ in a Portable Way
> +
> +	  https://github.com/nemtrif/utfcpp

I've added a dependency on BR2_INSTALL_LIBSTDCPP here. Even though
strictly speaking for utfcpp itself, it is needed for all packages that
will use it, so it makes sense to "annotate" this as a dependency on
utfcpp.

Applied, thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Buildroot] [PATCH 2/2] package/taglib: bump version to 2.0.2
  2025-01-18 21:40 ` [Buildroot] [PATCH 2/2] package/taglib: bump version to 2.0.2 Bernd Kuhls
@ 2025-02-04 16:53   ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2025-02-04 16:53 UTC (permalink / raw)
  To: Bernd Kuhls; +Cc: buildroot

On Sat, 18 Jan 2025 22:40:53 +0100
Bernd Kuhls <bernd@kuhls.net> wrote:

> -TAGLIB_VERSION = 1.13.1
> -TAGLIB_SITE = http://taglib.github.io/releases
> +TAGLIB_VERSION = 2.0.2
> +TAGLIB_SITE = https://taglib.org/releases
>  TAGLIB_INSTALL_STAGING = YES
> +TAGLIB_DEPENDENCIES += utfcpp

= sign was enough here, += is not necessary.

Applied with this change. Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-02-04 16:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-18 21:40 [Buildroot] [PATCH 1/2] package/utfcpp: new package Bernd Kuhls
2025-01-18 21:40 ` [Buildroot] [PATCH 2/2] package/taglib: bump version to 2.0.2 Bernd Kuhls
2025-02-04 16:53   ` Thomas Petazzoni via buildroot
2025-02-04 16:53 ` [Buildroot] [PATCH 1/2] package/utfcpp: new package Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.