Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ml/dose3/
Date: Wed, 27 Jan 2021 06:34:53
Message-Id: 1611729277.a69dc77d70d4eec570353c055a6339e3e00e1eab.sam@gentoo
1 commit: a69dc77d70d4eec570353c055a6339e3e00e1eab
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 27 06:34:06 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 27 06:34:37 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a69dc77d
7
8 dev-ml/dose3: import Debian patchset (p16)
9
10 Closes: https://bugs.gentoo.org/675892
11 Closes: https://bugs.gentoo.org/707938
12 Package-Manager: Portage-3.0.14, Repoman-3.0.2
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 dev-ml/dose3/Manifest | 2 +
16 dev-ml/dose3/dose3-5.0.1_p16.ebuild | 80 +++++++++++++++++++++++++++++++++++++
17 2 files changed, 82 insertions(+)
18
19 diff --git a/dev-ml/dose3/Manifest b/dev-ml/dose3/Manifest
20 index 57bc6e62d88..75bf4cff0ee 100644
21 --- a/dev-ml/dose3/Manifest
22 +++ b/dev-ml/dose3/Manifest
23 @@ -1 +1,3 @@
24 DIST dose3-5.0.1.tar.gz 297433 BLAKE2B 74ae954604f26398f091b4f14d2a633132ae62102f52af13284af27e41cd7c47afb1b533b0821a8921ba33fa6658e94b3bb6bf5f104f48881a50e14517cd65e2 SHA512 e66526319446054041f138ee2633043d0832089f6a554cf566a28de899d10383acfb1aa6bf1a368811602939676510933a7d2404fd34dbeba15045b458f5af84
25 +DIST dose3_5.0.1-16.debian.tar.xz 39448 BLAKE2B a5ae8c74ee1a5a89bf3594cbaf0b37703fcf03a03e336c6b91626fcb6767518c517bf28ec4a24f6cbeb40e1544b34e95855507f39aacca110e8daa6e6e5d3994 SHA512 52d14a45bc0b0a66c4cf3acc05b479b1456c78fa8cb0e453a01dd2f0d849dfcf959bd9e8ff8d505272ad7ad542ff402013746816ead3ccd2dbd0bed572ee2930
26 +DIST dose3_5.0.1.orig.tar.gz 297433 BLAKE2B 74ae954604f26398f091b4f14d2a633132ae62102f52af13284af27e41cd7c47afb1b533b0821a8921ba33fa6658e94b3bb6bf5f104f48881a50e14517cd65e2 SHA512 e66526319446054041f138ee2633043d0832089f6a554cf566a28de899d10383acfb1aa6bf1a368811602939676510933a7d2404fd34dbeba15045b458f5af84
27
28 diff --git a/dev-ml/dose3/dose3-5.0.1_p16.ebuild b/dev-ml/dose3/dose3-5.0.1_p16.ebuild
29 new file mode 100644
30 index 00000000000..a407b1aeddf
31 --- /dev/null
32 +++ b/dev-ml/dose3/dose3-5.0.1_p16.ebuild
33 @@ -0,0 +1,80 @@
34 +# Copyright 1999-2021 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +DESCRIPTION="Library to perform analysis on package repositories"
40 +HOMEPAGE="http://www.mancoosi.org/software/ https://gforge.inria.fr/projects/dose"
41 +SRC_URI="http://deb.debian.org/debian/pool/main/d/dose3/${PN}_$(ver_cut 1-3).orig.tar.gz"
42 +SRC_URI+=" http://deb.debian.org/debian/pool/main/d/dose3/${PN}_${PV/_p/-}.debian.tar.xz"
43 +#SRC_URI="https://gforge.inria.fr/frs/download.php/file/36063/${P}.tar.gz"
44 +S="${WORKDIR}/${PN}-$(ver_cut 1-3)"
45 +
46 +LICENSE="LGPL-3"
47 +SLOT="0/${PV}"
48 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
49 +IUSE="+ocamlopt parmap zip bzip2 xml curl rpm4 test"
50 +
51 +BDEPEND="
52 + dev-ml/cppo
53 + dev-ml/findlib
54 + dev-ml/ocamlbuild
55 +"
56 +RDEPEND="
57 + >=dev-lang/ocaml-3.12:=[ocamlopt=]
58 + dev-ml/cudf:=[ocamlopt=]
59 + >=dev-ml/extlib-1.7.0:=[ocamlopt=]
60 + >=dev-ml/ocamlgraph-1.8.6:=[ocamlopt=]
61 + dev-ml/re:=[ocamlopt=]
62 + parmap? ( dev-ml/parmap:=[ocamlopt=] )
63 + zip? ( dev-ml/camlzip:=[ocamlopt=] )
64 + bzip2? ( dev-ml/camlbz2:= )
65 + xml? (
66 + dev-ml/ocaml-expat:=[ocamlopt=]
67 + dev-ml/xml-light:=[ocamlopt=]
68 + )
69 + curl? ( dev-ml/ocurl:= )
70 + rpm4? ( app-arch/rpm )
71 +"
72 +DEPEND="${RDEPEND}
73 + test? ( dev-python/pyyaml[libyaml] )
74 +"
75 +
76 +# missing test data
77 +RESTRICT="test"
78 +
79 +QA_FLAGS_IGNORED='.*'
80 +
81 +src_prepare() {
82 + default
83 + sed -e 's/INSTALLOPTS=-s/INSTALLOPTS=/' -i Makefile.config.in || die
84 +
85 + # Not relevant to us, Debian specific adjustments
86 + rm "${WORKDIR}"/debian/patches/0009-Fix-and-constraints-against-virtual-packages.patch || die
87 + rm "${WORKDIR}"/debian/patches/binaries-prefix-edos || die
88 +
89 + elog "Applying Debian patchset..."
90 + for file in "${WORKDIR}"/debian/patches/*.patch ; do
91 + eapply "${file}"
92 + done
93 +}
94 +
95 +src_configure() {
96 + econf \
97 + $(use ocamlopt || echo "--with-bytecodeonly") \
98 + $(use parmap && echo "--with-parmap") \
99 + $(use zip && echo "--with-zip") \
100 + $(use bzip2 && echo "--with-bz2") \
101 + $(use xml && echo "--with-xml") \
102 + $(use curl && echo "--with-curl") \
103 + $(use rpm4 && echo "--with-rpm4")
104 +}
105 +
106 +src_compile() {
107 + emake -j1 VERBOSE="-classic-display"
108 +}
109 +
110 +src_install() {
111 + emake DESTDIR="${D}" BINDIR="${ED}/usr/bin" install || die
112 + dodoc CHANGES CREDITS README.architecture TODO
113 +}