summaryrefslogtreecommitdiff
path: root/dev-ml
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ml')
-rw-r--r--dev-ml/opam/files/stublibs.patch13
-rw-r--r--dev-ml/opam/opam-1.3.1-r1.ebuild (renamed from dev-ml/opam/opam-1.3.1.ebuild)4
2 files changed, 17 insertions, 0 deletions
diff --git a/dev-ml/opam/files/stublibs.patch b/dev-ml/opam/files/stublibs.patch
new file mode 100644
index 000000000000..3cb61883233a
--- /dev/null
+++ b/dev-ml/opam/files/stublibs.patch
@@ -0,0 +1,13 @@
+Index: opam-1.3.1/src/tools/opam_installer.ml
+===================================================================
+--- opam-1.3.1.orig/src/tools/opam_installer.ml
++++ opam-1.3.1/src/tools/opam_installer.ml
+@@ -312,7 +312,7 @@ let options =
+ let mandir = mk_dir mandir in
+ let libdir = mk_dir libdir in
+ let stubsdir = match mk_dir stubsdir, libdir with
+- | None, Some d -> Some OpamFilename.Op.(d / "stubslibs")
++ | None, Some d -> Some OpamFilename.Op.(d / "stublibs")
+ | d, None | (Some _ as d), _ -> d
+ in
+ let topdir = match mk_dir topdir, libdir with
diff --git a/dev-ml/opam/opam-1.3.1.ebuild b/dev-ml/opam/opam-1.3.1-r1.ebuild
index 7a59ae2c792b..8dcc9ac786d5 100644
--- a/dev-ml/opam/opam-1.3.1.ebuild
+++ b/dev-ml/opam/opam-1.3.1-r1.ebuild
@@ -34,6 +34,10 @@ RDEPEND="${DEPEND}
dev-ml/findlib
"
+src_prepare() {
+ epatch "${FILESDIR}/stublibs.patch"
+}
+
src_compile() {
emake -j1
cd doc