Skip to content

Instantly share code, notes, and snippets.

@kmaed kmaed/opam-9999.ebuild
Last active Feb 22, 2019

Embed
What would you like to do?
Ebuild for the latest opam
# A modified version of opam-1.3.1-r1.ebuild by Kazuki Maeda <kmaeda@kmaeda.net>
# The original copyright information is shown below.
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit git-r3
DESCRIPTION="A source-based package manager for OCaml"
HOMEPAGE="http://opam.ocaml.org/"
LICENSE="LGPL-3-with-linking-exception"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
EGIT_REPO_URI="https://github.com/ocaml/opam.git"
RDEPEND="dev-lang/ocaml:=
sys-apps/bubblewrap
"
DEPEND="${RDEPEND}"
src_unpack() {
git-r3_src_unpack
cd ${S}
emake -j1 download-ext
}
src_compile() {
emake -j1 lib-ext
emake -j1
}
src_install() {
default
mv ${D}/usr/{,share/}doc
mv ${D}/usr/share/doc/{doc/,opam-${PV}/}opam-installer
rmdir ${D}/usr/share/doc/doc
}
@kmaed

This comment has been minimized.

Copy link
Owner Author

commented Dec 24, 2018

This file will be deleted if the official version >=2.0.0 is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.