1 |
commit: ebe40f65ccf0618947fe31b55c7a1ac5e4748716 |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 19 10:45:39 2023 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 19 10:53:15 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebe40f65 |
7 |
|
8 |
app-crypt/mhash: generate a pck-config file |
9 |
|
10 |
Closes: https://bugs.gentoo.org/895562 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
app-crypt/mhash/files/mhash.pc | 4 ++++ |
14 |
.../mhash/{mhash-0.9.9.9-r2.ebuild => mhash-0.9.9.9-r3.ebuild} | 10 ++++++++-- |
15 |
2 files changed, 12 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/app-crypt/mhash/files/mhash.pc b/app-crypt/mhash/files/mhash.pc |
18 |
new file mode 100644 |
19 |
index 000000000000..6186f85c7839 |
20 |
--- /dev/null |
21 |
+++ b/app-crypt/mhash/files/mhash.pc |
22 |
@@ -0,0 +1,4 @@ |
23 |
+Libs:-lmhash |
24 |
+Name: mhash |
25 |
+Version: @VERSION@ |
26 |
+Description: provides a uniform interface to several hash algorithms |
27 |
|
28 |
diff --git a/app-crypt/mhash/mhash-0.9.9.9-r2.ebuild b/app-crypt/mhash/mhash-0.9.9.9-r3.ebuild |
29 |
similarity index 89% |
30 |
rename from app-crypt/mhash/mhash-0.9.9.9-r2.ebuild |
31 |
rename to app-crypt/mhash/mhash-0.9.9.9-r3.ebuild |
32 |
index e31cbe8e8e25..d8cba554e436 100644 |
33 |
--- a/app-crypt/mhash/mhash-0.9.9.9-r2.ebuild |
34 |
+++ b/app-crypt/mhash/mhash-0.9.9.9-r3.ebuild |
35 |
@@ -1,7 +1,7 @@ |
36 |
-# Copyright 1999-2022 Gentoo Authors |
37 |
+# Copyright 1999-2023 Gentoo Authors |
38 |
# Distributed under the terms of the GNU General Public License v2 |
39 |
|
40 |
-EAPI=7 |
41 |
+EAPI=8 |
42 |
|
43 |
inherit autotools |
44 |
|
45 |
@@ -39,6 +39,10 @@ src_prepare() { |
46 |
-e 's/--netscape//' \ |
47 |
"${S}"/doc/Makefile.in || die |
48 |
|
49 |
+ sed \ |
50 |
+ -e "s:@VERSION@:${PV}:" \ |
51 |
+ "${FILESDIR}"/${PN}.pc > ${PN}.pc || die |
52 |
+ |
53 |
# Refresh bundled libtool (ltmain.sh) |
54 |
# (elibtoolize is not sufficient) |
55 |
# bug #668666 |
56 |
@@ -57,5 +61,7 @@ src_compile() { |
57 |
|
58 |
src_install() { |
59 |
default |
60 |
+ insinto /usr/$(get_libdir)/pkgconfig |
61 |
+ doins ${PN}.pc |
62 |
find "${ED}" -name '*.la' -delete || die |
63 |
} |