From patchwork Fri Feb 14 12:48:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Havelange X-Patchwork-Id: 1238013 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=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=essensium.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=essensium.com header.i=@essensium.com header.a=rsa-sha256 header.s=google header.b=PH36AclZ; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48JtVS3wbZz9s29 for ; Fri, 14 Feb 2020 23:49:04 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 0A5BB864BD; Fri, 14 Feb 2020 12:49:02 +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 Mun2far9oiqE; Fri, 14 Feb 2020 12:49:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 5489F860F4; Fri, 14 Feb 2020 12:49:01 +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 3E1741BF3A0 for ; Fri, 14 Feb 2020 12:48:45 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3B11F860F4 for ; Fri, 14 Feb 2020 12:48:45 +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 Nmj1t9Up-a1p for ; Fri, 14 Feb 2020 12:48:44 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by fraxinus.osuosl.org (Postfix) with ESMTPS id EFB0485E91 for ; Fri, 14 Feb 2020 12:48:43 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id c9so10781181wrw.8 for ; Fri, 14 Feb 2020 04:48:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=essensium.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JaeifsTO8hNPvRrhq78KLuwRXa5pEQrWhtndXJKtfk4=; b=PH36AclZ+I91yl3TwTwfpXm4/LjqURc+A7hnKeypsdmp66Z0fctXEqSKFCk2yFHwmt gJKPC8s0NDps9tPmmEY3EAe8R1kwE3PdoWP0ailA4BmaC1II9PVIXHd0tzkcjhtaImJK doOOq6GVYToRWWseG5IzJQgrwcJxSUMSN/6AcJRmqGFTyzcRJdaNg0XyUuZNDh/jVDrw ip0A4jjApuMrlZ/b7I4ZAo63/Tx9grsDDYjdQX+ZNqQ8/LQHjI4qspnxhPBzG8iDfYGU 4eaXS//0w320GMx/pUjvh/gaAikC7ahJ4BFezV0zznyvo70LZwLZ2x1v5iDuLeocM0cY yScw== 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=JaeifsTO8hNPvRrhq78KLuwRXa5pEQrWhtndXJKtfk4=; b=m1UlPeN52Smwnbc8NU+lU+MDmhFZaYvArR9P+O+oA6GK5g9KLhqCHDVv6hG/9NQ9/h ZFOQm62NnkVVfJHvSeaurthFbwU25RXoF3YsFnl/Ym4UkA+K2GjoCRDJwjfZmtUkHk5c hUvmnBlBY7UCFYeumu1wuIubo2A+5KreaVipNBD8qGEND48XrwLniNW0V2A+xcz100rV IAIMow+vHdLgiVsM6+chFSeAWLM7GYmS3AT4Jb2YujvOxGjka8rA7Ixs9fuIC3VYZcrc v7VmrQpIuCcwWiJ71d6COd1wvLn1f4qI7AZklwVn+B/SxZU7BLKKWoG21BROB5rONtBW KM6g== X-Gm-Message-State: APjAAAWIekDUhTz2gV7zpS3rOKG081tWZ7tinUyifLdUvDkUdrjeWI3Q yhU2P/BcSYp3dZ1O7edrXk3WAEw2oA7lCg== X-Google-Smtp-Source: APXvYqyoq7GmCJGf9FVbX7/UY8/78NEcoeUMChAaMUFWTG88gG948AdK6ssaUIi4BbzlIC0VwTUpZA== X-Received: by 2002:adf:90cb:: with SMTP id i69mr3998534wri.205.1581684522145; Fri, 14 Feb 2020 04:48:42 -0800 (PST) Received: from ph-ThinkPad-E560.local.ess-mail.com (ip-188-118-3-185.reverse.destiny.be. [188.118.3.185]) by smtp.gmail.com with ESMTPSA id o4sm6888928wrx.25.2020.02.14.04.48.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Feb 2020 04:48:41 -0800 (PST) From: Patrick Havelange To: buildroot@buildroot.org Date: Fri, 14 Feb 2020 13:48:20 +0100 Message-Id: <20200214124827.30767-3-patrick.havelange@essensium.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214124827.30767-1-patrick.havelange@essensium.com> References: <20200214124827.30767-1-patrick.havelange@essensium.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH v2 03/10] package/ripgrep: convert to cargo infrastructure 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 , Patrick Havelange , Sam Voss , "Yann E . MORIN" , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Patrick Havelange --- package/ripgrep/ripgrep.mk | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/package/ripgrep/ripgrep.mk b/package/ripgrep/ripgrep.mk index 832c076f26..97e9e2ce5f 100644 --- a/package/ripgrep/ripgrep.mk +++ b/package/ripgrep/ripgrep.mk @@ -9,25 +9,4 @@ RIPGREP_SITE = $(call github,burntsushi,ripgrep,$(RIPGREP_VERSION)) RIPGREP_LICENSE = MIT RIPGREP_LICENSE_FILES = LICENSE-MIT -RIPGREP_DEPENDENCIES = host-rustc -RIPGREP_CARGO_ENV = CARGO_HOME=$(HOST_DIR)/share/cargo -RIPGREP_CARGO_MODE = $(if $(BR2_ENABLE_DEBUG),debug,release) - -RIPGREP_BIN_DIR = target/$(RUSTC_TARGET_NAME)/$(RIPGREP_CARGO_MODE) - -RIPGREP_CARGO_OPTS = \ - --$(RIPGREP_CARGO_MODE) \ - --target=$(RUSTC_TARGET_NAME) \ - --manifest-path=$(@D)/Cargo.toml - -define RIPGREP_BUILD_CMDS - $(TARGET_MAKE_ENV) $(RIPGREP_CARGO_ENV) \ - cargo build $(RIPGREP_CARGO_OPTS) -endef - -define RIPGREP_INSTALL_TARGET_CMDS - $(INSTALL) -D -m 0755 $(@D)/$(RIPGREP_BIN_DIR)/rg \ - $(TARGET_DIR)/usr/bin/rg -endef - -$(eval $(generic-package)) +$(eval $(cargo-package))