Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/ocaml-cstruct/
Date: Tue, 04 Jul 2017 06:59:20
Message-Id: 1499151522.71182f821273a894cb9c960a72b33658bc7dd56d.aballier@gentoo
1 commit: 71182f821273a894cb9c960a72b33658bc7dd56d
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 4 06:58:42 2017 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 4 06:58:42 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71182f82
7
8 dev-ml/ocaml-cstruct: build only enabled targets, should fix bug #623742
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 dev-ml/ocaml-cstruct/ocaml-cstruct-3.0.2.ebuild | 16 ++++++++++++++++
13 1 file changed, 16 insertions(+)
14
15 diff --git a/dev-ml/ocaml-cstruct/ocaml-cstruct-3.0.2.ebuild b/dev-ml/ocaml-cstruct/ocaml-cstruct-3.0.2.ebuild
16 index 388db7e2542..39b192f16a3 100644
17 --- a/dev-ml/ocaml-cstruct/ocaml-cstruct-3.0.2.ebuild
18 +++ b/dev-ml/ocaml-cstruct/ocaml-cstruct-3.0.2.ebuild
19 @@ -38,6 +38,22 @@ DEPEND="
20 ${RDEPEND}
21 "
22
23 +get_targets() {
24 + local tgt="cstruct,cstruct-unix"
25 + use lwt && tgt+=",cstruct-lwt"
26 + use async && tgt+=",cstruct-async"
27 + use ppx && tgt+=",ppx_cstruct"
28 + echo "${tgt}"
29 +}
30 +
31 +src_compile() {
32 + jbuilder build -p $(get_targets) || die
33 +}
34 +
35 +src_test() {
36 + jbuilder runtest -p $(get_targets) || die
37 +}
38 +
39 oinstall() {
40 opam-installer -i \
41 --prefix="${ED}/usr" \