Diff camlp5-7.11-r1 with a camlp5-7.12
/usr/portage/dev-ml/camlp5/camlp5-7.12.ebuild 2023-10-09 14:52:29.784368358 +0300 | ||
---|---|---|
3 | 3 | |
4 | 4 |
EAPI=7 |
5 | 5 | |
6 |
inherit findlib |
|
6 |
inherit findlib vcs-clean |
|
7 | 7 | |
8 | 8 |
DESCRIPTION="A preprocessor-pretty-printer of ocaml" |
9 | 9 |
HOMEPAGE="https://camlp5.github.io/" |
... | ... | |
12 | 12 | |
13 | 13 |
LICENSE="BSD" |
14 | 14 |
SLOT="0/${PV}" |
15 |
KEYWORDS="amd64 ~ppc x86" |
|
15 |
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
|
16 | 16 |
IUSE="doc +ocamlopt" |
17 | 17 | |
18 |
DEPEND="<dev-lang/ocaml-4.11.0:=[ocamlopt?]" |
|
18 |
DEPEND=" |
|
19 |
<dev-lang/ocaml-4.11.2:=[ocamlopt?] |
|
20 |
" |
|
19 | 21 |
RDEPEND="${DEPEND}" |
20 | 22 | |
21 |
QA_FLAGS_IGNORED=( |
|
22 |
/usr/bin/camlp5o.opt |
|
23 |
/usr/bin/camlp5r.opt |
|
24 |
) |
|
23 |
PATCHES=( "${FILESDIR}/${PN}-7.12-destdir.patch" ) |
|
25 | 24 | |
26 |
DOCS="CHANGES DEVEL ICHANGES README.md UPGRADING MODE" |
|
25 |
camlp5_hack_ocaml_support() { |
|
26 |
ln -s "${1}" "ocaml_stuff/${2}" || die |
|
27 |
ln -s "${1}.ml" "ocaml_src/lib/versdep/${2}.ml" || die |
|
28 |
} |
|
29 | ||
30 |
src_prepare() { |
|
31 |
egit_clean |
|
32 |
default |
|
33 |
camlp5_hack_ocaml_support 4.11.0 4.11.1 |
|
34 |
} |
|
27 | 35 | |
28 | 36 |
src_configure() { |
29 | 37 |
./configure \ |
... | ... | |
35 | 43 |
} |
36 | 44 | |
37 | 45 |
src_compile() { |
38 |
ulimit -s 11530000 |
|
39 | 46 |
emake out |
40 | 47 |
if use ocamlopt; then |
41 | 48 |
emake opt |
... | ... | |
44 | 51 |
} |
45 | 52 | |
46 | 53 |
src_install() { |
47 |
use doc && HTML_DOCS="doc/*" |
|
48 | ||
49 |
default |
|
50 | ||
54 |
emake DESTDIR="${D}" install |
|
51 | 55 |
# findlib support |
52 | 56 |
insinto "$(ocamlfind printconf destdir)/${PN}" |
53 | 57 |
doins etc/META |
58 | ||
59 |
dodoc -r doc/* |
|
60 |
dodoc CHANGES DEVEL ICHANGES README.md UPGRADING MODE |
|
54 | 61 |
} |