dev-ml/ppx_tools: add ocamlopt useflag, bug #624170
authorAlexis Ballier <aballier@gentoo.org>
Fri, 7 Jul 2017 20:05:58 +0000 (22:05 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Fri, 7 Jul 2017 20:06:12 +0000 (22:06 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

dev-ml/ppx_tools/ppx_tools-5.0.4.03.0.ebuild
dev-ml/ppx_tools/ppx_tools-5.0.4.05.0.ebuild

index 752f91c602a7ce174156b1aa9a37730547135ee0..b77cef7d6d739047428a9ae687b6dc22f0de1a45 100644 (file)
@@ -13,9 +13,9 @@ SRC_URI="https://github.com/alainfrisch/ppx_tools/archive/${MY_PV}.tar.gz -> ${P
 LICENSE="MIT"
 SLOT="0/${PV}"
 KEYWORDS="~amd64 ~arm ~arm64 ~ppc"
-IUSE=""
+IUSE="+ocamlopt"
 
-DEPEND=">=dev-lang/ocaml-4.03.0:="
+DEPEND=">=dev-lang/ocaml-4.03.0:=[ocamlopt?]"
 RDEPEND="${DEPEND}"
 S="${WORKDIR}/${PN}-$(replace_version_separator 2 '-')"
 
@@ -24,7 +24,7 @@ src_prepare() {
 }
 
 src_compile() {
-       emake -j1
+       emake -j1 $(usex ocamlopt "" "ARCH=none")
 }
 
 src_install() {
index 4a923db8275d48d731b3faca36e451aeb9e71679..2ec6b114e829006a10b7740157bf2a534ac9ff89 100644 (file)
@@ -13,14 +13,14 @@ SRC_URI="https://github.com/alainfrisch/ppx_tools/archive/${MY_PV}.tar.gz -> ${P
 LICENSE="MIT"
 SLOT="0/${PV}"
 KEYWORDS="~amd64 ~arm ~arm64 ~ppc"
-IUSE=""
+IUSE="+ocamlopt"
 
-DEPEND=">=dev-lang/ocaml-4.05_beta:="
+DEPEND=">=dev-lang/ocaml-4.05_beta:=[ocamlopt?]"
 RDEPEND="${DEPEND}"
 S="${WORKDIR}/${PN}-$(replace_version_separator 2 '-')"
 
 src_compile() {
-       emake -j1
+       emake -j1 $(usex ocamlopt "" "ARCH=none")
 }
 
 src_install() {