Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/rlog/, dev-libs/rlog/files/
Date: Sun, 31 Dec 2017 12:44:42
Message-Id: 1514724263.ae1c756e5d7576799a2f261d6d432c2d9ff256e8.soap@gentoo
1 commit: ae1c756e5d7576799a2f261d6d432c2d9ff256e8
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 31 12:40:34 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 31 12:44:23 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae1c756e
7
8 dev-libs/rlog: Port to EAPI 6
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 dev-libs/rlog/files/rlog-1.3.7-gcc-4.3.patch | 4 +-
13 .../rlog/files/rlog-1.4-fix-build-system.patch | 59 ++++++++++++++++++++++
14 dev-libs/rlog/rlog-1.4.ebuild | 21 +++++---
15 3 files changed, 76 insertions(+), 8 deletions(-)
16
17 diff --git a/dev-libs/rlog/files/rlog-1.3.7-gcc-4.3.patch b/dev-libs/rlog/files/rlog-1.3.7-gcc-4.3.patch
18 index 5e4bb91bf1e..07770791cd7 100644
19 --- a/dev-libs/rlog/files/rlog-1.3.7-gcc-4.3.patch
20 +++ b/dev-libs/rlog/files/rlog-1.3.7-gcc-4.3.patch
21 @@ -1,5 +1,5 @@
22 ---- rlog/RLogChannel.cpp
23 -+++ rlog/RLogChannel.cpp
24 +--- a/rlog/RLogChannel.cpp
25 ++++ b/rlog/RLogChannel.cpp
26 @@ -20,6 +20,7 @@
27 #include "RLogChannel.h"
28 #include "rlog.h"
29
30 diff --git a/dev-libs/rlog/files/rlog-1.4-fix-build-system.patch b/dev-libs/rlog/files/rlog-1.4-fix-build-system.patch
31 new file mode 100644
32 index 00000000000..b7959a79cd0
33 --- /dev/null
34 +++ b/dev-libs/rlog/files/rlog-1.4-fix-build-system.patch
35 @@ -0,0 +1,59 @@
36 +--- a/docs/Makefile.am
37 ++++ b/docs/Makefile.am
38 +@@ -1,15 +1,13 @@
39 +
40 + SOURCES = index.dox channel.dox component.dox
41 +
42 +-docdir = $(datadir)/doc
43 +-pkgdocdir = $(docdir)/$(PACKAGE)
44 + #pkghtmldir = $(pkgdocdir)/html
45 +
46 +
47 + # have both html and html/index.html to force build of index.html if necessary
48 + EXTRA_DIST = latex/refman.pdf html html/index.html $(SOURCES)
49 +
50 +-pkgdoc_DATA = \
51 ++pdf_DATA = \
52 + latex/refman.pdf
53 +
54 + #pkghtml_DATA = \
55 +@@ -17,22 +15,21 @@
56 +
57 + if BUILD_DOCS
58 + latex/refman.pdf: html/index.html
59 +- -cd latex && make
60 ++ $(MAKE) -C latex
61 +
62 + html/index.html: ../Doxyfile $(SOURCES)
63 +- -rm -rf html
64 +- -cd .. && @DOXYGEN@ Doxyfile
65 ++ rm -rf html && $(DOXYGEN) Doxyfile
66 +
67 + clean-local:
68 +- -rm -rf html
69 +- -rm -rf latex
70 ++ rm -rf html
71 ++ rm -rf latex
72 + endif
73 +
74 + all-local: html/index.html
75 +
76 +-install-data-local: all-local
77 +- -echo installing to ${DESTDIR}${pkgdocdir}/html
78 +- /bin/sh ../mkinstalldirs ${DESTDIR}${pkgdocdir}/html
79 +- install html/* ${DESTDIR}${pkgdocdir}/html
80 ++install-data-hook: all-local
81 ++ -echo installing to $(DESTDIR)$(htmldir)
82 ++ /bin/sh ../mkinstalldirs $(DESTDIR)$(htmldir)
83 ++ install html/* $(DESTDIR)$(htmldir)
84 +
85 +
86 +--- a/Makefile.am
87 ++++ b/Makefile.am
88 +@@ -10,6 +10,3 @@
89 + pkgconfigdir = $(libdir)/pkgconfig
90 + pkgconfig_DATA = librlog.pc
91 +
92 +-documentation:
93 +- cd docs && make
94 +-
95
96 diff --git a/dev-libs/rlog/rlog-1.4.ebuild b/dev-libs/rlog/rlog-1.4.ebuild
97 index c24fabb7a48..0a937d761f3 100644
98 --- a/dev-libs/rlog/rlog-1.4.ebuild
99 +++ b/dev-libs/rlog/rlog-1.4.ebuild
100 @@ -1,8 +1,9 @@
101 -# Copyright 1999-2014 Gentoo Foundation
102 +# Copyright 1999-2017 Gentoo Foundation
103 # Distributed under the terms of the GNU General Public License v2
104
105 -EAPI=2
106 -inherit eutils
107 +EAPI=6
108 +
109 +inherit autotools
110
111 DESCRIPTION="A C++ logging library"
112 HOMEPAGE="http://www.arg0.net/rlog"
113 @@ -13,11 +14,19 @@ SLOT="0"
114 KEYWORDS="amd64 ~arm ~ppc sparc x86"
115 IUSE=""
116
117 +PATCHES=(
118 + "${FILESDIR}"/${PN}-1.3.7-gcc-4.3.patch
119 + "${FILESDIR}"/${PN}-1.4-fix-build-system.patch
120 +)
121 +
122 src_prepare() {
123 - epatch "${FILESDIR}"/${PN}-1.3.7-gcc-4.3.patch
124 + default
125 + eautoreconf
126 }
127
128 src_install() {
129 - emake DESTDIR="${D}" pkgdocdir="/usr/share/doc/${PF}" install || die
130 - dodoc AUTHORS ChangeLog README
131 + default
132 +
133 + # package installs .pc files
134 + find "${D}" -name '*.la' -delete || die
135 }