Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/cal3d/, media-libs/cal3d/files/
Date: Sat, 16 Oct 2021 13:59:11
Message-Id: 1634392721.d72ae6aba2dd32706bbe05b22ec18f7b8c96c505.soap@gentoo
1 commit: d72ae6aba2dd32706bbe05b22ec18f7b8c96c505
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 16 13:58:41 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 16 13:58:41 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d72ae6ab
7
8 media-libs/cal3d: port to EAPI 8
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 media-libs/cal3d/cal3d-0.11.0-r1.ebuild | 45 ++++++++++------------
13 .../cal3d/files/cal3d-0.11.0-docbook2html.patch | 25 ++++++++++++
14 media-libs/cal3d/files/cal3d-0.11.0-gcc43.patch | 4 +-
15 media-libs/cal3d/files/cal3d-0.11.0-gcc6.patch | 4 +-
16 media-libs/cal3d/files/cal3d-0.11.0-tests.patch | 4 +-
17 media-libs/cal3d/files/cal3d-0.11.0-verbose.patch | 4 +-
18 6 files changed, 54 insertions(+), 32 deletions(-)
19
20 diff --git a/media-libs/cal3d/cal3d-0.11.0-r1.ebuild b/media-libs/cal3d/cal3d-0.11.0-r1.ebuild
21 index 4ed4f9c971d..14ba7aa6fe8 100644
22 --- a/media-libs/cal3d/cal3d-0.11.0-r1.ebuild
23 +++ b/media-libs/cal3d/cal3d-0.11.0-r1.ebuild
24 @@ -1,11 +1,12 @@
25 # Copyright 1999-2021 Gentoo Authors
26 # Distributed under the terms of the GNU General Public License v2
27
28 -EAPI=5
29 -inherit epatch autotools
30 +EAPI=8
31 +
32 +inherit autotools
33
34 DESCRIPTION="Cal3D is a skeletal based character animation library"
35 -HOMEPAGE="http://home.gna.org/cal3d"
36 +HOMEPAGE="https://mp3butcher.github.io/Cal3D/"
37 SRC_URI="http://download.gna.org/cal3d/sources/${P}.tar.gz"
38
39 LICENSE="LGPL-2.1"
40 @@ -13,23 +14,22 @@ SLOT="0"
41 KEYWORDS="amd64 ~ia64 ppc x86"
42 IUSE="16bit-indices debug doc"
43
44 -DEPEND="doc? (
45 +BDEPEND="
46 + doc? (
47 app-doc/doxygen
48 app-text/docbook-sgml-utils
49 )"
50 -RDEPEND=""
51 +
52 +PATCHES=(
53 + "${FILESDIR}"/${P}-gcc43.patch
54 + "${FILESDIR}"/${P}-tests.patch
55 + "${FILESDIR}"/${P}-verbose.patch
56 + "${FILESDIR}"/${P}-gcc6.patch
57 + "${FILESDIR}"/${P}-docbook2html.patch
58 +)
59
60 src_prepare() {
61 - epatch \
62 - "${FILESDIR}"/${P}-gcc43.patch \
63 - "${FILESDIR}"/${P}-tests.patch \
64 - "${FILESDIR}"/${P}-verbose.patch \
65 - "${FILESDIR}"/${P}-gcc6.patch
66 - sed -i \
67 - -e "s:db2html:docbook2html:g" \
68 - configure.in \
69 - docs/Makefile.am \
70 - || die "sed for doc failed"
71 + default
72 eautoreconf
73 }
74
75 @@ -41,17 +41,14 @@ src_configure() {
76
77 src_compile() {
78 emake
79 +
80 if use doc; then
81 - cd docs
82 + cd docs || die
83 emake doc-api
84 emake doc-guide
85 - mkdir -p html/{guide,api}
86 - mv *.{html,gif} html/guide/
87 - mv api/html/* html/api/
88 + mkdir -p html/{guide,api} || die
89 + mv *.{html,gif} html/guide/ || die
90 + mv api/html/* html/api/ || die
91 + HTML_DOCS=( docs/html/api docs/html/guide )
92 fi
93 }
94 -
95 -src_install() {
96 - default
97 - use doc && dohtml -r docs/html/api docs/html/guide
98 -}
99
100 diff --git a/media-libs/cal3d/files/cal3d-0.11.0-docbook2html.patch b/media-libs/cal3d/files/cal3d-0.11.0-docbook2html.patch
101 new file mode 100644
102 index 00000000000..2e3e88e318e
103 --- /dev/null
104 +++ b/media-libs/cal3d/files/cal3d-0.11.0-docbook2html.patch
105 @@ -0,0 +1,25 @@
106 +--- a/configure.in
107 ++++ b/configure.in
108 +@@ -50,9 +50,9 @@
109 + AC_MSG_WARN([cannot find doxygen, unable to generate Cal3D API Reference!])
110 + fi
111 +
112 +-AC_CHECK_PROG(DB2HTML, db2html, true, false)
113 ++AC_CHECK_PROG(DB2HTML, docbook2html, true, false)
114 + if test "$DB2HTML" = false; then
115 +- AC_MSG_WARN([cannot find db2html, unable to generate Cal3D User's Guide!])
116 ++ AC_MSG_WARN([cannot find docbook2html, unable to generate Cal3D User's Guide!])
117 + fi
118 +
119 + AC_PATH_PROG(BLENDER, [blender])
120 +--- a/docs/Makefile.am
121 ++++ b/docs/Makefile.am
122 +@@ -18,7 +18,7 @@
123 + doxygen cal3d.doxygen
124 +
125 + doc-guide:
126 +- db2html guide.sgml
127 ++ docbook2html guide.sgml
128 +
129 + clean-local:
130 + rm -rf guide guide.junk
131
132 diff --git a/media-libs/cal3d/files/cal3d-0.11.0-gcc43.patch b/media-libs/cal3d/files/cal3d-0.11.0-gcc43.patch
133 index 80d73b27474..6f5bad7293e 100644
134 --- a/media-libs/cal3d/files/cal3d-0.11.0-gcc43.patch
135 +++ b/media-libs/cal3d/files/cal3d-0.11.0-gcc43.patch
136 @@ -1,5 +1,5 @@
137 ---- src/cal3d/platform.h.old 2008-04-27 23:08:41.000000000 +0200
138 -+++ src/cal3d/platform.h 2008-04-27 23:08:56.000000000 +0200
139 +--- a/src/cal3d/platform.h
140 ++++ b/src/cal3d/platform.h
141 @@ -77,6 +77,7 @@
142 // standard includes
143 #include <stdlib.h>
144
145 diff --git a/media-libs/cal3d/files/cal3d-0.11.0-gcc6.patch b/media-libs/cal3d/files/cal3d-0.11.0-gcc6.patch
146 index 98fc546eace..f17d063e935 100644
147 --- a/media-libs/cal3d/files/cal3d-0.11.0-gcc6.patch
148 +++ b/media-libs/cal3d/files/cal3d-0.11.0-gcc6.patch
149 @@ -1,5 +1,5 @@
150 ---- cal3d-0.11.0/src/cal3d/loader.cpp.old 2016-09-24 00:58:09.968689367 -0400
151 -+++ cal3d-0.11.0/src/cal3d/loader.cpp 2016-09-24 01:06:54.867068386 -0400
152 +--- a/src/cal3d/loader.cpp
153 ++++ b/src/cal3d/loader.cpp
154 @@ -886,7 +886,7 @@
155 if(!dataSrc.ok())
156 {
157
158 diff --git a/media-libs/cal3d/files/cal3d-0.11.0-tests.patch b/media-libs/cal3d/files/cal3d-0.11.0-tests.patch
159 index 3a6754f4015..d676d86f2d9 100644
160 --- a/media-libs/cal3d/files/cal3d-0.11.0-tests.patch
161 +++ b/media-libs/cal3d/files/cal3d-0.11.0-tests.patch
162 @@ -1,5 +1,5 @@
163 ---- tests/Makefile.am.old 2014-10-27 12:14:44.534607920 +0100
164 -+++ tests/Makefile.am 2014-10-27 12:16:00.825891248 +0100
165 +--- a/tests/Makefile.am
166 ++++ b/tests/Makefile.am
167 @@ -14,7 +14,7 @@
168 EXTRA_DIST = \
169 $(wildcard cal3d_converter/base.??f)
170
171 diff --git a/media-libs/cal3d/files/cal3d-0.11.0-verbose.patch b/media-libs/cal3d/files/cal3d-0.11.0-verbose.patch
172 index a6dfbd677bf..c50918cd899 100644
173 --- a/media-libs/cal3d/files/cal3d-0.11.0-verbose.patch
174 +++ b/media-libs/cal3d/files/cal3d-0.11.0-verbose.patch
175 @@ -1,5 +1,5 @@
176 ---- tests/run.in.old 2012-06-29 13:27:55.413765822 +0200
177 -+++ tests/run.in 2012-06-29 13:29:02.092084095 +0200
178 +--- a/tests/run.in
179 ++++ b/tests/run.in
180 @@ -43,7 +43,7 @@
181 exit 1
182 ;;