1 |
commit: 8072397d1373efa6a3bf32fccb08a3a71dc5c6cf |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 8 09:55:32 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 8 09:58:15 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8072397d |
7 |
|
8 |
dev-util/shards: handle user's LDFLAGS |
9 |
|
10 |
Reported-by: Agostino Sarubbo |
11 |
Closes: https://bugs.gentoo.org/736374 |
12 |
Package-Manager: Portage-3.0.1, Repoman-2.3.23 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
dev-util/shards/shards-0.12.0-r1.ebuild | 46 +++++++++++++++++++++++++++++++++ |
16 |
1 file changed, 46 insertions(+) |
17 |
|
18 |
diff --git a/dev-util/shards/shards-0.12.0-r1.ebuild b/dev-util/shards/shards-0.12.0-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..fca8719df78 |
21 |
--- /dev/null |
22 |
+++ b/dev-util/shards/shards-0.12.0-r1.ebuild |
23 |
@@ -0,0 +1,46 @@ |
24 |
+# Copyright 1999-2020 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+ |
29 |
+inherit multiprocessing toolchain-funcs |
30 |
+ |
31 |
+CRYSTAL_MOLINILLO_PV=0.1.0 |
32 |
+CRYSTAL_MOLINILLO_P=crystal-molinillo-${CRYSTAL_MOLINILLO_PV} |
33 |
+ |
34 |
+DESCRIPTION="Dependency manager for the Crystal language" |
35 |
+HOMEPAGE="https://github.com/crystal-lang/shards" |
36 |
+SRC_URI=" |
37 |
+ https://github.com/crystal-lang/shards/archive/v${PV}.tar.gz -> ${P}.tar.gz |
38 |
+ https://github.com/crystal-lang/crystal-molinillo/archive/v${CRYSTAL_MOLINILLO_PV}.tar.gz -> ${CRYSTAL_MOLINILLO_P}.tar.gz |
39 |
+" |
40 |
+ |
41 |
+LICENSE="Apache-2.0" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64" |
44 |
+ |
45 |
+DEPEND=" |
46 |
+ >dev-lang/crystal-0.11.1[yaml] |
47 |
+" |
48 |
+RDEPEND="${DEPEND}" |
49 |
+ |
50 |
+RESTRICT=test # missing files in tarball |
51 |
+ |
52 |
+src_prepare() { |
53 |
+ default |
54 |
+ |
55 |
+ # bundle crystal-molinillo to bootstrap 'shards' |
56 |
+ mkdir -p lib || die |
57 |
+ ln -s ../../${CRYSTAL_MOLINILLO_P} lib/molinillo || die |
58 |
+ |
59 |
+ tc-export CC |
60 |
+} |
61 |
+ |
62 |
+src_compile() { |
63 |
+ emake release=1 FLAGS="--link-flags=\"${LDFLAGS}\" --verbose --threads $(makeopts_jobs)" |
64 |
+} |
65 |
+ |
66 |
+src_install() { |
67 |
+ dobin bin/${PN} |
68 |
+ dodoc README.md |
69 |
+} |