forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: Portage-2.3.6, Repoman-2.3.2
- Loading branch information
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST reason-1.13.5.tar.gz 6681110 SHA256 d769e15e507ae401e5f7d8e59a1c327729824dd9914d05d7fe0ee51c84afeb2f SHA512 e47836281fb36094358f746b3460ac9671782fbf51058b220f5fe2be060592db75b688c917e162345c3fdcf8822d9b7fad0483ae274a97ccf640bdd7853510a9 WHIRLPOOL 21e86a487263735af8968577f4b3dc8fb4492c9b831b24e27faf30d421e0e164342bc76661fa674c90a2bb78b911639ea12e5eb7562cb6144c6b0d414844e4fe | ||
DIST reason-2.0.0.tar.gz 6639139 SHA256 cfc2fc6416d00584047fc67eade5c6215cec5ea4c818cd7fe5b4d03d311ea3a8 SHA512 5e8fb81193de90fcf95ae39e66dab6b7638f1b6f37f7f438c3692e67de8f33667eca92e76df4968ad794e4bd02674583203e1058f1e990f3f6e87d8ce1fbbb43 WHIRLPOOL 8eb8395372aac8952bce2c0cfa58ab364cbedc46eb6f4e34ac496e95bb9729134f374cb42f59bd398f6ce9c68025e9c92259fb750381a0b11cf934b05aba1f0d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Copyright 1999-2017 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=6 | ||
|
||
DESCRIPTION="Meta Language Toolchain" | ||
HOMEPAGE="https://github.com/facebook/reason" | ||
SRC_URI="https://github.com/facebook/reason/archive/${PV}.tar.gz -> ${P}.tar.gz" | ||
|
||
LICENSE="BSD" | ||
SLOT="0/${PV}" | ||
KEYWORDS="~amd64" | ||
IUSE="+ocamlopt" | ||
|
||
DEPEND=" | ||
dev-lang/ocaml:=[ocamlopt?] | ||
dev-ml/reason-parser:= | ||
dev-ml/merlin-extend:= | ||
dev-ml/result:= | ||
dev-ml/topkg:= | ||
dev-ml/ocaml-migrate-parsetree:= | ||
dev-ml/utop:= | ||
" | ||
RDEPEND="${DEPEND}" | ||
DEPEND="${DEPEND} | ||
dev-ml/findlib | ||
dev-ml/ocamlbuild | ||
dev-ml/opam" | ||
|
||
src_compile() { | ||
emake precompile | ||
emake build | ||
} | ||
|
||
src_install() { | ||
opam-installer -i \ | ||
--prefix="${ED}/usr" \ | ||
--libdir="${D}/$(ocamlc -where)" \ | ||
--docdir="${ED}/usr/share/doc/${PF}" \ | ||
--mandir="${ED}/usr/share/man" \ | ||
${PN}.install || die | ||
} |