Skip to content

Commit

Permalink
dev-ml/fieldslib: use proper install method
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.27
Signed-off-by: Alexis Ballier <[email protected]>
  • Loading branch information
aballier committed Feb 5, 2016
1 parent fe1e505 commit bdaf9fb
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions dev-ml/fieldslib/fieldslib-113.24.00.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,32 @@ OASIS_BUILD_DOCS=1

inherit oasis

MY_P=${PN/-/_}-${PV}
DESCRIPTION="Folding over record fields"
HOMEPAGE="http://www.janestreet.com/ocaml"
SRC_URI="http://ocaml.janestreet.com/ocaml-core/${PV%.*}/files/${MY_P}.tar.gz"
SRC_URI="http://ocaml.janestreet.com/ocaml-core/${PV%.*}/files/${P}.tar.gz"

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

DEPEND=""
RDEPEND="${DEPEND}"
RDEPEND=""
DEPEND="${RDEPEND} dev-ml/opam"

DOCS=( "CHANGES.md" )
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
}

0 comments on commit bdaf9fb

Please sign in to comment.