summaryrefslogtreecommitdiff
path: root/app-text/wv
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/wv
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/wv')
-rw-r--r--app-text/wv/Manifest6
-rw-r--r--app-text/wv/files/wv-1.2.9-format-security.patch11
-rw-r--r--app-text/wv/metadata.xml14
-rw-r--r--app-text/wv/wv-1.2.9-r2.ebuild62
4 files changed, 93 insertions, 0 deletions
diff --git a/app-text/wv/Manifest b/app-text/wv/Manifest
new file mode 100644
index 000000000000..62f97af1c4cf
--- /dev/null
+++ b/app-text/wv/Manifest
@@ -0,0 +1,6 @@
+AUX wv-1.2.9-format-security.patch 336 SHA256 2c02afe1a46c3091b4850d250a565d327db4418dbe56f941350edd7451c3c682 SHA512 99fef3bec0f129ae2d138c50d1e3e9288d5309db87a72d9b1970d1d230e20be3469b423f0b74c5083a0a5cdca8fed0b2ca32ec1fefdca22f213e4a02a6bbd405 WHIRLPOOL aef91a075876e79099ef7beb0bb17baa2ffffbe84b35c2d6fc98a0e2ebae24f45a4c535ff563a24d6b9fdebc196bb6f69f022bde56dd13c3c6554a043da990aa
+DIST wv-1.2.9.tar.gz 616256 SHA256 4c730d3b325c0785450dd3a043eeb53e1518598c4f41f155558385dd2635c19d SHA512 ae5c762012595ce8922bfda8749ad3e9cb055edab30152c3a5feaaf3ca6601f357d1e301b179e9a5860cd99452dd6e63e5f44f5bcc12f8db148bdd334e0200a5 WHIRLPOOL 9314e639de72cfdef391990b664137dd2b5d6b9b536b317150e02f6508f4499ec335f774037d42cae22ff6192e2b52ce8ac8be08b1aec759c1357568f6fcfc8d
+EBUILD wv-1.2.9-r2.ebuild 1454 SHA256 54236cdcbba049c70c68c0b1c1a99486bc63082a32b7098822bb189b2d2fade7 SHA512 db9304515079b91cb54de90d84fafe963dd81e2d37e6fb70a5598448e05958e7ddff037dbbcee8c3337e412f37d92cc26865c3760277ab03ea518ab6b394a610 WHIRLPOOL 269ffe7056d5c1803a419621c6e49269222e1ce8d2a9c15c7badc528b354d1080baf64b49f1f26872fbe1d299291aba020bc4c89274f2211d7407aaefad963c8
+MISC ChangeLog 3868 SHA256 cc3e1388c525e882db4fab79dfbefc818e20ee89491e1442e8031a836bcd240a SHA512 afaa3b1c0a6cd8190ced9f9dff14731320174522ab7362ae0ed92ba97b53fe135915e9764d4b3b09f06403dd352f7b32dd0e3bcc3d7b93826db75054a4fd1228 WHIRLPOOL 513ae2470fd2cd81df16c3331b0325cef96f7f5ea2d0d14abf0fcb1486de6b23e49eee89941ee66504c7c964e9955780e1fefb384521af6f648b4a19cbfba843
+MISC ChangeLog-2015 8264 SHA256 bc06d9a6a448beca79d0c0105a1a3753c14239cbbb1ae1e18dfbb8aa09d8c33d SHA512 833ceea7ec5bcee445dbc0629414ac9a2a2e5634bf67044160794593ed3ef327e5f6f795f1c6d41480a9b7063aaf21f482e3eb58723cec8af80f06f3f0bc8cfe WHIRLPOOL 2d13bcfb9d42706eb4a2cd21ff26ed2bb29391c6465d2c58f07327d6562d8a656f7aa25d1f49fd3359ae8a85cfc6a4820329e1add6917ed208c53e3cb6b95a61
+MISC metadata.xml 448 SHA256 77add57262af644a93888b82131fe1186d3a44dff53363d9aeadf7497c45fe7b SHA512 f6ed1d52b212ac06af826dea4218cdc3017d2d7e417f943bd14f2f223221da1d8a4401852e4fd8375195a77f4f10465d93b8ce62e3981c41570220b5699e4a55 WHIRLPOOL 0ec691378240baf42c0702819ae953a311ad0c61f41b47291f65b032d692f5dc4fd2cd8f2f56e71c7d71b9f29a72207bb0c319da5a41e7badb66a89108c2887c
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
+}