blob: 3669970e552efee2319157933cffef9793c00937 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# -*-makefile-*-
#
# Copyright (C) 2017 by Juergen Borleis <jbe@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
# 2019-May-05, Daniel Arnold, Updated to yarn 1.15.2
# 2020-January-09, Björn Esser, Updated to yarn 1.21.1
#
# We provide this package
#
HOST_PACKAGES-$(PTXCONF_HOST_YARN) += host-yarn
#
# Paths and names
#
HOST_YARN_VERSION := 1.21.1
HOST_YARN_MD5 := cf49e663e0f56aa15f1740c77354ebe2
HOST_YARN := yarn-$(HOST_YARN_VERSION)
HOST_YARN_SUFFIX := js
HOST_YARN_URL := https://github.com/yarnpkg/yarn/releases/download/v$(HOST_YARN_VERSION)/$(HOST_YARN).$(HOST_YARN_SUFFIX)
HOST_YARN_SOURCE := $(SRCDIR)/$(HOST_YARN).$(HOST_YARN_SUFFIX)
HOST_YARN_LICENSE := BSD-2-Clause
# ----------------------------------------------------------------------------
# Extract (nothing to be done here)
# ----------------------------------------------------------------------------
$(STATEDIR)/host-yarn.extract:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Prepare (nothing to be done here)
# ----------------------------------------------------------------------------
$(STATEDIR)/host-yarn.prepare:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Compile (nothing to be done here)
# ----------------------------------------------------------------------------
$(STATEDIR)/host-yarn.compile:
@$(call targetinfo)
@$(call touch)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
$(STATEDIR)/host-yarn.install:
@$(call targetinfo)
@$(call world/execute, HOST_YARN, \
install -vDm 0755 $(HOST_YARN_SOURCE) \
$(HOST_YARN_PKGDIR)/bin/yarn)
@$(call touch)
# vim: syntax=make
|