1 |
commit: 1eee809c3bb4833241bab9dfcc03be164ec0d4fe |
2 |
Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
3 |
AuthorDate: Tue Nov 9 19:57:21 2021 +0000 |
4 |
Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc> |
5 |
CommitDate: Thu Dec 23 16:28:55 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=1eee809c |
7 |
|
8 |
app-arch/libdeflate: version bump to 1.8 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> |
12 |
|
13 |
.../files/libdeflate-1.2-respect_EPREFIX.patch | 2 +- |
14 |
app-arch/libdeflate/libdeflate-1.8.ebuild | 28 ++++++++++++++++++++++ |
15 |
2 files changed, 29 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/app-arch/libdeflate/files/libdeflate-1.2-respect_EPREFIX.patch b/app-arch/libdeflate/files/libdeflate-1.2-respect_EPREFIX.patch |
18 |
index a583d7d2e..790aa6de9 100644 |
19 |
--- a/app-arch/libdeflate/files/libdeflate-1.2-respect_EPREFIX.patch |
20 |
+++ b/app-arch/libdeflate/files/libdeflate-1.2-respect_EPREFIX.patch |
21 |
@@ -5,7 +5,7 @@ |
22 |
|
23 |
override CFLAGS := \ |
24 |
- $(CFLAGS) -O2 -fomit-frame-pointer -std=c99 -I. -Icommon \ |
25 |
-+ -O2 $(CFLAGS) -fomit-frame-pointer -std=c99 -I. -Icommon \ |
26 |
++ $(CFLAGS) -fomit-frame-pointer -std=c99 -I. -Icommon \ |
27 |
-Wall -Wundef \ |
28 |
$(call cc-option,-Wpedantic) \ |
29 |
$(call cc-option,-Wdeclaration-after-statement) \ |
30 |
|
31 |
diff --git a/app-arch/libdeflate/libdeflate-1.8.ebuild b/app-arch/libdeflate/libdeflate-1.8.ebuild |
32 |
new file mode 100644 |
33 |
index 000000000..bfafcfecd |
34 |
--- /dev/null |
35 |
+++ b/app-arch/libdeflate/libdeflate-1.8.ebuild |
36 |
@@ -0,0 +1,28 @@ |
37 |
+# Copyright 2019-2021 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=7 |
41 |
+ |
42 |
+DESCRIPTION="Heavily optimized DEFLATE/zlib/gzip (de)compression" |
43 |
+HOMEPAGE="https://github.com/ebiggers/libdeflate" |
44 |
+ |
45 |
+if [[ ${PV} == *9999 ]]; then |
46 |
+ inherit git-r3 |
47 |
+ EGIT_REPO_URI="https://github.com/ebiggers/libdeflate" |
48 |
+else |
49 |
+ SRC_URI="https://github.com/ebiggers/libdeflate/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
50 |
+ KEYWORDS="~amd64 ~x86" |
51 |
+fi |
52 |
+ |
53 |
+LICENSE="MIT" |
54 |
+SLOT="0" |
55 |
+IUSE="static-libs test" |
56 |
+RESTRICT="!test? ( test )" |
57 |
+ |
58 |
+src_install() { |
59 |
+ emake DESTDIR="${ED}" PREFIX=/usr LIBDIR="/usr/$(get_libdir)" install |
60 |
+ if ! use static-libs; then |
61 |
+ find "${ED}" -name '*.a' -delete || die |
62 |
+ fi |
63 |
+ dodoc NEWS README.md |
64 |
+} |