1 |
commit: 7673c9474da74a2a7c559d106c0c666bfee16cb1 |
2 |
Author: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 28 23:45:05 2020 +0000 |
4 |
Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 28 23:47:16 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7673c947 |
7 |
|
8 |
dev-perl/File-LibMagic: -r bump for toolchain love + fixes |
9 |
|
10 |
- Remove rm-files logic from src_prepare (the files are gone upstream) |
11 |
- Fix being broken by LD being set in ENV to an actual LD instead of a |
12 |
CCLD |
13 |
- Ensure CFLAGS passed to make/compiler, but much more differently than |
14 |
is usually done due to some fun behaviour upstream that breaks binary |
15 |
asset persistence between 'make' calls. |
16 |
- Add missing remote-id's |
17 |
- Add missing (virtual) dependencies. |
18 |
|
19 |
Bug: https://github.com/houseabsolute/File-LibMagic/issues/28 |
20 |
Package-Manager: Portage-3.0.4, Repoman-2.3.22 |
21 |
Signed-off-by: Kent Fredric <kentnl <AT> gentoo.org> |
22 |
|
23 |
.../File-LibMagic/File-LibMagic-1.220.0-r1.ebuild | 50 ++++++++++++++++++++++ |
24 |
dev-perl/File-LibMagic/metadata.xml | 1 + |
25 |
2 files changed, 51 insertions(+) |
26 |
|
27 |
diff --git a/dev-perl/File-LibMagic/File-LibMagic-1.220.0-r1.ebuild b/dev-perl/File-LibMagic/File-LibMagic-1.220.0-r1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..c2d48c90888 |
30 |
--- /dev/null |
31 |
+++ b/dev-perl/File-LibMagic/File-LibMagic-1.220.0-r1.ebuild |
32 |
@@ -0,0 +1,50 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+DIST_AUTHOR="DROLSKY" |
39 |
+DIST_VERSION="1.22" |
40 |
+ |
41 |
+inherit perl-module |
42 |
+ |
43 |
+DESCRIPTION="Perl wrapper for libmagic" |
44 |
+ |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86" |
47 |
+IUSE="test" |
48 |
+RESTRICT="!test? ( test )" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ sys-apps/file |
52 |
+ virtual/perl-Carp |
53 |
+ virtual/perl-Exporter |
54 |
+ virtual/perl-XSLoader |
55 |
+ virtual/perl-Scalar-List-Utils |
56 |
+" |
57 |
+BDEPEND="${RDEPEND} |
58 |
+ dev-perl/Config-AutoConf |
59 |
+ virtual/perl-ExtUtils-CBuilder |
60 |
+ virtual/perl-ExtUtils-MakeMaker |
61 |
+ test? ( |
62 |
+ virtual/perl-File-Spec |
63 |
+ virtual/perl-File-Temp |
64 |
+ dev-perl/Test-Fatal |
65 |
+ >=virtual/perl-Test-Simple-0.960.0 |
66 |
+ ) |
67 |
+" |
68 |
+src_configure() { |
69 |
+ unset LD |
70 |
+ [[ -n "${CCLD}" ]] && export LD="${CCLD}" |
71 |
+ # Note: the usual approach of passing this to compile doesn't work here |
72 |
+ # as something is weird and recompiles the code 3 times, once in `make`, |
73 |
+ # once in `make test` and once again in `make install`, the latter clobbering |
74 |
+ # the same files generated in other passes. The only sane way to avoid this is |
75 |
+ # to convince EUMM to hardcode the settings in Makefile, and at least then, it does |
76 |
+ # the same thing in all 3 stages. BUT THIS SHOULDNT BE HAPPENING |
77 |
+ # https://github.com/houseabsolute/File-LibMagic/issues/28 |
78 |
+ myconf=( |
79 |
+ "OPTIMIZE=${CFLAGS}" |
80 |
+ ) |
81 |
+ perl-module_src_configure |
82 |
+} |
83 |
|
84 |
diff --git a/dev-perl/File-LibMagic/metadata.xml b/dev-perl/File-LibMagic/metadata.xml |
85 |
index 89daaefc1d5..f40eb4f38cd 100644 |
86 |
--- a/dev-perl/File-LibMagic/metadata.xml |
87 |
+++ b/dev-perl/File-LibMagic/metadata.xml |
88 |
@@ -14,5 +14,6 @@ |
89 |
<upstream> |
90 |
<remote-id type="cpan">File-LibMagic</remote-id> |
91 |
<remote-id type="cpan-module">File::LibMagic</remote-id> |
92 |
+ <remote-id type="cpan-module">File::LibMagic::Constants</remote-id> |
93 |
</upstream> |
94 |
</pkgmetadata> |