Diff facile-1.1.3-r1 with a facile-1.1.4

/usr/portage/dev-ml/facile/facile-1.1.4.ebuild 2023-10-09 14:52:29.788368358 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
inherit dune
7

  
6 8
DESCRIPTION="OCaml constraint programming library on integer & integer set finite domains"
7 9
HOMEPAGE="http://opti.recherche.enac.fr/"
8
SRC_URI="http://opti.recherche.enac.fr/facile/distrib/${P}.tar.gz"
10
SRC_URI="https://github.com/Emmanuel-PLF/${PN}/releases/download/${PV}/${P}.tbz"
9 11

  
10 12
LICENSE="LGPL-2.1"
11 13
SLOT="0/${PV}"
12 14

  
13
KEYWORDS="amd64 arm64 ~hppa ~ia64 ~ppc ppc64 x86"
15
KEYWORDS="amd64 arm64 ~ppc ppc64 x86"
14 16
IUSE="+ocamlopt"
15 17

  
16 18
RDEPEND=">=dev-lang/ocaml-4:=[ocamlopt?]"
17 19
DEPEND="${RDEPEND}"
18 20

  
19
PATCHES=( "${FILESDIR}/${PN}"-1.1-make.patch ) # Fix building on FreeBSD
20

  
21
QA_FLAGS_IGNORED='.*'
22

  
23
src_prepare() {
24
	default
25

  
26
	# Disable building native code objects if we dont have/want ocamlopt
27
	if ! use ocamlopt; then
28
		sed -i -e 's/\.opt//' src/Makefile || die "failed to change native code compiler to bytecode ones"
29
		sed -i -e 's/ facile\.cmxa//' src/Makefile || die "failed to remove native code objects"
30
		sed -i -e 's/\.opt/.out/g' \
31
			-e 's: src/facile\.cmxa::'\
32
			-e 's: src/facile\.a::'\
33
			-e 's:^.*facile\.cmxa::'\
34
			-e 's:^.*facile\.a::' Makefile || die "failed to remove native code objects"
35
	fi
36
	sed -i \
37
		-e 's|$(FACILE|$(DESTDIR)$(FACILE|g' \
38
		Makefile || die
39
}
40

  
41
src_configure() {
42
	# This is a custom configure script and it does not support standard options
43
	./configure || die
44
}
45

  
46
src_test() {
47
	emake check
48
}
49

  
50
src_install() {
51
	dodir $(ocamlc -where)
52
	default
53
}
21
PATCHES=( "${FILESDIR}"/${P}-dune.patch )
Thank you!