commit:     8d942e2283a9cab3747101e8771816dab1d7fe37
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 17 08:43:20 2020 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Oct 17 08:43:20 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d942e22

net-misc/unison: tidying

* Don't install static libs
* Drop dune.eclass (the support upstream is experimental)
* ... so specify the OCaml dependency manually
* Sort IUSE
* Remove USE=doc for now (because no docs for the release candidate)

Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/unison/unison-2.51.3_rc2.ebuild | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

diff --git a/net-misc/unison/unison-2.51.3_rc2.ebuild 
b/net-misc/unison/unison-2.51.3_rc2.ebuild
index 8b53a7db107..2f2b082f0f1 100644
--- a/net-misc/unison/unison-2.51.3_rc2.ebuild
+++ b/net-misc/unison/unison-2.51.3_rc2.ebuild
@@ -3,8 +3,6 @@
 
 EAPI=7
 
-inherit dune
-
 DESCRIPTION="Two-way cross-platform file synchronizer"
 HOMEPAGE="https://www.seas.upenn.edu/~bcpierce/unison/";
 SRC_URI="https://github.com/bcpierce00/unison/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
@@ -17,10 +15,12 @@ 
SRC_URI="https://github.com/bcpierce00/unison/archive/v${PV}.tar.gz -> ${P}.tar.
 LICENSE="GPL-2"
 SLOT="$(ver_cut 1-2)"
 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos 
~sparc-solaris"
-IUSE="gtk doc static debug threads +ocamlopt test"
-RESTRICT="!ocamlopt? ( strip ) !test? ( test )"
+IUSE="debug gtk threads +ocamlopt test"
+RESTRICT="!ocamlopt? ( strip )"
+RESTRICT+=" !test? ( test )"
 
 # ocaml version so we are sure it has ocamlopt use flag
+BDEPEND="dev-lang/ocaml:=[ocamlopt?]"
 DEPEND="gtk? ( dev-ml/lablgtk:2= )"
 RDEPEND="
        ${DEPEND}
@@ -37,10 +37,6 @@ src_compile() {
                myconf="$myconf THREADS=true"
        fi
 
-       if use static; then
-               myconf="$myconf STATIC=true"
-       fi
-
        if use debug; then
                myconf="$myconf DEBUGGING=true"
        fi
@@ -69,10 +65,13 @@ src_install() {
        for binname in unison unison-fsmonitor; do
                newbin ${binname} ${binname}-${SLOT}
        done
-       if use doc; then
-               DOCS+=( "${DISTDIR}/${P}-manual.pdf" )
-               HTML_DOCS=( "${DISTDIR}/${P}-manual.html" )
-       fi
+
+       # No docs for release candidates
+       #if use doc; then
+       #       DOCS+=( "${DISTDIR}/${P}-manual.pdf" )
+       #       HTML_DOCS=( "${DISTDIR}/${P}-manual.html" )
+       #fi
+
        einstalldocs
 }
 

Reply via email to