mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-31 09:08:08 -07:00
app-office/dia2code: fix compile, RDEPEND, EAPI=8
- fix unknown uint8_t - fix RDEPEND wrong assign - EAPI=8 - small refactor Closes: https://bugs.gentoo.org/895298 Closes: https://bugs.gentoo.org/886083 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
EAPI=8
|
||||
|
||||
inherit gnome2
|
||||
|
||||
DESCRIPTION="Convert UML diagrams produced with Dia to various source code flavours"
|
||||
@@ -14,16 +15,18 @@ KEYWORDS="amd64 ~ia64 ~ppc ~sparc x86"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
DEPEND="
|
||||
dev-libs/libxml2
|
||||
RDEPEND="dev-libs/libxml2"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( app-shells/bash )
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-fix-imports.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# Script makes use of arrays
|
||||
sed -e 's:/bin/sh:/bin/bash:' \
|
||||
-i tests/tests.sh || die
|
||||
sed -e 's:/bin/sh:/bin/bash:' -i tests/tests.sh || die
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
12
app-office/dia2code/files/dia2code-1.0.0-fix-imports.patch
Normal file
12
app-office/dia2code/files/dia2code-1.0.0-fix-imports.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
https://bugs.gentoo.org/895298
|
||||
|
||||
--- a/src/decls.hpp
|
||||
+++ b/src/decls.hpp
|
||||
@@ -23,6 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#include "config.h"
|
||||
|
||||
#include "umlPackage.hpp"
|
||||
+#include <cinttypes>
|
||||
|
||||
/* Package processing auxiliary structure:
|
||||
"Declarations" are UML packages (which map to IDL module or C++
|
||||
Reference in New Issue
Block a user