diff options
Diffstat (limited to 'app-text/wv')
-rw-r--r-- | app-text/wv/Manifest | 4 | ||||
-rw-r--r-- | app-text/wv/files/wv-1.2.9-format-security.patch | 11 | ||||
-rw-r--r-- | app-text/wv/metadata.xml | 14 | ||||
-rw-r--r-- | app-text/wv/wv-1.2.9-r2.ebuild | 62 |
4 files changed, 91 insertions, 0 deletions
diff --git a/app-text/wv/Manifest b/app-text/wv/Manifest new file mode 100644 index 000000000000..07ae28b83ef0 --- /dev/null +++ b/app-text/wv/Manifest @@ -0,0 +1,4 @@ +AUX wv-1.2.9-format-security.patch 336 BLAKE2B 18641a15c75a32250012771bd8ca8b0739f503ef8d1d2eebe23f2d378996aa3f6e2f0cfa72f8077add3db33f8ece86c57e80cc5b868719472b45ba1bed10a7d0 SHA512 99fef3bec0f129ae2d138c50d1e3e9288d5309db87a72d9b1970d1d230e20be3469b423f0b74c5083a0a5cdca8fed0b2ca32ec1fefdca22f213e4a02a6bbd405 +DIST wv-1.2.9.tar.gz 616256 BLAKE2B 6a6aa6b5f87a934c703c8a74d85af3d7aa84dcd2bc613a3af7fb8d69a9339e71ba2618ae8f725b90c3fe0b0199f4b224bdb32a50c2b6b6614f84b6a14437633f SHA512 ae5c762012595ce8922bfda8749ad3e9cb055edab30152c3a5feaaf3ca6601f357d1e301b179e9a5860cd99452dd6e63e5f44f5bcc12f8db148bdd334e0200a5 +EBUILD wv-1.2.9-r2.ebuild 1454 BLAKE2B a83fc6db9afd3a98697eb1b5f74ac1e9823428b67d2483875e4387717c8b02a2a97093f511490c2006ddaf5813db070ef1514fdd4046e7b1add3b4b66870482a SHA512 db9304515079b91cb54de90d84fafe963dd81e2d37e6fb70a5598448e05958e7ddff037dbbcee8c3337e412f37d92cc26865c3760277ab03ea518ab6b394a610 +MISC metadata.xml 448 BLAKE2B 2ad03c8351da9b74d3420841cbb63aa4a5f8723bdd698ded80bfbc91f0d7bda75b0f2d671a74882e32f7f7e1b1e3d6bc4f1ff491132af931e5914b853b3ff854 SHA512 f6ed1d52b212ac06af826dea4218cdc3017d2d7e417f943bd14f2f223221da1d8a4401852e4fd8375195a77f4f10465d93b8ce62e3981c41570220b5699e4a55 diff --git a/app-text/wv/files/wv-1.2.9-format-security.patch b/app-text/wv/files/wv-1.2.9-format-security.patch new file mode 100644 index 000000000000..0bb7ac21f2c1 --- /dev/null +++ b/app-text/wv/files/wv-1.2.9-format-security.patch @@ -0,0 +1,11 @@ +--- wv-1.2.9/wvRTF.c.orig 2013-12-12 17:03:41.635612853 -0500 ++++ wv-1.2.9/wvRTF.c 2013-12-12 17:04:05.528003832 -0500 +@@ -192,7 +192,7 @@ + rtf_output_char ('{'); + + /* font color */ +- rtf_output (rtfColors[ud->cCol]); ++ rtf_output ("%s", rtfColors[ud->cCol]); + + /* font face */ + rtf_output ("\\f%d", ud->cFont); diff --git a/app-text/wv/metadata.xml b/app-text/wv/metadata.xml new file mode 100644 index 000000000000..cd50be096520 --- /dev/null +++ b/app-text/wv/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>gnome@gentoo.org</email> + <name>Gentoo GNOME Desktop</name> + </maintainer> + <use> + <flag name="tools">Install optional utilities considered deprecated in favor of using AbiWord.</flag> + </use> + <upstream> + <remote-id type="sourceforge">wvware</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-text/wv/wv-1.2.9-r2.ebuild b/app-text/wv/wv-1.2.9-r2.ebuild new file mode 100644 index 000000000000..e80da09ffb16 --- /dev/null +++ b/app-text/wv/wv-1.2.9-r2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit eutils autotools + +DESCRIPTION="Tool for conversion of MSWord doc and rtf files to something readable" +SRC_URI="http://abiword.org/downloads/${PN}/${PV}/${P}.tar.gz" +HOMEPAGE="http://wvware.sourceforge.net/" + +IUSE="tools wmf" +KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris" +SLOT="0" +LICENSE="GPL-2" + +RDEPEND=" + >=dev-libs/glib-2:2 + >=gnome-extra/libgsf-1.13:= + sys-libs/zlib + media-libs/libpng:0= + dev-libs/libxml2:2 + tools? ( app-text/texlive-core + dev-texlive/texlive-latex ) + wmf? ( >=media-libs/libwmf-0.2.2 ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig +" + +PATCHES=( "${FILESDIR}/${P}-format-security.patch" ) + +src_prepare() { + default + + if ! use tools; then + sed -i -e '/bin_/d' GNUmakefile.am || die + sed -i -e '/SUBDIRS/d' GNUmakefile.am || die + sed -i -e '/\/GNUmakefile/d' configure.ac || die + sed -i -e '/wv[[:upper:]]/d' configure.ac || die + + # automake-1.13 fix, bug #467620 + sed -i -e 's|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g' configure.ac || die + + eautoreconf + fi +} + +src_configure() { + econf \ + --disable-static \ + $(use_with wmf libwmf) +} + +src_install () { + default + prune_libtool_files + + rm -f "${ED}"/usr/share/man/man1/wvConvert.1 + if use tools; then + dosym /usr/share/man/man1/wvWare.1 /usr/share/man/man1/wvConvert.1 || die + fi +} |