Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/num/files/, dev-ml/num/
Date: Thu, 21 May 2020 17:04:39
Message-Id: 1590080649.42825e870a32b5f52e4266f75bbc313129403c90.tupone@gentoo
1 commit: 42825e870a32b5f52e4266f75bbc313129403c90
2 Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 21 17:04:09 2020 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Thu May 21 17:04:09 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42825e87
7
8 dev-ml/num: use CFLAGS
9
10 Closes: https://bugs.gentoo.org/723748
11 Package-Manager: Portage-2.3.99, Repoman-2.3.22
12 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
13
14 dev-ml/num/files/num-1.3-cflags.patch | 11 +++++++++++
15 dev-ml/num/num-1.3.ebuild | 8 ++++++++
16 2 files changed, 19 insertions(+)
17
18 diff --git a/dev-ml/num/files/num-1.3-cflags.patch b/dev-ml/num/files/num-1.3-cflags.patch
19 new file mode 100644
20 index 00000000000..771455c4f72
21 --- /dev/null
22 +++ b/dev-ml/num/files/num-1.3-cflags.patch
23 @@ -0,0 +1,11 @@
24 +--- a/src/Makefile 2020-05-21 18:54:31.176399032 +0200
25 ++++ b/src/Makefile 2020-05-21 18:55:27.881498310 +0200
26 +@@ -65,7 +65,7 @@
27 + %.cmx: %.ml
28 + $(OCAMLOPT) $(CAMLOPTFLAGS) -c $*.ml
29 + %.$(O): %.c
30 +- $(OCAMLC) -ccopt -DBNG_ARCH_$(BNG_ARCH) -c $*.c
31 ++ $(OCAMLC) -ccopt "-DBNG_ARCH_$(BNG_ARCH) $(CFLAGS)" -c $*.c
32 +
33 + # Legacy installation: files go into OCaml's stdlib directory; only META
34 + # is installed via findlib
35
36 diff --git a/dev-ml/num/num-1.3.ebuild b/dev-ml/num/num-1.3.ebuild
37 index aaa82b73caa..8cea1449708 100644
38 --- a/dev-ml/num/num-1.3.ebuild
39 +++ b/dev-ml/num/num-1.3.ebuild
40 @@ -19,6 +19,14 @@ DEPEND=">=dev-lang/ocaml-4.09.0[ocamlopt]
41 RDEPEND="${DEPEND}"
42 BDEPEND="${DEPEND}"
43
44 +PATCHES=(
45 + "${FILESDIR}"/${P}-cflags.patch
46 +)
47 +
48 +src_compile() {
49 + emake CFLAGS="${CFLAGS}"
50 +}
51 +
52 src_install() {
53 findlib_src_preinst
54 OCAMLPATH="${OCAMLFIND_DESTDIR}" emake install DESTDIR="${D}"