From patchwork Wed Feb 12 22:51:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 1237135 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=EMaOPw1d; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48HvzJ4Vh8z9s1x for ; Thu, 13 Feb 2020 09:52:12 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D30DE87D75; Wed, 12 Feb 2020 22:52:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Y-xAePlOTLFR; Wed, 12 Feb 2020 22:52:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id EF84A86132; Wed, 12 Feb 2020 22:52:07 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 5A2DF1BF421 for ; Wed, 12 Feb 2020 22:52:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 2B5CA86974 for ; Wed, 12 Feb 2020 22:52:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sJ55H3yvOdQI for ; Wed, 12 Feb 2020 22:52:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4A2318696A for ; Wed, 12 Feb 2020 22:52:05 +0000 (UTC) Received: by mail-pf1-f195.google.com with SMTP id 4so1956190pfz.9 for ; Wed, 12 Feb 2020 14:52:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9q4zQDmlAwWAEutCF6OBVHRkRAlYEsGiDR+UYxZ6hkY=; b=EMaOPw1dX214W7xA2gBDIypPEFX4s6u5vVoEWip9ZduE2F3rvdRxLijbJfnmQYDgFv TDP3FWTwV2QUn74fqSMTo7Z8Mm8HfbtKQ/pCMeHmB5aPJKQFU47w7seTrJSZ8rp3i0s6 hFngPjCx8N2LvpnymOXXVJish2Rk8bKBWXQkWCh1M1xWyN5I/VByLgzVzNs0LO4AxPyu IznssjBpPVSQHwiU1yf7cCiI8UPf8slrj38Kzvc1Efux5o2P/xYpesMD9u0P0bb5vrdw S0Q7rIeWg6g4io9ESIgoreW8EVcH+zGedD3IjCd/tiMUuDfxAEEE/hzV9KlnAkTLJH0Z BFCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9q4zQDmlAwWAEutCF6OBVHRkRAlYEsGiDR+UYxZ6hkY=; b=YlKpgq2UKidVdjAo7loo9YT3yPETGPdfJyZ5pqJpaqAxbTBP6Iw/pg0+16Q1QJ1vHI 0QdRV8yb/C4dmEoc+YCt9deE1AOEO2PWYA4jJEbkJRX7BitVRqs+PiQY5Zvo+E6LuRgu mp1SKYAIeZHOSI3AIudj5R4xxtFNqj33BzyZr9/RvI2iN64qwxWvp0DKFL/mf8PhKAuf RS2U+kDCm70e4UUzwb04A4pVoJH9VJ+RPgyrzW3FOn9eN4gC7teHAOsJ971cVm7g2y+E /CGlpOqoj+W3lZvO7ILH2ZjTPxTKlNPzdA2gb9dwRslQlrs5FkuRNkK9OyesAxdqpGSy FL5Q== X-Gm-Message-State: APjAAAVi3TI8m5a07US3AmGC+Ur7qNK7mB9GzrxEUuujzFbYZzlBFNko lGadl4EgaCuUrtBR3maQLBvInGNMZBw= X-Google-Smtp-Source: APXvYqzMqdtjLr7r7TyYvQu+9OwilXEQTIcaAQVLdC+7qNWhXySfYG7Zl+Uxho4PqWx1hfTet/F0iw== X-Received: by 2002:aa7:96b0:: with SMTP id g16mr10142642pfk.99.1581547924541; Wed, 12 Feb 2020 14:52:04 -0800 (PST) Received: from localhost.localdomain ([47.149.8.172]) by smtp.gmail.com with ESMTPSA id dw10sm267678pjb.11.2020.02.12.14.52.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Feb 2020 14:52:03 -0800 (PST) From: aduskett@gmail.com To: buildroot@buildroot.org Date: Wed, 12 Feb 2020 14:51:59 -0800 Message-Id: <20200212225201.1919594-1-aduskett@gmail.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/3] package/libtextstyle: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Adam Duskett Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Adam Duskett This library provides an easy way to add styling to programs that produce output to a console or terminal emulator window. libtextstyle is for you if your application produces text that is more readable when it is accompanied with styling information, such as color, font attributes (weight, posture), or underlining. Newer versions of gettext-gnu require this package. Tested with test-pkg -p gettext-tiny in Debian 10 and Centos 7 br-arm-full [1/6]: OK br-arm-cortex-a9-glibc [2/6]: OK br-arm-cortex-m4-full [3/6]: OK br-x86-64-musl [4/6]: OK br-arm-full-static [5/6]: OK sourcery-arm [6/6]: OK Signed-off-by: Adam Duskett --- DEVELOPERS | 1 + package/Config.in | 1 + package/libtextstyle/Config.in | 14 +++++++++++++ package/libtextstyle/libtextstyle.hash | 6 ++++++ package/libtextstyle/libtextstyle.mk | 28 ++++++++++++++++++++++++++ 5 files changed, 50 insertions(+) create mode 100644 package/libtextstyle/Config.in create mode 100644 package/libtextstyle/libtextstyle.hash create mode 100644 package/libtextstyle/libtextstyle.mk diff --git a/DEVELOPERS b/DEVELOPERS index cb13035bc4..33190d79f9 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -46,6 +46,7 @@ F: package/libressl/ F: package/libselinux/ F: package/libsemanage/ F: package/libsepol/ +F: package/libtextstyle/ F: package/libwebsockets/ F: package/mender-grubenv/ F: package/nginx-naxsi/ diff --git a/package/Config.in b/package/Config.in index dfa3f34b9d..481f619016 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1884,6 +1884,7 @@ menu "Text and terminal handling" source "package/libiconv/Config.in" source "package/libunistring/Config.in" source "package/linenoise/Config.in" + source "package/libtextstyle/Config.in" source "package/ncurses/Config.in" source "package/newt/Config.in" source "package/oniguruma/Config.in" diff --git a/package/libtextstyle/Config.in b/package/libtextstyle/Config.in new file mode 100644 index 0000000000..6858be5bf6 --- /dev/null +++ b/package/libtextstyle/Config.in @@ -0,0 +1,14 @@ +config BR2_PACKAGE_LIBTEXTSTYLE + bool "libtextstyle" + depends on BR2_USE_WCHAR + help + This library provides an easy way to add styling to + programs that produce output to a console or terminal + emulator window. + + libtextstyle is for you if your application produces text + that is more readable when it is accompanied with styling + information, such as color, font attributes + (weight, posture), or underlining. + + http://www.gnu.org/software/gettext/ diff --git a/package/libtextstyle/libtextstyle.hash b/package/libtextstyle/libtextstyle.hash new file mode 100644 index 0000000000..5c5aee85bf --- /dev/null +++ b/package/libtextstyle/libtextstyle.hash @@ -0,0 +1,6 @@ +# From https://lists.gnu.org/archive/html/info-gnu/2019-05/msg00011.html +sha1 62f4a6a2fd5f80bfd0e66c497a04094fa3e07b90 gettext-0.20.1.tar.xz + +# Locally calculated +sha256 53f02fbbec9e798b0faaf7c73272f83608e835c6288dd58be6c9bb54624a3800 gettext-0.20.1.tar.xz +sha256 e79e9c8a0c85d735ff98185918ec94ed7d175efc377012787aebcf3b80f0d90b COPYING diff --git a/package/libtextstyle/libtextstyle.mk b/package/libtextstyle/libtextstyle.mk new file mode 100644 index 0000000000..e5b5706085 --- /dev/null +++ b/package/libtextstyle/libtextstyle.mk @@ -0,0 +1,28 @@ +################################################################################ +# +# libtextstyle +# +################################################################################ + +LIBTEXTSTYLE_VERSION = 0.20.1 +LIBTEXTSTYLE_SITE = $(BR2_GNU_MIRROR)/gettext +LIBTEXTSTYLE_SOURCE = gettext-$(LIBTEXTSTYLE_VERSION).tar.xz +LIBTEXTSTYLE_INSTALL_STAGING = YES +LIBTEXTSTYLE_LICENSE = GPL-3.0+ +LIBTEXTSTYLE_LICENSE_FILES = COPYING +LIBTEXTSTYLE_SUBDIR = libtextstyle +HOST_LIBTEXTSTYLE_SUBDIR = libtextstyle + +# gettext-tools require libtextstyle.m4 +define LIBTEXTSTYLE_INSTALL_M4 + $(INSTALL) -D -m 0755 $(@D)/libtextstyle/m4/libtextstyle.m4 $(ACLOCAL_DIR)/libtextstyle.m4 +endef +LIBTEXTSTYLE_POST_INSTALL_STAGING_HOOKS += LIBTEXTSTYLE_INSTALL_M4 + +define HOST_LIBTEXTSTYLE_INSTALL_M4 + $(INSTALL) -D -m 0755 $(@D)/libtextstyle/m4/libtextstyle.m4 $(ACLOCAL_HOST_DIR)/libtextstyle.m4 +endef +HOST_LIBTEXTSTYLE_POST_INSTALL_HOOKS += HOST_LIBTEXTSTYLE_INSTALL_M4 + +$(eval $(autotools-package)) +$(eval $(host-autotools-package))