diff options
author | Sam James <sam@gentoo.org> | 2024-06-16 11:27:54 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-06-16 11:28:29 +0100 |
commit | 59e1730d327714f8ec62b9972a70e3efb8687df5 (patch) | |
tree | 005dda664f0ee7fa4900d88763040dcbc504cb2d /app-text | |
parent | media-libs/woff2: fix strict aliasing violation (diff) | |
download | gentoo-59e1730d327714f8ec62b9972a70e3efb8687df5.tar.gz gentoo-59e1730d327714f8ec62b9972a70e3efb8687df5.tar.bz2 gentoo-59e1730d327714f8ec62b9972a70e3efb8687df5.zip |
app-text/dvisvgm: add 3.3
Filter LTO for now as with -fno-semantic-interposition, I get:
```
Font.hpp:370:7: error: virtual table of type 'struct VirtualFontProxy' violates one definition rule [-Werror=odr]
370 | class VirtualFontProxy : public VirtualFont {
| ^
Font.hpp:370:7: note: the conflicting type defined in another translation unit
370 | class VirtualFontProxy : public VirtualFont {
| ^
<built-in>: note: virtual method '__cxa_pure_virtual'
Font.hpp:64:32: note: ought to match virtual method 'scaleFactor' but does not
64 | virtual double scaleFactor () const {return scaledSize()/designSize();}
| ^
Font.hpp:304:7: error: virtual table of type 'struct NativeFontProxy' violates one definition rule [-Werror=odr]
304 | class NativeFontProxy : public NativeFont {
| ^
Font.hpp:304:7: note: the conflicting type defined in another translation unit
304 | class NativeFontProxy : public NativeFont {
| ^
<built-in>: note: virtual method '__cxa_pure_virtual'
Font.hpp:140:30: note: ought to match virtual method 'setCharMapID' but does not
140 | virtual void setCharMapID (const CharMapID &id) {}
| ^
Font.hpp:201:7: error: virtual table of type 'struct PhysicalFontProxy' violates one definition rule [-Werror=odr]
201 | class PhysicalFontProxy : public PhysicalFont {
| ^
Font.hpp:201:7: note: the conflicting type defined in another translation unit
201 | class PhysicalFontProxy : public PhysicalFont {
| ^
<built-in>: note: virtual method '__cxa_pure_virtual'
Font.hpp:64:32: note: ought to match virtual method 'scaleFactor' but does not
64 | virtual double scaleFactor () const {return scaledSize()/designSize();}
| ^
lto1: some warnings being treated as errors
```
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/dvisvgm/Manifest | 1 | ||||
-rw-r--r-- | app-text/dvisvgm/dvisvgm-3.3.ebuild | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/app-text/dvisvgm/Manifest b/app-text/dvisvgm/Manifest index 9c4090ec0f05..447d2f807ec5 100644 --- a/app-text/dvisvgm/Manifest +++ b/app-text/dvisvgm/Manifest @@ -3,3 +3,4 @@ DIST dvisvgm-3.0.4.tar.gz 2970986 BLAKE2B 2a8cff58cc728c833c74a44af1139529eab433 DIST dvisvgm-3.1.2.tar.gz 2940106 BLAKE2B 05672e2f6b2248e0a28548dae52aa6f6d5f3c599417a9adf7a46d1f8abfeafe4840b01dcbda4068cd3d522c0c1fe2e2f87fedce7678eb4a5630d6b482025afae SHA512 2d98c9830c0280975c52d3adfa146a4681c2f4e955fe33efc55e25f7e6f2133ad21063bfdbafabca37bf0315efec4eff0bb32dcfe13755a70c1d41898449ab19 DIST dvisvgm-3.1.tar.gz 2908747 BLAKE2B f7544d291fbabf1bb126c97077b15296369815ae0ae8baa2b23d5831d8a6788673af13e0d44c12028be1cef319f83117b0842693810fcc3e5c14263999b41d9e SHA512 8e019eb54f0ad4a5f0e6241e2a5223582da723c7692598278668c1220d7769f161895eb292be0a95771ea7b3e65e8fb83052b7b1f6a6432276fd013e00fd7e51 DIST dvisvgm-3.2.tar.gz 2940355 BLAKE2B 51a00b948a7ecaa68cee78d484813622c449eb2876a326051f93bb62304bfd174c443cf2eb192bb7c46e28065fe53001ada283002d30949bf39a69270c387dd4 SHA512 718ce9cd1cc8c826859df74eccd8e05dfb1c42f0defb57cdc99910957d009044e0e8a1854ff7fcde739cb832b2559976d3025dbf4cfda9e4cdea85398558d730 +DIST dvisvgm-3.3.tar.gz 2949759 BLAKE2B 37e69aa87fb1b9e14e013d28ef17ecbd89ac5cbbec6206a2e4610a0dadb987cbfcfea72ff17e0150e8b4c20ab27c43a0619538709439dc0eea112ac43b7ec8c7 SHA512 d54121dd1dfeba94dc5ed787dcc55f5287d695d8e2e07cbdffd064e9d97e5368a2df4af794b13d1ef4ea579ea13d7a86c781de30f9d58f5fe3034e6e50b1f2e5 diff --git a/app-text/dvisvgm/dvisvgm-3.3.ebuild b/app-text/dvisvgm/dvisvgm-3.3.ebuild new file mode 100644 index 000000000000..f71fde50a734 --- /dev/null +++ b/app-text/dvisvgm/dvisvgm-3.3.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic + +DESCRIPTION="Converts DVI files to SVG" +HOMEPAGE="https://dvisvgm.de/" +SRC_URI="https://github.com/mgieseki/dvisvgm/releases/download/${PV}/${P}.tar.gz" + +# dvisvgm: GPL-3 +# Boost (tiny part, one header): Boost-1.0 +# md5: || ( public-domain BSD-1 ) +# clipper: Boost-1.0 +# variant: Boost-1.0 +LICENSE="GPL-3 Boost-1.0 || ( public-domain BSD-1 )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=app-arch/brotli-1.0.5:= + app-text/ghostscript-gpl:= + dev-libs/kpathsea:= + >=dev-libs/xxhash-0.8.1 + >=media-gfx/potrace-1.10-r1 + media-libs/freetype:2 + >=media-libs/woff2-1.0.2 + sys-libs/zlib + virtual/tex-base +" +DEPEND=" + ${RDEPEND} + test? ( >=dev-cpp/gtest-1.11 ) +" +BDEPEND=" + app-text/asciidoc + app-text/xmlto + dev-libs/libxslt + virtual/pkgconfig +" + +src_configure() { + # ODR violation but only reported with -fno-semantic-interposition? + filter-lto + + local myargs=( + --disable-bundled-libs + --without-ttfautohint + ) + + econf "${myargs[@]}" +} |