1 |
commit: bd3eb60f46af56a02a5b11976349009cadbcc083 |
2 |
Author: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 16 18:56:00 2021 +0000 |
4 |
Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 16 18:56:51 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd3eb60f |
7 |
|
8 |
app-text/barcode: also install static library |
9 |
|
10 |
Closes: https://bugs.gentoo.org/758491 |
11 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
12 |
RepoMan-Options: --force |
13 |
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org> |
14 |
|
15 |
.../barcode/{barcode-0.99.ebuild => barcode-0.99-r1.ebuild} | 12 ++++++++++-- |
16 |
.../barcode/files/barcode-0.99-install-static-lib.patch | 13 +++++++++++++ |
17 |
2 files changed, 23 insertions(+), 2 deletions(-) |
18 |
|
19 |
diff --git a/app-text/barcode/barcode-0.99.ebuild b/app-text/barcode/barcode-0.99-r1.ebuild |
20 |
similarity index 75% |
21 |
rename from app-text/barcode/barcode-0.99.ebuild |
22 |
rename to app-text/barcode/barcode-0.99-r1.ebuild |
23 |
index bd58bc146e1..40c42b4118d 100644 |
24 |
--- a/app-text/barcode/barcode-0.99.ebuild |
25 |
+++ b/app-text/barcode/barcode-0.99-r1.ebuild |
26 |
@@ -1,4 +1,4 @@ |
27 |
-# Copyright 1999-2020 Gentoo Authors |
28 |
+# Copyright 1999-2021 Gentoo Authors |
29 |
# Distributed under the terms of the GNU General Public License v2 |
30 |
|
31 |
EAPI=7 |
32 |
@@ -14,7 +14,11 @@ KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos" |
33 |
RDEPEND="app-text/libpaper" |
34 |
DEPEND="${RDEPEND}" |
35 |
|
36 |
-PATCHES=( "${FILESDIR}"/${P}-fno-common.patch ) |
37 |
+PATCHES=( |
38 |
+ "${FILESDIR}"/${P}-fno-common.patch |
39 |
+ "${FILESDIR}"/${P}-install-static-lib.patch |
40 |
+) |
41 |
+ |
42 |
|
43 |
src_prepare() { |
44 |
sed -i -e '/^LDFLAGS =/s:=:+=:' \ |
45 |
@@ -25,3 +29,7 @@ src_prepare() { |
46 |
|
47 |
default |
48 |
} |
49 |
+ |
50 |
+src_configure() { |
51 |
+ econf --disable-shared |
52 |
+} |
53 |
|
54 |
diff --git a/app-text/barcode/files/barcode-0.99-install-static-lib.patch b/app-text/barcode/files/barcode-0.99-install-static-lib.patch |
55 |
new file mode 100644 |
56 |
index 00000000000..44d32d059ce |
57 |
--- /dev/null |
58 |
+++ b/app-text/barcode/files/barcode-0.99-install-static-lib.patch |
59 |
@@ -0,0 +1,13 @@ |
60 |
+--- barcode-0.99_orig/Makefile.am 2020-12-06 15:39:43.270943391 +0100 |
61 |
++++ barcode-0.99/Makefile.am 2020-12-06 15:40:26.723942515 +0100 |
62 |
+@@ -25,7 +25,9 @@ |
63 |
+ |
64 |
+ bin_PROGRAMS = barcode sample |
65 |
+ |
66 |
+-noinst_LTLIBRARIES = libbarcode.la |
67 |
++lib_LTLIBRARIES = libbarcode.la |
68 |
++ |
69 |
++include_HEADERS = barcode.h lib/gettext.h |
70 |
+ |
71 |
+ ACLOCAL_AMFLAGS = -I m4 |
72 |
+ |