1 |
commit: dfa21cd91daf4a6c5e5562ba31f000a7f90e51b2 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 31 11:54:57 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 31 12:43:53 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfa21cd9 |
7 |
|
8 |
dev-libs/log4cpp: Port to EAPI 6 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
dev-libs/log4cpp/files/1.0-asneeded.patch | 4 +-- |
13 |
dev-libs/log4cpp/files/1.0-doc_install_path.patch | 7 ++-- |
14 |
.../log4cpp/files/log4cpp-1.1-automake-1.13.patch | 7 ++-- |
15 |
dev-libs/log4cpp/files/log4cpp-1.1-cmath-fix.patch | 4 +-- |
16 |
dev-libs/log4cpp/log4cpp-1.1.ebuild | 38 ++++++++++++---------- |
17 |
5 files changed, 32 insertions(+), 28 deletions(-) |
18 |
|
19 |
diff --git a/dev-libs/log4cpp/files/1.0-asneeded.patch b/dev-libs/log4cpp/files/1.0-asneeded.patch |
20 |
index e9fb05f4ae9..7e88c545a37 100644 |
21 |
--- a/dev-libs/log4cpp/files/1.0-asneeded.patch |
22 |
+++ b/dev-libs/log4cpp/files/1.0-asneeded.patch |
23 |
@@ -1,7 +1,7 @@ |
24 |
http://bugs.gentoo.org/247067 |
25 |
|
26 |
---- m4/ACX_PTHREAD.m4 |
27 |
-+++ m4/ACX_PTHREAD.m4 |
28 |
+--- a/m4/ACX_PTHREAD.m4 |
29 |
++++ b/m4/ACX_PTHREAD.m4 |
30 |
@@ -266,6 +266,117 @@ |
31 |
else |
32 |
PTHREAD_CC=$CC |
33 |
|
34 |
diff --git a/dev-libs/log4cpp/files/1.0-doc_install_path.patch b/dev-libs/log4cpp/files/1.0-doc_install_path.patch |
35 |
index 8f9ef513761..abe88dfd123 100644 |
36 |
--- a/dev-libs/log4cpp/files/1.0-doc_install_path.patch |
37 |
+++ b/dev-libs/log4cpp/files/1.0-doc_install_path.patch |
38 |
@@ -1,11 +1,10 @@ |
39 |
---- doc/Makefile.am.orig 2007-10-13 09:39:44.000000000 +0200 |
40 |
-+++ doc/Makefile.am 2007-10-13 09:40:03.000000000 +0200 |
41 |
-@@ -1,7 +1,7 @@ |
42 |
+--- a/doc/Makefile.am |
43 |
++++ b/doc/Makefile.am |
44 |
+@@ -1,7 +1,6 @@ |
45 |
SUBDIRS = html |
46 |
|
47 |
man3dir = $(mandir)/man3 |
48 |
-docdir = $(prefix)/doc/@PACKAGE_TARNAME@-@PACKAGE_VERSION@ |
49 |
-+docdir = $(prefix)/share/doc/@PACKAGE_TARNAME@-@PACKAGE_VERSION@ |
50 |
|
51 |
EXTRA_DIST = \ |
52 |
mainPage.txt |
53 |
|
54 |
diff --git a/dev-libs/log4cpp/files/log4cpp-1.1-automake-1.13.patch b/dev-libs/log4cpp/files/log4cpp-1.1-automake-1.13.patch |
55 |
index ffac4a1dbfc..3e7cb560a50 100644 |
56 |
--- a/dev-libs/log4cpp/files/log4cpp-1.1-automake-1.13.patch |
57 |
+++ b/dev-libs/log4cpp/files/log4cpp-1.1-automake-1.13.patch |
58 |
@@ -1,11 +1,12 @@ |
59 |
---- configure.ac.orig 2015-01-14 09:37:13.616446476 +0300 |
60 |
-+++ configure.ac 2015-01-14 09:37:26.119445770 +0300 |
61 |
-@@ -17,7 +17,7 @@ |
62 |
+--- a/configure.in |
63 |
++++ b/configure.in |
64 |
+@@ -17,7 +17,8 @@ |
65 |
|
66 |
#AC_CONFIG_SRCDIR(configure.in) |
67 |
AC_CONFIG_AUX_DIR(config) |
68 |
-AM_CONFIG_HEADER(include/config.h) |
69 |
+AC_CONFIG_HEADERS([include/config.h]) |
70 |
++AC_CONFIG_MACRO_DIR([m4]) |
71 |
|
72 |
AM_INIT_AUTOMAKE |
73 |
|
74 |
|
75 |
diff --git a/dev-libs/log4cpp/files/log4cpp-1.1-cmath-fix.patch b/dev-libs/log4cpp/files/log4cpp-1.1-cmath-fix.patch |
76 |
index fe3c810814b..0180580717a 100644 |
77 |
--- a/dev-libs/log4cpp/files/log4cpp-1.1-cmath-fix.patch |
78 |
+++ b/dev-libs/log4cpp/files/log4cpp-1.1-cmath-fix.patch |
79 |
@@ -1,5 +1,5 @@ |
80 |
---- src/PatternLayout.cpp.orig 2015-01-14 09:24:32.332489499 +0300 |
81 |
-+++ src/PatternLayout.cpp 2015-01-14 09:23:18.162493691 +0300 |
82 |
+--- a/src/PatternLayout.cpp |
83 |
++++ b/src/PatternLayout.cpp |
84 |
@@ -24,6 +24,7 @@ |
85 |
#include <iomanip> |
86 |
#include <ctime> |
87 |
|
88 |
diff --git a/dev-libs/log4cpp/log4cpp-1.1.ebuild b/dev-libs/log4cpp/log4cpp-1.1.ebuild |
89 |
index bea580222ca..d27aa21fff1 100644 |
90 |
--- a/dev-libs/log4cpp/log4cpp-1.1.ebuild |
91 |
+++ b/dev-libs/log4cpp/log4cpp-1.1.ebuild |
92 |
@@ -1,11 +1,9 @@ |
93 |
# Copyright 1999-2017 Gentoo Foundation |
94 |
# Distributed under the terms of the GNU General Public License v2 |
95 |
|
96 |
-EAPI=5 |
97 |
+EAPI=6 |
98 |
|
99 |
-AT_M4DIR="m4" |
100 |
-AUTOTOOLS_AUTORECONF=1 |
101 |
-inherit autotools-multilib |
102 |
+inherit autotools multilib-minimal |
103 |
|
104 |
DESCRIPTION="C++ classes for flexible logging to files, syslog and other destinations" |
105 |
HOMEPAGE="http://log4cpp.sourceforge.net/" |
106 |
@@ -19,14 +17,12 @@ IUSE="doc static-libs test" |
107 |
DEPEND="doc? ( app-doc/doxygen )" |
108 |
RDEPEND="" |
109 |
|
110 |
-DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) |
111 |
- |
112 |
PATCHES=( |
113 |
- "${FILESDIR}/1.0-doc_install_path.patch" |
114 |
- "${FILESDIR}/1.0-gcc43.patch" |
115 |
- "${FILESDIR}/1.0-asneeded.patch" |
116 |
- "${FILESDIR}/${P}-cmath-fix.patch" |
117 |
- "${FILESDIR}/${P}-automake-1.13.patch" |
118 |
+ "${FILESDIR}"/1.0-doc_install_path.patch |
119 |
+ "${FILESDIR}"/1.0-gcc43.patch |
120 |
+ "${FILESDIR}"/1.0-asneeded.patch |
121 |
+ "${FILESDIR}"/${P}-cmath-fix.patch |
122 |
+ "${FILESDIR}"/${P}-automake-1.13.patch |
123 |
) |
124 |
|
125 |
S="${WORKDIR}/${PN}" |
126 |
@@ -36,6 +32,8 @@ MULTILIB_CHOST_TOOLS=( |
127 |
) |
128 |
|
129 |
src_prepare() { |
130 |
+ default |
131 |
+ |
132 |
mv configure.{in,ac} || die |
133 |
|
134 |
# Build tests conditionally |
135 |
@@ -43,13 +41,19 @@ src_prepare() { |
136 |
sed -i -e '/^SUBDIRS/s/ tests//' Makefile.am || die |
137 |
fi |
138 |
|
139 |
- autotools-multilib_src_prepare |
140 |
+ eautoreconf |
141 |
} |
142 |
|
143 |
multilib_src_configure() { |
144 |
- local myeconfargs=( |
145 |
- --without-idsa |
146 |
- $(use_enable doc doxygen) |
147 |
- ) |
148 |
- autotools-utils_src_configure |
149 |
+ ECONF_SOURCE=${S} econf \ |
150 |
+ --without-idsa \ |
151 |
+ $(use_enable doc doxygen) \ |
152 |
+ $(use_enable static-libs static) |
153 |
+} |
154 |
+ |
155 |
+multilib_src_install_all() { |
156 |
+ einstalldocs |
157 |
+ |
158 |
+ # package installs .pc files |
159 |
+ find "${D}" -name '*.la' -delete || die |
160 |
} |