Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-arch/brotli/files/, app-arch/brotli/
Date: Tue, 08 Sep 2020 16:29:28
Message-Id: 1599582558.100ec436bd46c578fe23cef4456f6c0479f60030.candrews@gentoo
1 commit: 100ec436bd46c578fe23cef4456f6c0479f60030
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 8 16:28:42 2020 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 8 16:29:18 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=100ec436
7
8 app-arch/brotli: fix pkg-config linker configuration
9
10 Closes: https://bugs.gentoo.org/739832
11 Package-Manager: Portage-3.0.6, Repoman-3.0.1
12 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
13
14 app-arch/brotli/brotli-1.0.9-r1.ebuild | 83 ++++++++++++++++++++++++++++++++
15 app-arch/brotli/files/1.0.9-linker.patch | 47 ++++++++++++++++++
16 2 files changed, 130 insertions(+)
17
18 diff --git a/app-arch/brotli/brotli-1.0.9-r1.ebuild b/app-arch/brotli/brotli-1.0.9-r1.ebuild
19 new file mode 100644
20 index 00000000000..41f9c0f5016
21 --- /dev/null
22 +++ b/app-arch/brotli/brotli-1.0.9-r1.ebuild
23 @@ -0,0 +1,83 @@
24 +# Copyright 1999-2020 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +PYTHON_COMPAT=( python3_{6,7,8,9} )
30 +DISTUTILS_OPTIONAL="1"
31 +DISTUTILS_IN_SOURCE_BUILD="1"
32 +
33 +inherit cmake-multilib distutils-r1
34 +
35 +DESCRIPTION="Generic-purpose lossless compression algorithm"
36 +HOMEPAGE="https://github.com/google/brotli"
37 +
38 +SLOT="0/$(ver_cut 1)"
39 +
40 +RDEPEND="python? ( ${PYTHON_DEPS} )"
41 +DEPEND="${RDEPEND}"
42 +
43 +IUSE="python test"
44 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
45 +
46 +LICENSE="MIT python? ( Apache-2.0 )"
47 +
48 +DOCS=( README.md CONTRIBUTING.md )
49 +
50 +if [[ ${PV} == "9999" ]] ; then
51 + SRC_URI=""
52 + EGIT_REPO_URI="https://github.com/google/${PN}.git"
53 + inherit git-r3
54 +else
55 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x64-solaris"
56 + SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
57 +fi
58 +
59 +RESTRICT="!test? ( test )"
60 +
61 +PATCHES=(
62 + "${FILESDIR}/${PV}-linker.patch"
63 +)
64 +
65 +src_prepare() {
66 + use python && distutils-r1_src_prepare
67 + cmake-utils_src_prepare
68 +}
69 +
70 +multilib_src_configure() {
71 + local mycmakeargs=(
72 + -DBUILD_TESTING="$(usex test)"
73 + )
74 + cmake-utils_src_configure
75 +}
76 +src_configure() {
77 + cmake-multilib_src_configure
78 + use python && distutils-r1_src_configure
79 +}
80 +
81 +multilib_src_compile() {
82 + cmake-utils_src_compile
83 +}
84 +src_compile() {
85 + cmake-multilib_src_compile
86 + use python && distutils-r1_src_compile
87 +}
88 +
89 +python_test() {
90 + esetup.py test || die
91 +}
92 +
93 +multilib_src_test() {
94 + cmake-utils_src_test
95 +}
96 +src_test() {
97 + cmake-multilib_src_test
98 + use python && distutils-r1_src_test
99 +}
100 +
101 +multilib_src_install() {
102 + cmake-utils_src_install
103 +}
104 +multilib_src_install_all() {
105 + use python && distutils-r1_src_install
106 +}
107
108 diff --git a/app-arch/brotli/files/1.0.9-linker.patch b/app-arch/brotli/files/1.0.9-linker.patch
109 new file mode 100644
110 index 00000000000..8ecf2e4c9b9
111 --- /dev/null
112 +++ b/app-arch/brotli/files/1.0.9-linker.patch
113 @@ -0,0 +1,47 @@
114 +From 092446fafb4bfb81738853b7c7f76b293cd92a80 Mon Sep 17 00:00:00 2001
115 +From: Evgenii Kliuchnikov <eustas.ru@×××××.com>
116 +Date: Wed, 2 Sep 2020 10:49:49 +0200
117 +Subject: [PATCH] Revert "Add runtime linker path to pkg-config files (#740)"
118 +
119 +This reverts commit 31754d4ffce14153b5c2addf7a11019ec23f51c1.
120 +---
121 + scripts/libbrotlicommon.pc.in | 2 +-
122 + scripts/libbrotlidec.pc.in | 2 +-
123 + scripts/libbrotlienc.pc.in | 2 +-
124 + 3 files changed, 3 insertions(+), 3 deletions(-)
125 +
126 +diff --git a/scripts/libbrotlicommon.pc.in b/scripts/libbrotlicommon.pc.in
127 +index 10ca969e..2a8cf7a3 100644
128 +--- a/scripts/libbrotlicommon.pc.in
129 ++++ b/scripts/libbrotlicommon.pc.in
130 +@@ -7,5 +7,5 @@ Name: libbrotlicommon
131 + URL: https://github.com/google/brotli
132 + Description: Brotli common dictionary library
133 + Version: @PACKAGE_VERSION@
134 +-Libs: -L${libdir} -R${libdir} -lbrotlicommon
135 ++Libs: -L${libdir} -lbrotlicommon
136 + Cflags: -I${includedir}
137 +diff --git a/scripts/libbrotlidec.pc.in b/scripts/libbrotlidec.pc.in
138 +index e7c3124f..6f8ef2e4 100644
139 +--- a/scripts/libbrotlidec.pc.in
140 ++++ b/scripts/libbrotlidec.pc.in
141 +@@ -7,6 +7,6 @@ Name: libbrotlidec
142 + URL: https://github.com/google/brotli
143 + Description: Brotli decoder library
144 + Version: @PACKAGE_VERSION@
145 +-Libs: -L${libdir} -R${libdir} -lbrotlidec
146 ++Libs: -L${libdir} -lbrotlidec
147 + Requires.private: libbrotlicommon >= 1.0.2
148 + Cflags: -I${includedir}
149 +diff --git a/scripts/libbrotlienc.pc.in b/scripts/libbrotlienc.pc.in
150 +index 4dd0811b..2098afe2 100644
151 +--- a/scripts/libbrotlienc.pc.in
152 ++++ b/scripts/libbrotlienc.pc.in
153 +@@ -7,6 +7,6 @@ Name: libbrotlienc
154 + URL: https://github.com/google/brotli
155 + Description: Brotli encoder library
156 + Version: @PACKAGE_VERSION@
157 +-Libs: -L${libdir} -R${libdir} -lbrotlienc
158 ++Libs: -L${libdir} -lbrotlienc
159 + Requires.private: libbrotlicommon >= 1.0.2
160 + Cflags: -I${includedir}