From patchwork Wed Jun 30 23:47:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFwaGHDq2wgTcOpbG90dGU=?= X-Patchwork-Id: 1499123 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.137; helo=smtp4.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=mind.be header.i=@mind.be header.a=rsa-sha256 header.s=google header.b=cotkhIyV; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GFdLp3djDz9sWk for ; Thu, 1 Jul 2021 09:47:46 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id D0F9E4160E; Wed, 30 Jun 2021 23:47:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EsNn-jSYV2C9; Wed, 30 Jun 2021 23:47:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id DB81541611; Wed, 30 Jun 2021 23:47:41 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 8320D1BF381 for ; Wed, 30 Jun 2021 23:47:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 724B1607C9 for ; Wed, 30 Jun 2021 23:47:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=mind.be Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x3hGCRSmgsJW for ; Wed, 30 Jun 2021 23:47:29 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by smtp3.osuosl.org (Postfix) with ESMTPS id 9975F607E2 for ; Wed, 30 Jun 2021 23:47:29 +0000 (UTC) Received: by mail-ej1-x629.google.com with SMTP id bu12so7273191ejb.0 for ; Wed, 30 Jun 2021 16:47:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mind.be; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8yvvOpEGvdg18dD+3LwuQS8QCMxVWq9fi7jZhG7eW+U=; b=cotkhIyVmlOWOUM99vg4GaQO9R0X71CTd6jROvcAlZfhfuRbi++jCsYwkSeu3EF82W XdYM1zKBAfKeTqIjzxWBd78vn2cvEIlgYLot+j/W/MedJiuIV6WRS1YviBuceFMEG/QT TEL7Oz+Ju/pEvRHouBZne3l3/GtR9CwG7dojc0V3S1N8AhT69x4wRvAADea0fWFYbFM7 5cxbF6PdQi+9Iddi0TFxQuVN/TTzmIhHlFJ0e48erwaMN3XfnBBsa5KaHa8+WkWOal20 9IlIEP8TnwWUgtbZvGSYUMbZkRO+WfImku2r+ztD8qX215QOR5U7La7Wv60YbOLKNtZf 57fQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=8yvvOpEGvdg18dD+3LwuQS8QCMxVWq9fi7jZhG7eW+U=; b=k5c3DCYh3tl7E/Cn2NBWlhAJETwtjCoJyyUIf1I5MKw8cbiLFZGjiQxMWzz30CiQoT 635mKToYXRyEewC4P0TeZrFQ5NA+YmRDUk5w8opuYbGNilt//jMWfRAkAMEgmU1aGFEO DjqlkS0SYtJTyCsOSn2EVHcml1yA0JVkPOajrczFoyAzI+mqScElJ+EdjvQ+SLDBIllm npE7vx3KqBwhGxO+S++gyNidREzuClW9glnog6hTi0CmBdWTakTGPy0Ci4BQrRYNk6nD YbXjjoUGNmaEQWQZnCyoUC0iEdcSQRrZFhM1utt3CJNb8hVLw5sMQ5nswolsbeHqS5sw /X5g== X-Gm-Message-State: AOAM531CbWTByYQtqmHaNZgfkO+rsIDte9C8goUCRpXGAdZfEVb+OdHF OIUJF+GuoThu0oO6Laez90MaAoG4p+SDyg== X-Google-Smtp-Source: ABdhPJwJao4LMi1dpfRV0eZQtBqLfchOJ00BSbDbrtMjfEZ0/SgqkfDjpggo7Z1fQMHamwaSfYpWpA== X-Received: by 2002:a17:906:f285:: with SMTP id gu5mr37983023ejb.226.1625096847640; Wed, 30 Jun 2021 16:47:27 -0700 (PDT) Received: from localhost.localdomain ([109.130.26.5]) by smtp.gmail.com with ESMTPSA id mm27sm10051349ejb.67.2021.06.30.16.47.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jun 2021 16:47:27 -0700 (PDT) From: =?utf-8?b?UmFwaGHDq2wgTcOpbG90dGU=?= To: buildroot@buildroot.org Date: Thu, 1 Jul 2021 01:47:14 +0200 Message-Id: <20210630234717.21742-2-raphael.melotte@mind.be> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210630234717.21742-1-raphael.melotte@mind.be> References: <20210630234717.21742-1-raphael.melotte@mind.be> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/4] package/gumbo-parser: 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: =?utf-8?b?UmFwaGHDq2wgTcOpbG90dGU=?= , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Gumbo is an implementation of the HTML5 parsing algorithm implemented as a pure C99 library with no outside dependencies. Signed-off-by: Raphaël Mélotte --- DEVELOPERS | 1 + package/Config.in | 1 + package/gumbo-parser/Config.in | 10 ++++++++++ package/gumbo-parser/gumbo-parser.hash | 5 +++++ package/gumbo-parser/gumbo-parser.mk | 18 ++++++++++++++++++ 5 files changed, 35 insertions(+) create mode 100644 package/gumbo-parser/Config.in create mode 100644 package/gumbo-parser/gumbo-parser.hash create mode 100644 package/gumbo-parser/gumbo-parser.mk diff --git a/DEVELOPERS b/DEVELOPERS index c1c32466be..89049bdbad 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2262,6 +2262,7 @@ N: Ramon Fried F: package/bitwise/ N: Raphaël Mélotte +F: package/gumbo-parser/ F: package/jbig2dec/ F: package/mupdf/ F: package/python-boto3/ diff --git a/package/Config.in b/package/Config.in index 22947edf2c..ab299bc2ae 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1901,6 +1901,7 @@ menu "Other" source "package/gobject-introspection/Config.in" source "package/gsl/Config.in" source "package/gtest/Config.in" + source "package/gumbo-parser/Config.in" source "package/jemalloc/Config.in" source "package/lapack/Config.in" source "package/libabseil-cpp/Config.in" diff --git a/package/gumbo-parser/Config.in b/package/gumbo-parser/Config.in new file mode 100644 index 0000000000..04bb2294bb --- /dev/null +++ b/package/gumbo-parser/Config.in @@ -0,0 +1,10 @@ +config BR2_PACKAGE_GUMBO_PARSER + bool "gumbo-parser" + help + Gumbo is an implementation of the HTML5 parsing algorithm + implemented as a pure C99 library with no outside + dependencies. It's designed to serve as a building block for + other tools and libraries such as linters, validators, + templating languages, and refactoring and analysis tools. + + https://github.com/google/gumbo-parser diff --git a/package/gumbo-parser/gumbo-parser.hash b/package/gumbo-parser/gumbo-parser.hash new file mode 100644 index 0000000000..c4af33072c --- /dev/null +++ b/package/gumbo-parser/gumbo-parser.hash @@ -0,0 +1,5 @@ +# Locally computed: +sha256 28463053d44a5dfbc4b77bcf49c8cee119338ffa636cc17fc3378421d714efad gumbo-parser-0.10.1.tar.gz + +# Hash for license files: +sha256 c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 COPYING diff --git a/package/gumbo-parser/gumbo-parser.mk b/package/gumbo-parser/gumbo-parser.mk new file mode 100644 index 0000000000..25d12033c6 --- /dev/null +++ b/package/gumbo-parser/gumbo-parser.mk @@ -0,0 +1,18 @@ +################################################################################ +# +# gumbo-parser +# +################################################################################ + +GUMBO_PARSER_VERSION = 0.10.1 +GUMBO_PARSER_SITE = $(call github,google,gumbo-parser,v$(GUMBO_PARSER_VERSION)) +GUMBO_PARSER_LICENSE = Apache-2.0 +GUMBO_PARSER_LICENSE_FILES = COPYING +GUMBO_PARSER_INSTALL_STAGING = YES + +define GUMBO_PARSER_RUN_AUTOGEN + cd $(@D) && PATH=$(BR_PATH) ./autogen.sh +endef +GUMBO_PARSER_PRE_CONFIGURE_HOOKS += GUMBO_PARSER_RUN_AUTOGEN + +$(eval $(autotools-package))