Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libslz/
Date: Fri, 09 Sep 2022 07:59:42
Message-Id: 1662710339.45ba33c205f0b6446a6c827bf746917147423f68.soap@gentoo
1 commit: 45ba33c205f0b6446a6c827bf746917147423f68
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 9 07:58:59 2022 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 9 07:58:59 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45ba33c2
7
8 dev-libs/libslz: drop multilib, static-libs, EAPI 8
9
10 No multilib or static-libs reverse dependencies.
11
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13 Signed-off-by: David Seifert <soap <AT> gentoo.org>
14
15 dev-libs/libslz/libslz-1.2.0-r1.ebuild | 44 +++++++++++++++++++++++
16 dev-libs/libslz/libslz-1.2.0.ebuild | 65 ----------------------------------
17 2 files changed, 44 insertions(+), 65 deletions(-)
18
19 diff --git a/dev-libs/libslz/libslz-1.2.0-r1.ebuild b/dev-libs/libslz/libslz-1.2.0-r1.ebuild
20 new file mode 100644
21 index 000000000000..8fff4fd6f227
22 --- /dev/null
23 +++ b/dev-libs/libslz/libslz-1.2.0-r1.ebuild
24 @@ -0,0 +1,44 @@
25 +# Copyright 1999-2022 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=8
29 +
30 +inherit toolchain-funcs
31 +
32 +DESCRIPTION="Stateless, zlib-compatible, and very fast compression library"
33 +HOMEPAGE="http://1wt.eu/projects/libslz"
34 +SRC_URI="http://git.1wt.eu/web?p=${PN}.git;a=snapshot;h=v${PV};sf=tbz2 -> ${P}.tar.bz2"
35 +S="${WORKDIR}/${PN}"
36 +
37 +LICENSE="MIT"
38 +SLOT="0/1"
39 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
40 +IUSE="tools"
41 +
42 +src_compile() {
43 + local opts=(
44 + CC="$(tc-getCC)"
45 + OPT_CFLAGS="${CFLAGS}"
46 + USR_LFLAGS="${LDFLAGS}"
47 + shared
48 + $(usev tools)
49 + )
50 +
51 + emake "${opts[@]}"
52 +}
53 +
54 +src_install() {
55 + local opts=(
56 + STRIP=":"
57 + DESTDIR="${D}"
58 + PREFIX="${EPREFIX}/usr"
59 + LIBDIR="${EPREFIX}/usr/$(get_libdir)"
60 + install-headers
61 + install-shared
62 + $(usev tools install-tools)
63 + )
64 +
65 + einstalldocs
66 +
67 + emake "${opts[@]}"
68 +}
69
70 diff --git a/dev-libs/libslz/libslz-1.2.0.ebuild b/dev-libs/libslz/libslz-1.2.0.ebuild
71 deleted file mode 100644
72 index be90a23d2bc6..000000000000
73 --- a/dev-libs/libslz/libslz-1.2.0.ebuild
74 +++ /dev/null
75 @@ -1,65 +0,0 @@
76 -# Copyright 1999-2021 Gentoo Authors
77 -# Distributed under the terms of the GNU General Public License v2
78 -
79 -EAPI=6
80 -inherit toolchain-funcs multilib-minimal
81 -
82 -DESCRIPTION="stateless, zlib-compatible, and very fast compression library"
83 -HOMEPAGE="http://1wt.eu/projects/libslz"
84 -SRC_URI="http://git.1wt.eu/web?p=${PN}.git;a=snapshot;h=v${PV};sf=tbz2 -> ${P}.tar.bz2"
85 -
86 -LICENSE="MIT"
87 -SLOT="0/1"
88 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
89 -IUSE="static-libs tools"
90 -
91 -DEPEND=""
92 -RDEPEND="${DEPEND}"
93 -
94 -S="${WORKDIR}/${PN}"
95 -
96 -src_prepare() {
97 - default
98 -
99 - multilib_copy_sources
100 -}
101 -
102 -multilib_src_compile() {
103 - local -a opts=(
104 - CC="$(tc-getCC)" \
105 - OPT_CFLAGS="${CFLAGS}" \
106 - USR_LFLAGS="${LDFLAGS}" \
107 - shared \
108 - $(usex static-libs static '')
109 - )
110 -
111 - if multilib_is_native_abi ; then
112 - opts+=(
113 - $(usex tools tools '')
114 - )
115 - fi
116 -
117 - emake "${opts[@]}"
118 -}
119 -
120 -multilib_src_install() {
121 - local -a opts=(
122 - STRIP=":" \
123 - DESTDIR="${ED}" \
124 - PREFIX="${EPREFIX}/usr" \
125 - LIBDIR="${EPREFIX}/usr/$(get_libdir)" \
126 - install-headers
127 - install-shared \
128 - $(usex static-libs install-static '')
129 - )
130 -
131 - if multilib_is_native_abi ; then
132 - einstalldocs
133 -
134 - opts+=(
135 - $(usex tools install-tools '')
136 - )
137 - fi
138 -
139 - emake "${opts[@]}"
140 -}