1 |
commit: 4d73f12f08f5ba7edeed58f5b5fd02e38346ad97 |
2 |
Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 12 20:53:04 2022 +0000 |
4 |
Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 12 21:31:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d73f12f |
7 |
|
8 |
net-print/foomatic-db-engine: Port to EAPI 8 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/819276 |
11 |
Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org> |
12 |
|
13 |
.../files/4.0.7-perl-module.patch | 2 -- |
14 |
.../files/4.0.7-respect-ldflag.patch | 4 +-- |
15 |
....ebuild => foomatic-db-engine-4.0.12-r1.ebuild} | 34 ++++++++++++---------- |
16 |
3 files changed, 20 insertions(+), 20 deletions(-) |
17 |
|
18 |
diff --git a/net-print/foomatic-db-engine/files/4.0.7-perl-module.patch b/net-print/foomatic-db-engine/files/4.0.7-perl-module.patch |
19 |
index dbb53feb2a87..172f37fc42d3 100644 |
20 |
--- a/net-print/foomatic-db-engine/files/4.0.7-perl-module.patch |
21 |
+++ b/net-print/foomatic-db-engine/files/4.0.7-perl-module.patch |
22 |
@@ -1,5 +1,3 @@ |
23 |
-diff --git a/Makefile.in b/Makefile.in |
24 |
-index 3014185..81e090d 100644 |
25 |
--- a/Makefile.in |
26 |
+++ b/Makefile.in |
27 |
@@ -42,7 +42,7 @@ LOCAL_LIBDIR=@LOCAL_LIBDIR@ |
28 |
|
29 |
diff --git a/net-print/foomatic-db-engine/files/4.0.7-respect-ldflag.patch b/net-print/foomatic-db-engine/files/4.0.7-respect-ldflag.patch |
30 |
index 9e6071276a4e..7a62faabc684 100644 |
31 |
--- a/net-print/foomatic-db-engine/files/4.0.7-respect-ldflag.patch |
32 |
+++ b/net-print/foomatic-db-engine/files/4.0.7-respect-ldflag.patch |
33 |
@@ -1,5 +1,5 @@ |
34 |
---- foomatic-db-engine-4.0.2/Makefile.in.orig 2009-07-23 11:45:28.487999828 +0200 |
35 |
-+++ foomatic-db-engine-4.0.2/Makefile.in 2009-07-23 11:45:53.939525006 +0200 |
36 |
+--- a/Makefile.in |
37 |
++++ b/Makefile.in |
38 |
@@ -231,10 +231,10 @@ |
39 |
( cd lib && $(PERL) Makefile.PL verbose INSTALLDIRS=$(PERL_INSTALLDIRS) ) |
40 |
|
41 |
|
42 |
diff --git a/net-print/foomatic-db-engine/foomatic-db-engine-4.0.12.ebuild b/net-print/foomatic-db-engine/foomatic-db-engine-4.0.12-r1.ebuild |
43 |
similarity index 82% |
44 |
rename from net-print/foomatic-db-engine/foomatic-db-engine-4.0.12.ebuild |
45 |
rename to net-print/foomatic-db-engine/foomatic-db-engine-4.0.12-r1.ebuild |
46 |
index 02025f3d87b6..ff3713e2c096 100644 |
47 |
--- a/net-print/foomatic-db-engine/foomatic-db-engine-4.0.12.ebuild |
48 |
+++ b/net-print/foomatic-db-engine/foomatic-db-engine-4.0.12-r1.ebuild |
49 |
@@ -1,9 +1,9 @@ |
50 |
-# Copyright 1999-2021 Gentoo Authors |
51 |
+# Copyright 1999-2022 Gentoo Authors |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
|
54 |
-EAPI=5 |
55 |
+EAPI=8 |
56 |
|
57 |
-inherit epatch perl-module versionator autotools |
58 |
+inherit autotools perl-module |
59 |
|
60 |
DESCRIPTION="Generates ppds out of xml foomatic printer description files" |
61 |
HOMEPAGE="http://www.linuxprinting.org/foomatic.html" |
62 |
@@ -12,52 +12,54 @@ SRC_URI="http://www.openprinting.org/download/foomatic/${P}.tar.gz" |
63 |
LICENSE="GPL-2" |
64 |
SLOT="0" |
65 |
KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86" |
66 |
-IUSE="" |
67 |
|
68 |
-DEPEND="net-print/cups |
69 |
+BDEPEND=" |
70 |
+ net-print/cups |
71 |
virtual/pkgconfig" |
72 |
RDEPEND=" |
73 |
dev-libs/libxml2 |
74 |
>=net-print/cups-filters-1.0.43-r1[foomatic] |
75 |
" |
76 |
+DEPEND="${RDEPEND}" |
77 |
PDEPEND="net-print/foomatic-db" |
78 |
|
79 |
src_prepare() { |
80 |
- epatch \ |
81 |
+ default |
82 |
+ eapply \ |
83 |
"${FILESDIR}"/4.0.7-perl-module.patch \ |
84 |
"${FILESDIR}"/4.0.7-respect-ldflag.patch \ |
85 |
"${FILESDIR}"/4.0.12-use-pkgconfig.patch |
86 |
sed -i -e "s:@LIB_CUPS@:$(cups-config --serverbin):" Makefile.in || die |
87 |
eautoreconf |
88 |
|
89 |
- cd lib |
90 |
+ cd lib || die |
91 |
perl-module_src_prepare |
92 |
} |
93 |
|
94 |
src_configure() { |
95 |
default |
96 |
- emake defaults |
97 |
|
98 |
- cd lib |
99 |
+ cd lib || die |
100 |
perl-module_src_configure |
101 |
} |
102 |
|
103 |
src_compile() { |
104 |
+ emake defaults |
105 |
default |
106 |
|
107 |
- cd lib |
108 |
+ cd lib || die |
109 |
perl-module_src_compile |
110 |
} |
111 |
|
112 |
+src_test() { |
113 |
+ cd lib || die |
114 |
+ perl-module_src_test |
115 |
+} |
116 |
+ |
117 |
src_install() { |
118 |
default |
119 |
dodoc USAGE |
120 |
|
121 |
- cd lib |
122 |
+ cd lib || die |
123 |
perl-module_src_install |
124 |
} |
125 |
- |
126 |
-src_test() { |
127 |
- cd lib |
128 |
- perl-module_src_test |
129 |
-} |