You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.1 KiB
58 lines
1.1 KiB
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
9 years ago
|
|
||
|
EAPI=5
|
||
|
|
||
|
inherit eutils
|
||
|
|
||
|
DESCRIPTION="A source-based package manager for OCaml"
|
||
|
HOMEPAGE="http://opam.ocaml.org/"
|
||
|
LICENSE="LGPL-3-with-linking-exception"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64"
|
||
|
IUSE=""
|
||
|
|
||
|
if [[ ${PV} != 9999 ]]; then
|
||
|
SRC_URI="https://github.com/ocaml/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
else
|
||
|
inherit git-r3
|
||
|
EGIT_REPO_URI="https://github.com/ocaml/opam.git"
|
||
|
fi
|
||
|
|
||
|
DEPEND="dev-lang/ocaml:=
|
||
|
|| ( net-misc/wget net-misc/curl )
|
||
|
dev-ml/extlib:=
|
||
|
dev-ml/ocaml-re:=
|
||
|
dev-ml/ocamlgraph:=
|
||
|
dev-ml/cmdliner:=
|
||
|
dev-ml/cudf:=
|
||
8 years ago
|
>=dev-ml/dose3-4:=
|
||
9 years ago
|
dev-ml/uutf:=
|
||
|
dev-ml/jsonm:=
|
||
|
"
|
||
|
RDEPEND="${DEPEND}
|
||
|
dev-ml/findlib
|
||
|
"
|
||
|
|
||
8 years ago
|
src_prepare() {
|
||
8 years ago
|
epatch \
|
||
|
"${FILESDIR}/0001-Port-to-Dose3-4.0.1.patch" \
|
||
|
"${FILESDIR}/no-insecure.patch"
|
||
8 years ago
|
}
|
||
|
|
||
9 years ago
|
src_compile() {
|
||
|
emake -j1
|
||
|
cd doc
|
||
|
emake man
|
||
|
}
|
||
|
|
||
|
src_test() {
|
||
|
EMAIL=foo@bar.com emake -j1 tests
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
emake DESTDIR="${D}" OPAMINSTALLER_FLAGS="--prefix=\"${ED}/usr\" --libdir=\"${D}/$(ocamlc -where)\"" libinstall
|
||
|
}
|