---- src/calc.yy
-+++ src/calc.yy
+--- a/calc.yy
++++ b/calc.yy
@@ -8,6 +8,7 @@
#include <cmath>
#include <vector>
#include <sstream>
---- src/tinyxml/tinyxml.h
-+++ src/tinyxml/tinyxml.h
+--- a/tinyxml/tinyxml.h
++++ b/tinyxml/tinyxml.h
@@ -28,6 +28,8 @@
#include <string>\r
#include <stdio.h>\r
\r
class TiXmlDocument;\r
class TiXmlElement;\r
---- src/tinyxml/tinyxmlparser.cpp
-+++ src/tinyxml/tinyxmlparser.cpp
+--- a/tinyxml/tinyxmlparser.cpp
++++ b/tinyxml/tinyxmlparser.cpp
@@ -24,6 +24,7 @@
\r
#include "tinyxml.h"\r
---- calc.yy.old 2011-05-18 12:26:38.701666366 +0200
-+++ calc.yy 2011-05-18 12:27:43.020672135 +0200
+--- a/calc.yy 2011-05-18 12:26:38.701666366 +0200
++++ b/calc.yy 2011-05-18 12:27:43.020672135 +0200
@@ -17,7 +17,7 @@
#include "formula.h"
#include "formula-variables.h"
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit eutils
+EAPI=7
DESCRIPTION="A Library of Bullet Markup Language"
-HOMEPAGE="http://shinh.skr.jp/libbulletml/index_en.html"
-SRC_URI="http://shinh.skr.jp/libbulletml/${P}.tar.bz2"
+HOMEPAGE="https://shinh.skr.jp/libbulletml/index_en.html"
+SRC_URI="https://shinh.skr.jp/libbulletml/${P}.tar.bz2"
LICENSE="BSD"
SLOT="0"
DEPEND="dev-libs/boost"
RDEPEND=${DEPEND}
-S=${WORKDIR}/${PN#lib}/src
+PATCHES=( "${FILESDIR}"/${P}-gcc4{3,6}.patch )
+
+S="${WORKDIR}"/${PN#lib}/src
src_prepare() {
- epatch "${FILESDIR}"/${P}-gcc43.patch \
- "${FILESDIR}"/${P}-gcc46.patch
+ default
rm -r boost || die
# don't override the system-wide flags