Skip to content

Commit

Permalink
dev-ml/dune: add dev-ml/dune
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Tupone <[email protected]>
Package-Manager: Portage-2.3.66, Repoman-2.3.11
  • Loading branch information
atupone committed Jul 25, 2019
1 parent d74d792 commit b9d5d90
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-ml/dune/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST dune-1.7.2.tar.gz 666745 BLAKE2B 2edda7273f92bcb9c20b5cb9a8eee75ad33c3ce1bd88406dbd51256373c554b5442096fb74ba990ee2fcec784c19ab55099e70385f040e1055a30c925cf50987 SHA512 2d53fb910fdf8774fc9ef5343831311d1d4007fe5ef47a5084596b98dd8c89b7a404912e959753d6a8d7eb8b8a923d6a7bc74dad2cdb2c80d26b3fa48373658c
37 changes: 37 additions & 0 deletions dev-ml/dune/dune-1.7.2.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit multiprocessing

DESCRIPTION="A composable build system for OCaml"
HOMEPAGE="https://github.com/ocaml/dune"
SRC_URI="https://github.com/ocaml/dune/archive/1.7.2.tar.gz -> ${P}.tar.gz"

LICENSE="Apache-2.0"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="test"

DEPEND="dev-lang/ocaml"
RDEPEND="${DEPEND}
!dev-ml/jbuilder"
BDEPEND=""

RESTRICT="test"

src_configure() {
ocaml configure.ml --libdir "${EPREFIX}/usr/$(get_libdir)/ocaml" || die
}

src_compile() {
ocaml bootstrap.ml || die
./boot.exe -j $(makeopts_jobs) || die
}

src_install() {
default
mv "${D}"/usr/doc "${D}"/usr/share/doc/${PF}
mv "${D}"/usr/man "${D}"/usr/share/man
}
11 changes: 11 additions & 0 deletions dev-ml/dune/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>[email protected]</email>
<name>Gentoo ML Project</name>
</maintainer>
<upstream>
<remote-id type="github">ocaml/dune</remote-id>
</upstream>
</pkgmetadata>

0 comments on commit b9d5d90

Please sign in to comment.