diff options
author | Sebastian Pipping <sping@gentoo.org> | 2017-01-16 23:33:41 +0100 |
---|---|---|
committer | Sebastian Pipping <sping@gentoo.org> | 2017-01-16 23:35:31 +0100 |
commit | 5aa2ae5d812fea40ebf0e02d3f98be804488dc18 (patch) | |
tree | 9b4b02d8f0ef7726a378a042919a650c8b3bfc0d /app-text/dvisvgm | |
parent | media-gfx/freewrl-1.22.x: fix missing slot specifier on media-gfx/glew (diff) | |
download | gentoo-5aa2ae5d812fea40ebf0e02d3f98be804488dc18.tar.gz gentoo-5aa2ae5d812fea40ebf0e02d3f98be804488dc18.tar.bz2 gentoo-5aa2ae5d812fea40ebf0e02d3f98be804488dc18.zip |
app-text/dvisvgm: Fix compilation (bug #605404)
Patch is taken from upstream:
https://github.com/mgieseki/dvisvgm/commit/4aaf49080cfc84c2aa4a271b8dd12e9e9fa8b7bd
Homepage is updated as well.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'app-text/dvisvgm')
-rw-r--r-- | app-text/dvisvgm/dvisvgm-2.0.4.ebuild | 5 | ||||
-rw-r--r-- | app-text/dvisvgm/files/dvisvgm-2.0.4-c99-compile.patch | 24 |
2 files changed, 27 insertions, 2 deletions
diff --git a/app-text/dvisvgm/dvisvgm-2.0.4.ebuild b/app-text/dvisvgm/dvisvgm-2.0.4.ebuild index 50cc9f206e1c..0a6ec0fa2bdc 100644 --- a/app-text/dvisvgm/dvisvgm-2.0.4.ebuild +++ b/app-text/dvisvgm/dvisvgm-2.0.4.ebuild @@ -4,10 +4,10 @@ EAPI=5 -inherit toolchain-funcs flag-o-matic autotools +inherit eutils toolchain-funcs flag-o-matic autotools DESCRIPTION="Converts DVI files to SVG" -HOMEPAGE="http://dvisvgm.sourceforge.net/" +HOMEPAGE="http://dvisvgm.bplaced.net/" SRC_URI="https://github.com/mgieseki/dvisvgm/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-3" @@ -33,6 +33,7 @@ DEPEND="${RDEPEND} test? ( dev-cpp/gtest )" src_prepare() { + epatch "${FILESDIR}"/${P}-c99-compile.patch eautoreconf } diff --git a/app-text/dvisvgm/files/dvisvgm-2.0.4-c99-compile.patch b/app-text/dvisvgm/files/dvisvgm-2.0.4-c99-compile.patch new file mode 100644 index 000000000000..87df1e031001 --- /dev/null +++ b/app-text/dvisvgm/files/dvisvgm-2.0.4-c99-compile.patch @@ -0,0 +1,24 @@ +From 4aaf49080cfc84c2aa4a271b8dd12e9e9fa8b7bd Mon Sep 17 00:00:00 2001 +From: Martin Gieseking <martin.gieseking@uos.de> +Date: Wed, 16 Nov 2016 18:36:09 +0100 +Subject: [PATCH] ensure compiling C files with --std=c99 + +--- + configure.ac | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 1044096..6a317be 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -17,8 +17,9 @@ AH_TEMPLATE([TARGET_SYSTEM], [The machine triplet of the target system]) + AC_DEFINE_UNQUOTED([TARGET_SYSTEM], ["$target"]) + + # Checks for programs. +-AC_PROG_CXX + AC_PROG_CC ++AC_PROG_CC_C99 ++AC_PROG_CXX + AX_CXX_COMPILE_STDCXX([11], [noext]) + + AC_PROG_RANLIB |