Skip to content

Commit

Permalink
net-misc/unison: build 2.51.3 with unison-manual
Browse files Browse the repository at this point in the history
Still waiting for upstream to provide fix for
bcpierce00/unison#411
bcpierce00/unison#412

Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
  • Loading branch information
vaukai committed Oct 22, 2020
1 parent c42e2fe commit 0fd42c6
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions net-misc/unison/unison-2.51.3.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,17 @@ inherit desktop xdg-utils
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"
# Not available for the rcs
#SRC_URI+=" doc? (
# https://www.seas.upenn.edu/~bcpierce/unison/download/releases/${P}/${P}-manual.pdf
# https://www.seas.upenn.edu/~bcpierce/unison/download/releases/${P}/${P}-manual.html
# )"

LICENSE="GPL-2"
SLOT="$(ver_cut 1-2)"
KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris"
IUSE="debug gtk +ocamlopt threads"
IUSE="debug doc gtk +ocamlopt threads"
RESTRICT="!ocamlopt? ( strip )"

# ocaml version so we are sure it has ocamlopt use flag
BDEPEND="dev-lang/ocaml:=[ocamlopt?]"
BDEPEND="dev-lang/ocaml:=[ocamlopt?]
doc? ( dev-texlive/texlive-latex
www-client/lynx )"
DEPEND="gtk? ( dev-ml/lablgtk:2= )"
RDEPEND="gtk? ( dev-ml/lablgtk:2=
|| ( net-misc/x11-ssh-askpass net-misc/ssh-askpass-fullscreen ) )
Expand All @@ -30,7 +27,11 @@ RDEPEND="gtk? ( dev-ml/lablgtk:2=
DOCS=( BUGS.txt CONTRIB INSTALL NEWS README ROADMAP.txt TODO.txt )

src_compile() {
local myconf="all"
if use doc; then
local myconf="all docs"
else
local myconf="all"
fi

if use threads; then
myconf="$myconf THREADS=true"
Expand Down

0 comments on commit 0fd42c6

Please sign in to comment.