Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/sha1-polyml/
Date: Tue, 30 Aug 2022 18:26:36
Message-Id: 1661883986.20c9a65d2161e59dcaf633ac3a2fb6865fb3302e.asturm@gentoo
1 commit: 20c9a65d2161e59dcaf633ac3a2fb6865fb3302e
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 30 18:18:06 2022 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 30 18:26:26 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20c9a65d
7
8 sci-mathematics/sha1-polyml: drop 5.6_p1, EAPI-6--
9
10 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
11
12 sci-mathematics/sha1-polyml/Manifest | 1 -
13 .../sha1-polyml/sha1-polyml-5.6_p1.ebuild | 61 ----------------------
14 2 files changed, 62 deletions(-)
15
16 diff --git a/sci-mathematics/sha1-polyml/Manifest b/sci-mathematics/sha1-polyml/Manifest
17 index 2988fb9f62e4..d4ff3f4ccbf4 100644
18 --- a/sci-mathematics/sha1-polyml/Manifest
19 +++ b/sci-mathematics/sha1-polyml/Manifest
20 @@ -1,2 +1 @@
21 -DIST polyml-5.6-1.tar.gz 22041657 BLAKE2B c097dda273b12dfe013706e5fa313f210f1f0bf6b32766db6e459ce1bca46f93504baef3d7644922c60d119431d659cbd69d8cd273fcc94609eadff058d3cb9b SHA512 3107f4a5b17283dc3873b0ecf7eb1c607c42e14e859b50345b666f19412a2592e359ea29f03e56d390491e9104a71e0bf80eb39884f51d8724b37f8f935fa7d2
22 DIST sha1-polyml-5.9.tar.gz 30801508 BLAKE2B d9a12b4a9734d2d663947e8699e6813b9c5f0a85f7527ebd73d578559ed4432a51ed8542733213c137c8235a2f6eebc28af77570c42234220d2993169340fd16 SHA512 da03c0759d633814b860fdc4051a010882b187444c0de1375f90e02ce26cb5e09cbbb48445da9f7d84d8af92352efcd9b509e863a915517e90e3fa6147bcbd0a
23
24 diff --git a/sci-mathematics/sha1-polyml/sha1-polyml-5.6_p1.ebuild b/sci-mathematics/sha1-polyml/sha1-polyml-5.6_p1.ebuild
25 deleted file mode 100644
26 index a76fba862963..000000000000
27 --- a/sci-mathematics/sha1-polyml/sha1-polyml-5.6_p1.ebuild
28 +++ /dev/null
29 @@ -1,61 +0,0 @@
30 -# Copyright 1999-2021 Gentoo Authors
31 -# Distributed under the terms of the GNU General Public License v2
32 -
33 -EAPI="6"
34 -
35 -inherit multilib toolchain-funcs
36 -
37 -MY_PN="polyml"
38 -MY_PV="5.6-1"
39 -MY_P="${MY_PN}-${MY_PV}"
40 -
41 -DESCRIPTION="implementation of SHA1 is taken from the GNU coreutils package"
42 -HOMEPAGE="http://isabelle.in.tum.de/"
43 -SRC_URI="http://isabelle.in.tum.de/components/${MY_P}.tar.gz"
44 -
45 -LICENSE="GPL-3"
46 -SLOT="0"
47 -KEYWORDS="~amd64 ~x86"
48 -
49 -RDEPEND=""
50 -DEPEND="${RDEPEND}"
51 -
52 -S="${WORKDIR}/${MY_P}/sha1"
53 -
54 -# sci-mathematics/isabelle requires sci-mathematics/sha1-polyml, to avoid
55 -# this warning:
56 -# ### load_lib </usr/bin/libsha1.so> : /usr/bin/libsha1.so: cannot open shared
57 -# object file: No such file or directory
58 -# ### Using slow ML implementation of SHA1.digest
59 -# sci-mathematics/sha1-polyml supplies the library libsha1.so. Which
60 -# is the implementation of SHA1 taken from the GNU coreutils package
61 -# as described in the sci-mathematics/sha1-polyml README. Isabelle
62 -# builds libsha1.so in the contrib/polyml/$ML_PLATFORM directory.
63 -# isabelle dynamically loads libsha1.so as a plugin. The Isabelle-2012
64 -# linux binary bundle places libsha1.so in the contrib/polyml directory, which
65 -# is referred to as ML_HOME in the Isabelle Pure/General/sha1_polyml.ML source file.
66 -# ML_HOME is /usr/bin on Gentoo, and we want isabelle to depend o sha1-polyml.
67 -# For these reasons isabelle is patched to load it from
68 -# /usr/$(get_libdir)/sha1-polyml/libsha1.so
69 -
70 -src_compile() {
71 - $(tc-getCC) \
72 - ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -I. -fPIC -shared \
73 - -o libsha1.so sha1.c || die "compile libsha1.so failed"
74 - $(tc-getCC) \
75 - ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -I. \
76 - -o test_sha1 test_sha1.c -ldl || die "compile test_sha1 failed"
77 -}
78 -
79 -src_test() {
80 - ./test_sha1 ./libsha1.so || die "tests failed"
81 -}
82 -
83 -src_install() {
84 - dodoc README
85 -
86 - local ld="${EPREFIX%/}/usr/$(get_libdir)/${PN}"
87 - dodir ${ld}
88 - exeinto ${ld}
89 - doexe libsha1.so
90 -}