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.2.28 Signed-off-by: Alexis Ballier <[email protected]>
- Loading branch information
Showing
2 changed files
with
46 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 bin_prot-113.24.00.tar.gz 278825 SHA256 d6124d8a3033680076b5a6787b9e77af6840503406c4de375b19c754579fd97f SHA512 1139dc3d3456f85c7b6514fc513c5e10a551c2a4a0e245793c8e731204edea5d9a5b5a326eed38b8169a1b9f3c00e761f8a3070c62827c53fe1d894f9d6aad52 WHIRLPOOL 375dceee9cea0ae22dd30d414f97c9282ab160267bfe53c3b848e0876a054c0be64cde3a7bf6b34d6df7f6a3cbc16b999368f889093b5cf7e0c11cad4af1b93c | ||
DIST bin_prot-113.33.00.tar.gz 280362 SHA256 51cac973cce539e6ce3dfbafbe9dc631283d43b121e546c541b0578ca3213f5c SHA512 58772b0f56f6d4a09ded3a77d9f0b2e674b27ef387fb732bf682cd58cabc0c72d1dca0238d71b69f9576cc3105b41464a543154ea20854b20e8ed31e77599c09 WHIRLPOOL e652fc32f9de7ac0ecfdb3190eb54220ada631807907c17138da69f5a80d1d8ac4da1ff6b0bea8424e148a164e36d494dee3f64511572ef130089ad71db561aa |
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,45 @@ | ||
# Copyright 1999-2015 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=5 | ||
|
||
OASIS_BUILD_TESTS=1 | ||
OASIS_BUILD_DOCS=1 | ||
|
||
inherit oasis | ||
|
||
MY_P=${PN/-/_}-${PV} | ||
DESCRIPTION="A binary protocol generator" | ||
HOMEPAGE="http://ocaml.janestreet.com/?q=node/13" | ||
SRC_URI="http://ocaml.janestreet.com/ocaml-core/${PV%.*}/files/${MY_P}.tar.gz" | ||
|
||
LICENSE="Apache-2.0" | ||
SLOT="0/${PV}" | ||
KEYWORDS="~amd64" | ||
IUSE="doc" | ||
|
||
RDEPEND=">=dev-ml/type-conv-109.28.00:=" | ||
DEPEND="${RDEPEND} | ||
dev-ml/opam | ||
test? ( >=dev-ml/ounit-1.1.2 )" | ||
|
||
S="${WORKDIR}/${MY_P}" | ||
|
||
src_configure() { | ||
emake setup.exe | ||
OASIS_SETUP_COMMAND="./setup.exe" oasis_src_configure | ||
} | ||
|
||
src_compile() { | ||
emake | ||
} | ||
|
||
src_install() { | ||
opam-installer -i \ | ||
--prefix="${ED}/usr" \ | ||
--libdir="${D}/$(ocamlc -where)" \ | ||
--docdir="${ED}/usr/share/doc/${PF}" \ | ||
${PN/-/_}.install || die | ||
dodoc CHANGES.md README.md | ||
} |