Diff unison-2.51.3_p20201127 with a unison-2.51.4_rc2

/usr/portage/net-misc/unison/unison-2.51.4_rc2.ebuild 2021-05-03 09:39:00.000000000 +0300
5 5

  
6 6
inherit desktop xdg-utils
7 7

  
8
MY_COMMIT="4713e608d2f9c998ba4412fee53b94dc9bef98b9"
9 8
DESCRIPTION="Two-way cross-platform file synchronizer"
10 9
HOMEPAGE="https://www.seas.upenn.edu/~bcpierce/unison/"
11
SRC_URI="https://github.com/bcpierce00/unison/archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
10
SRC_URI="https://github.com/bcpierce00/unison/archive/v${PV}.tar.gz -> ${P}.tar.gz"
12 11

  
13 12
LICENSE="GPL-2"
14 13
SLOT="$(ver_cut 1-2)"
15
KEYWORDS="amd64 ~arm ppc x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
14
KEYWORDS="~amd64 ~arm ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
16 15
IUSE="debug doc gtk +ocamlopt threads"
17 16
RESTRICT="!ocamlopt? ( strip )" # https://bugs.gentoo.org/685776#c0
18 17

  
......
26 25
	|| ( net-misc/x11-ssh-askpass net-misc/ssh-askpass-fullscreen ) )
27 26
	>=app-eselect/eselect-unison-0.4"
28 27

  
29
S="${WORKDIR}/${PN}-${MY_COMMIT}"
30

  
31 28
DOCS=( BUGS.txt CONTRIB INSTALL NEWS README ROADMAP.txt TODO.txt )
32 29

  
33 30
src_prepare() {
31
	default
34 32
	# https://github.com/bcpierce00/unison/issues/416
35 33
	sed -e "/ifdef\ HEVEA/,/endif/d" -i doc/Makefile || die
36 34
	# https://github.com/bcpierce00/unison/pull/415
37 35
	sed -e "/myName/d" -i doc/docs.ml || die
38
	default
39 36
}
40 37

  
41 38
src_compile() {
42 39
	local myconf
43 40

  
44 41
	if use threads; then
45
		myconf="$myconf THREADS=true"
42
		myconf+=( THREADS=true )
46 43
	fi
47 44

  
48 45
	if use debug; then
49
		myconf="$myconf DEBUGGING=true"
46
		myconf+=( DEBUGGING=true )
50 47
	fi
51 48

  
52 49
	if use gtk; then
53
		myconf="$myconf UISTYLE=gtk2"
50
		myconf+=( UISTYLE=gtk2 )
54 51
	else
55
		myconf="$myconf UISTYLE=text"
52
		myconf+=( UISTYLE=text )
56 53
	fi
57 54

  
58
	use ocamlopt || myconf="$myconf NATIVE=false"
55
	use ocamlopt || myconf+=( NATIVE=false )
59 56

  
60 57
	if use doc; then
61
		VARTEXFONTS="${T}/fonts" emake $myconf CFLAGS="" HEVEA=false docs
58
		VARTEXFONTS="${T}/fonts" emake "${myconf[@]}" CFLAGS="" HEVEA=false docs
62 59
	fi
63 60

  
64 61
	# Discard cflags as it will try to pass them to ocamlc...
65
	emake $myconf CFLAGS="" src
62
	emake "${myconf[@]}" CFLAGS="" src
66 63
}
67 64

  
68 65
src_test() {
Thank you!