public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alexis Ballier" <aballier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/cppo/
Date: Tue, 25 Apr 2017 17:32:26 +0000 (UTC)	[thread overview]
Message-ID: <1493141537.38cf9c02c6ae0043bbac15191fd38c434b0aee24.aballier@gentoo> (raw)

commit:     38cf9c02c6ae0043bbac15191fd38c434b0aee24
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Tue Apr 25 16:34:19 2017 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Tue Apr 25 17:32:17 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38cf9c02

dev-ml/cppo: add ocamlopt useflag

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 dev-ml/cppo/cppo-1.5.0.ebuild | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/dev-ml/cppo/cppo-1.5.0.ebuild b/dev-ml/cppo/cppo-1.5.0.ebuild
index 933faf0db61..39915b69c08 100644
--- a/dev-ml/cppo/cppo-1.5.0.ebuild
+++ b/dev-ml/cppo/cppo-1.5.0.ebuild
@@ -13,16 +13,22 @@ SLOT="0/${PV}"
 LICENSE="BSD"
 KEYWORDS="~amd64 ~arm ~ppc ~x86"
 
-IUSE="examples"
+IUSE="examples +ocamlopt"
 
-RDEPEND=">=dev-lang/ocaml-3.12:=
-	dev-ml/ocamlbuild:="
+RDEPEND="
+	>=dev-lang/ocaml-3.12:=[ocamlopt?]
+	dev-ml/ocamlbuild:=[ocamlopt?]"
 DEPEND="${RDEPEND}"
 
+src_compile() {
+	use ocamlopt || sed -e 's/ocamlbuild_cppo.cmx/ocamlbuild_cppo.cmo/' -i Makefile
+	emake BEST="$(usex ocamlopt '.native' '.byte')"
+}
+
 src_install() {
 	findlib_src_preinst
 	mkdir -p "${ED}"/usr/bin
-	emake PREFIX="${ED}"/usr install
+	emake PREFIX="${ED}"/usr BEST="$(usex ocamlopt '.native' '.byte')" install
 	dodoc README.md Changes
 	if use examples ; then
 		dodoc -r examples


             reply	other threads:[~2017-04-25 17:32 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-25 17:32 Alexis Ballier [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-05-02 17:44 [gentoo-commits] repo/gentoo:master commit in: dev-ml/cppo/ Alfredo Tupone
2023-02-25 23:11 Sam James
2022-09-06 15:39 Maciej Barć
2021-10-06  1:02 Sam James
2021-03-13 12:28 Sam James
2021-03-13 12:27 Sam James
2021-02-16 12:34 Sam James
2021-02-12 22:20 Sam James
2021-02-11  6:31 Sam James
2021-02-11  6:26 Sam James
2021-02-10 18:53 Sam James
2021-02-10 16:33 Sam James
2021-01-24 17:26 Sam James
2021-01-24 16:12 Sam James
2021-01-24 16:06 Sam James
2020-12-17 12:08 Sam James
2020-12-13 12:03 Sergei Trofimovich
2020-12-03  2:01 Thomas Deutschmann
2020-10-28  3:36 Sam James
2020-10-24  0:38 Sam James
2020-10-15 12:51 Mark Wright
2017-07-09  8:28 Alexis Ballier
2017-06-19 16:57 Alexis Ballier
2017-04-25 17:32 Alexis Ballier
2017-04-05 10:22 Michael Weber
2017-04-05  9:51 Michael Weber
2017-03-15 14:26 Alexis Ballier
2017-02-23 11:57 Michael Weber
2017-02-23 11:57 Michael Weber
2017-02-16 17:26 Agostino Sarubbo
2017-02-16 13:25 Agostino Sarubbo
2017-01-24 11:07 Alexis Ballier
2016-11-10 15:18 Alexis Ballier
2016-08-19 14:51 Alexis Ballier
2016-04-22 13:01 Alexis Ballier
2016-03-05 11:24 Alexis Ballier
2016-03-01 18:47 Alexis Ballier
2016-02-06 16:25 Alexis Ballier
2016-02-06 16:25 Alexis Ballier
2015-09-21  9:41 Alexis Ballier
2015-09-21  9:41 Alexis Ballier
2015-09-14 12:11 Alexis Ballier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1493141537.38cf9c02c6ae0043bbac15191fd38c434b0aee24.aballier@gentoo \
    --to=aballier@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox