From patchwork Mon Feb 10 11:26:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas De Schampheleire X-Patchwork-Id: 1235785 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.138; helo=whitealder.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=G3vK9Ehq; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48GNsX4Rytz9s3x for ; Mon, 10 Feb 2020 22:26:56 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id C009984AD8; Mon, 10 Feb 2020 11:26:53 +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 lsM618x52ldj; Mon, 10 Feb 2020 11:26:52 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 4139C84789; Mon, 10 Feb 2020 11:26:52 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id D7A711BF31A for ; Mon, 10 Feb 2020 11:26:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D4C5485116 for ; Mon, 10 Feb 2020 11:26:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xl4i2ts21UlQ for ; Mon, 10 Feb 2020 11:26:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-oi1-f196.google.com (mail-oi1-f196.google.com [209.85.167.196]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 3CCD2850E0 for ; Mon, 10 Feb 2020 11:26:48 +0000 (UTC) Received: by mail-oi1-f196.google.com with SMTP id q84so8878245oic.4 for ; Mon, 10 Feb 2020 03:26:48 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=IyGzg+d0omw0Yx9gKvawQD5y8asI/6LAuV4eL96/l4Q=; b=G3vK9Ehq9c0kuHTZCo8nukIsZgxZ2Grh0b62YhYr7MMIPl+kus3rP/HjJxVDEAuoxz 3rj0gkqwBnXWrvD4AXSpSNCUuvVUlSN5NWxeoIUtKiA6h6amj/DhwFkuWCbc585U6BKE Y2xMxJ//GCgKq3OK0m9cS3HBKtf/sQtVHMKjEs85Tm+IqXxbMf6ByqC/2m3HbnjOEP3O jMWLQ7ofhjThpb2ezbdU/y1B+6u8TLJkAqgLvltmUTOQChMHVmrsYfbWmsf30DmmGCNq gbhOZKqgpKpZgG5Bc4UHZU57cf5cXt/+ZYLxAll+XUmDElSlBAQCvg+W83j3fMMPInWy 81SA== 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=IyGzg+d0omw0Yx9gKvawQD5y8asI/6LAuV4eL96/l4Q=; b=DrUFRXITvZLzeyrSsTj/ADoCFmXxl7J2ru/P7USw02pYJHiiG1KcP1fVyWL92IjthV RUhUorclYj8IpVGuKaDy2gtRtdwIovW1bhQZR6vZ9xeE0SkJIZfpEqtqhsfnWpB50aKA Iv0zIwlE7mWroYKZuDH6eNTEeaZNMd0OW4qUWCJtf7N2WodRlU4GyIRGcXEoYC+r2r87 v4LaTnhbXbYosdj+racXwGKpcWI2lZfCQhK9NIMLJ8FLieO+fVcaNQGQsP6+RlT5P6YV 7NxriyE6kaLQF3YVaxmMUffv8WSZjTe8bno4db0ZTiK4QKcKbiR2cZEhBUKGXBcd3ome RWuQ== X-Gm-Message-State: APjAAAUp90yaQgMl+TKKL1Vy5/H6Jxgrc/dbFKCZ2cdneCiXi/pOin+0 2zAXpd1K6mjLc8CRtx2pmcdR1lK+uVQ= X-Google-Smtp-Source: APXvYqxsaSIIVkT9+r0O5EzZRTo39qsx5UQZClYo83xmvGUI2omgjqFSRYCs47NNT3h/fOwAdGjW0g== X-Received: by 2002:aca:5588:: with SMTP id j130mr501316oib.122.1581334007288; Mon, 10 Feb 2020 03:26:47 -0800 (PST) Received: from localhost ([131.228.32.166]) by smtp.gmail.com with ESMTPSA id w196sm3886896oia.46.2020.02.10.03.26.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Feb 2020 03:26:46 -0800 (PST) From: Thomas De Schampheleire To: buildroot@buildroot.org Date: Mon, 10 Feb 2020 12:26:30 +0100 Message-Id: <20200210112636.8155-8-patrickdepinguin@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200210112636.8155-1-patrickdepinguin@gmail.com> References: <20200210112636.8155-1-patrickdepinguin@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCHv2 07/12] package/chartjs: 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: Thomas De Schampheleire , Joeri Barbarien Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Joeri Barbarien Note: even though the Chart.js developers make specific tarballs on GitHub (i.e. not simply 'source code' tarballs), they cannot be used in Buildroot because their names do not encode a version number, e.g. 'Chart.js.zip'. This means that on upgrades, the same tarball name would have different contents and thus a different hash. Signed-off-by: Joeri Barbarien Signed-off-by: Thomas De Schampheleire --- DEVELOPERS | 1 + package/Config.in | 1 + package/chartjs/Config.in | 7 +++++++ package/chartjs/chartjs.hash | 3 +++ package/chartjs/chartjs.mk | 21 +++++++++++++++++++++ 5 files changed, 33 insertions(+) create mode 100644 package/chartjs/Config.in create mode 100644 package/chartjs/chartjs.hash create mode 100644 package/chartjs/chartjs.mk diff --git a/DEVELOPERS b/DEVELOPERS index 30bf7c2b18..54120f8142 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2372,6 +2372,7 @@ F: package/civetweb/ N: Thomas De Schampheleire F: docs/manual/ F: package/cereal/ +F: package/chartjs/ F: package/libtelnet/ F: package/opkg-utils/ F: package/perl-convert-asn1/ diff --git a/package/Config.in b/package/Config.in index 6c55a7471d..813da4efff 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1513,6 +1513,7 @@ menu "External AngularJS plugins" endmenu endif source "package/bootstrap/Config.in" + source "package/chartjs/Config.in" source "package/duktape/Config.in" source "package/explorercanvas/Config.in" source "package/flot/Config.in" diff --git a/package/chartjs/Config.in b/package/chartjs/Config.in new file mode 100644 index 0000000000..73cc9b7750 --- /dev/null +++ b/package/chartjs/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_CHARTJS + bool "chartjs" + help + Chart.js, a simple yet flexible JavaScript charting library + for designers & developers + + https://www.chartjs.org/ diff --git a/package/chartjs/chartjs.hash b/package/chartjs/chartjs.hash new file mode 100644 index 0000000000..d2426ea614 --- /dev/null +++ b/package/chartjs/chartjs.hash @@ -0,0 +1,3 @@ +# Locally computed: +sha256 8079d8fd39131fcfaec33f1c7799412bcf8e051e25b10bd6e37fc16159417aa1 chartjs-v2.9.3.tar.gz +sha256 7b43caae91f31b18dc81fae6e0f7aa1acbecaa6d84e3249905cbe15308307d67 LICENSE.md diff --git a/package/chartjs/chartjs.mk b/package/chartjs/chartjs.mk new file mode 100644 index 0000000000..171e0a4a7c --- /dev/null +++ b/package/chartjs/chartjs.mk @@ -0,0 +1,21 @@ +################################################################################ +# +# chartjs +# +################################################################################ + +CHARTJS_VERSION = v2.9.3 +CHARTJS_SITE = $(call github,chartjs,Chart.js,$(CHARTJS_VERSION)) +CHARTJS_LICENSE = MIT +CHARTJS_LICENSE_FILES = LICENSE.md + +define CHARTJS_INSTALL_TARGET_CMDS + $(INSTALL) -m 0644 -D $(@D)/dist/Chart.min.css \ + $(TARGET_DIR)/var/www/chartjs/css/Chart.css + $(INSTALL) -m 0644 -D $(@D)/dist/Chart.min.js \ + $(TARGET_DIR)/var/www/chartjs/js/Chart.js + $(INSTALL) -m 0644 -D $(@D)/dist/Chart.bundle.min.js \ + $(TARGET_DIR)/var/www/chartjs/js/Chart.bundle.js +endef + +$(eval $(generic-package))