Skip to contentSkip to conversation

Add library libunistring that is used for advanced text processing.

PATCH New Pedro Aguilar 2 participants 2 messages Oct 19, 2014 – Oct 25, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add library libunistring that is used for advanced text processing.

---
 package/Config.in                    |  1 +
 package/libunistring/Config.in       | 12 ++++++++++++
 package/libunistring/libunistring.mk | 14 ++++++++++++++
 3 files changed, 27 insertions(+)
 create mode 100644 package/libunistring/Config.in
 create mode 100644 package/libunistring/libunistring.mk
package/Config.in +1 -0
index 89b46dc..5a9c598 100644
@@ -902,6 +902,7 @@ menu "Other"
 	source "package/startup-notification/Config.in"
 	source "package/tz/Config.in"
 	source "package/tzdata/Config.in"
+	source "package/libunistring/Config.in"
 endmenu
 
 menu "Security"
package/libunistring/Config.in new file +12 -0
new file mode 100644
index 0000000..e0f524b
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_LIBUNISTRING
+	bool "libunistring"
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	help
+	  The libunistring library provides functions for manipulating 
+	  Unicode strings and for manipulating C strings according to 
+	  the Unicode standard.
+
+	  http://www.gnu.org/software/libunistring/
+
+comment "libunistring needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
package/libunistring/libunistring.mk new file +14 -0
new file mode 100644
index 0000000..5bf75fe
@@ -0,0 +1,14 @@
+################################################################################
+#
+# libunistring
+#
+################################################################################
+
+LIBUNISTRING_VERSION = 0.9.4
+LIBUNISTRING_SOURCE  = libunistring-$(LIBUNISTRING_VERSION).tar.gz
+LIBUNISTRING_SITE    = http://ftp.gnu.org/gnu/libunistring
+LIBUNISTRING_INSTALL_STAGING = YES
+LIBUNISTRING_LICENSE = LGPLv2
+LIBUNISTRING_LICENSE_FILES = LICENSE
+
+$(eval $(autotools-package))
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 Add library libunistring that is used for advanced text processing.

Dear Pedro Aguilar,

Quoted 8 lines · Pedro Aguilar
---
 package/Config.in                    |  1 +
 package/libunistring/Config.in       | 12 ++++++++++++
 package/libunistring/libunistring.mk | 14 ++++++++++++++
 3 files changed, 27 insertions(+)
 create mode 100644 package/libunistring/Config.in
 create mode 100644 package/libunistring/libunistring.mk

Thanks, applied, after doing a few modifications:

[Thomas:
- adjust the title of the commit
- remove the thread dependency, by using the --disable-threads option when needed
- remove LIBUNISTRING_SOURCE, since its value was the default
- use BR2_GNU_MIRROR in LIBUNISTRING_SITE
- adjust the license, which really is LGPLv3+, not LGPLv2. The license file is COPYING.LIB.]

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com