From patchwork Tue Dec 9 14:34:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Oudinet X-Patchwork-Id: 419084 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id F37D71400D5 for ; Wed, 10 Dec 2014 01:35:17 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id C0B5995E71; Tue, 9 Dec 2014 14:35:15 +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 Oh9xAUTDa1Cg; Tue, 9 Dec 2014 14:35:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 17EEA95ED0; Tue, 9 Dec 2014 14:35:15 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id B56AA1C2826 for ; Tue, 9 Dec 2014 14:35:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B04DE33C9D for ; Tue, 9 Dec 2014 14:35:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TIM-RW0KMG6B for ; Tue, 9 Dec 2014 14:35:11 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) by silver.osuosl.org (Postfix) with ESMTPS id D70B333B5F for ; Tue, 9 Dec 2014 14:35:10 +0000 (UTC) Received: by mail-wg0-f49.google.com with SMTP id n12so987209wgh.22 for ; Tue, 09 Dec 2014 06:35:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LVKIm2tdsDlTnoMIap9Qz7OlxbhK2rMz5abJfwez6I4=; b=w83x2KmeG/RvmHM6gV7VGrIYPcCSSzlcfIAn1eQCytcQ5xsvHr+ACa3QpLXcxnEw4X vMvJYJAjJVnDmqX5RvZgPSvsEAi6CJJCt+6FUYb7RlJteBYk4whjTxi81TgLojaMwFna Gsyv1uVw7JomDDFrcK7R8mIzsfLJ/zFqjwsn4NVNc94ThPaE6SbeDjEtSY0byNNNxS8r 1qglu2U3kE4kH9a5lRP34HPgROvtc7i1ExUDruQ/VkPXeozdkMOH8wwn3CoHy7jjyzXz OQLSUZ2o2I1XmoqB99Pq5lMePp6EEqHwkBO2erZcIOVAbdMlON3bVSF7mNLaQDo5eRlA tNUQ== X-Received: by 10.194.122.34 with SMTP id lp2mr5290057wjb.91.1418135709471; Tue, 09 Dec 2014 06:35:09 -0800 (PST) Received: from localhost.localdomain ([193.51.194.209]) by mx.google.com with ESMTPSA id d16sm2480265wib.4.2014.12.09.06.35.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Dec 2014 06:35:08 -0800 (PST) From: Johan Oudinet To: buildroot@buildroot.org Date: Tue, 9 Dec 2014 15:34:07 +0100 Message-Id: <1418135662-773-3-git-send-email-johan.oudinet@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1418135662-773-1-git-send-email-johan.oudinet@gmail.com> References: <1418135662-773-1-git-send-email-johan.oudinet@gmail.com> Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH v4 02/17] package/erlang-rebar: new host package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: "Yann E. MORIN" rebar is used to compile Erlang packages. We need host variant so as to be able to provide it to Erlang packages that do not bundle their own version, or bundle a broken version. Since this is a host-only package, used only internally, we do not provide a Kconfig option for it. Packages that need it will depend on it. Signed-off-by: Johan Oudinet [yann.morin.1998@free.fr: extract host-rebar to its own patch] Signed-off-by: "Yann E. MORIN" Cc: Arnout Vandecappelle --- Changes v2 -> v3: - fix dependencies (Arnout) - fix download location - add licencing info - add comments Signed-off-by: Johan Oudinet --- package/erlang-rebar/erlang-rebar.mk | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 package/erlang-rebar/erlang-rebar.mk diff --git a/package/erlang-rebar/erlang-rebar.mk b/package/erlang-rebar/erlang-rebar.mk new file mode 100644 index 0000000..f29eb75 --- /dev/null +++ b/package/erlang-rebar/erlang-rebar.mk @@ -0,0 +1,31 @@ +################################################################################ +# +# erlang-rebar +# +################################################################################ + +ERLANG_REBAR_VERSION = 2.5.1 + +# Upstream publishes a release, but we can not use it as it is a release of +# a generated rebar script, when we want the sources. So we have to use the +# gihub helper in this case. +ERLANG_REBAR_SITE = $(call github,rebar,rebar,$(ERLANG_REBAR_VERSION)) + +# Although the file LICENSE state Apache-2.0, a lot (if not all) the files +# in src/ bear the MIT licence. +ERLANG_LICENSE = Apache-2.0, MIT +ERLANG_LICENSE_FILES = LICENSE + +# We do not have a target variant, so just define the dependencies, +# configure and build commands for the host variant. +HOST_ERLANG_REBAR_DEPENDENCIES = host-erlang + +define HOST_ERLANG_REBAR_BUILD_CMDS + cd $(@D) && $(HOST_MAKE_ENV) $(MAKE) +endef + +define HOST_ERLANG_REBAR_INSTALL_CMDS + $(INSTALL) -m 0755 -D $(@D)/rebar $(HOST_DIR)/usr/bin/rebar +endef + +$(eval $(host-generic-package))