diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 05:48:38 -0500 |
| commit | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch) | |
| tree | 0d7a74b4463ee387f9cf9368ceb1b757f694f72a /app-text/wv | |
| parent | f716a9fe6455d39eef01e718aae68dae61c19704 (diff) | |
| download | baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip | |
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'app-text/wv')
| -rw-r--r-- | app-text/wv/Manifest | 1 | ||||
| -rw-r--r-- | app-text/wv/files/wv-1.2.9-C99-decls.patch | 101 | ||||
| -rw-r--r-- | app-text/wv/files/wv-1.2.9-format-security.patch | 11 | ||||
| -rw-r--r-- | app-text/wv/files/wv-1.2.9-gcc14-build-fix.patch | 22 | ||||
| -rw-r--r-- | app-text/wv/files/wv-1.2.9-gsf-doc-meta-data.patch | 11 | ||||
| -rw-r--r-- | app-text/wv/metadata.xml | 14 | ||||
| -rw-r--r-- | app-text/wv/wv-1.2.9-r5.ebuild | 69 |
7 files changed, 229 insertions, 0 deletions
diff --git a/app-text/wv/Manifest b/app-text/wv/Manifest new file mode 100644 index 000000000000..2b91d22bbd0c --- /dev/null +++ b/app-text/wv/Manifest @@ -0,0 +1 @@ +DIST wv-1.2.9.tar.gz 616256 BLAKE2B 6a6aa6b5f87a934c703c8a74d85af3d7aa84dcd2bc613a3af7fb8d69a9339e71ba2618ae8f725b90c3fe0b0199f4b224bdb32a50c2b6b6614f84b6a14437633f SHA512 ae5c762012595ce8922bfda8749ad3e9cb055edab30152c3a5feaaf3ca6601f357d1e301b179e9a5860cd99452dd6e63e5f44f5bcc12f8db148bdd334e0200a5 diff --git a/app-text/wv/files/wv-1.2.9-C99-decls.patch b/app-text/wv/files/wv-1.2.9-C99-decls.patch new file mode 100644 index 000000000000..b200055cf5b8 --- /dev/null +++ b/app-text/wv/files/wv-1.2.9-C99-decls.patch @@ -0,0 +1,101 @@ +--- a/field.c ++++ b/field.c +@@ -25,6 +25,7 @@ + #include <stdlib.h> + #include <ctype.h> + #include <string.h> ++#include <strings.h> + #include <time.h> + + #include "wv.h" +--- a/md5.c ++++ b/md5.c +@@ -57,7 +57,7 @@ + #include "md5.h" + + /* forward declaration */ +-static void Transform (); ++static void Transform (UINT4 *buf, UINT4 *in); + + static unsigned char PADDING[64] = { + 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, +@@ -103,8 +103,7 @@ + } + + void +-wvMD5Init (mdContext) +- wvMD5_CTX *mdContext; ++wvMD5Init (wvMD5_CTX *mdContext) + { + mdContext->i[0] = mdContext->i[1] = (UINT4) 0; + +@@ -117,10 +116,7 @@ + } + + void +-wvMD5Update (mdContext, inBuf, inLen) +- wvMD5_CTX *mdContext; +- unsigned char *inBuf; +- unsigned int inLen; ++wvMD5Update (wvMD5_CTX *mdContext, unsigned char *inBuf, unsigned int inLen) + { + UINT4 in[16]; + int mdi; +@@ -155,8 +151,7 @@ + } + + void +-wvMD5Final (mdContext) +- wvMD5_CTX *mdContext; ++wvMD5Final (wvMD5_CTX *mdContext) + { + UINT4 in[16]; + int mdi; +@@ -198,9 +193,7 @@ + /* Basic MD5 step. Transform buf based on in. + */ + static void +-Transform (buf, in) +- UINT4 *buf; +- UINT4 *in; ++Transform (UINT4 *buf, UINT4 *in) + { + UINT4 a = buf[0], b = buf[1], c = buf[2], d = buf[3]; + +--- a/md5.h ++++ b/md5.h +@@ -48,9 +48,9 @@ + unsigned char digest[16]; /* actual digest after MD5Final call */ + } wvMD5_CTX; + +-void wvMD5Init (); +-void wvMD5Update (); +-void wvMD5Final (); ++void wvMD5Init (wvMD5_CTX *mdContext); ++void wvMD5Update (wvMD5_CTX *mdContext, unsigned char *inBuf, unsigned int inLen); ++void wvMD5Final (wvMD5_CTX *mdContext); + + /* + ********************************************************************** +--- a/wvConfig.c ++++ b/wvConfig.c +@@ -24,6 +24,7 @@ + #include <stdlib.h> + #include <stdio.h> + #include <string.h> ++#include <strings.h> + #include <math.h> + #include <ctype.h> + #include "wv.h" +--- a/wvparse.c ++++ b/wvparse.c +@@ -35,6 +35,9 @@ + #include <gsf/gsf-input-stdio.h> + #include <gsf/gsf-utils.h> + ++int wvOLEDecode_gsf (wvParseStruct * ps, GsfInput *path, wvStream ** mainfd, wvStream ** tablefd0, ++ wvStream ** tablefd1, wvStream ** data, wvStream ** summary); ++ + int + wvInit (void) + { 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/files/wv-1.2.9-gcc14-build-fix.patch b/app-text/wv/files/wv-1.2.9-gcc14-build-fix.patch new file mode 100644 index 000000000000..ea3a0649bc38 --- /dev/null +++ b/app-text/wv/files/wv-1.2.9-gcc14-build-fix.patch @@ -0,0 +1,22 @@ +Bug: https://bugs.gentoo.org/921570 +Bug: https://bugs.gentoo.org/883207 +--- a/wvConfig.c ++++ b/wvConfig.c +@@ -158,7 +158,7 @@ wvReleaseStateData (state_data * data) + + + static void +-exstartElement (void *userData, const char *name, const char **atts) ++exstartElement (void *userData, const unsigned char *name, const unsigned char **atts) + { + unsigned int token_type; + expand_data *mydata = (expand_data *) userData; +@@ -3371,7 +3371,7 @@ wvendElement (void *userData, const XML_Char *name) + } + + static void +-exendElement (void *userData, const char *name) ++exendElement (void *userData, const unsigned char *name) + { + /* + expand_data *mydata = (expand_data *)userData; diff --git a/app-text/wv/files/wv-1.2.9-gsf-doc-meta-data.patch b/app-text/wv/files/wv-1.2.9-gsf-doc-meta-data.patch new file mode 100644 index 000000000000..f18f185f62a0 --- /dev/null +++ b/app-text/wv/files/wv-1.2.9-gsf-doc-meta-data.patch @@ -0,0 +1,11 @@ +Bug: https://bugs.gentoo.org/936163 +--- a/wvSummary.c ++++ b/wvSummary.c 2024-08-20 16:14:11.260000000 +0300 +@@ -33,6 +33,7 @@ + #include <gsf/gsf-msole-utils.h> + #include <gsf/gsf-docprop-vector.h> + #include <gsf/gsf-meta-names.h> ++#include <gsf/gsf-doc-meta-data.h> + + #include <stdio.h> + #include <stdlib.h> diff --git a/app-text/wv/metadata.xml b/app-text/wv/metadata.xml new file mode 100644 index 000000000000..197cdb242511 --- /dev/null +++ b/app-text/wv/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://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-r5.ebuild b/app-text/wv/wv-1.2.9-r5.ebuild new file mode 100644 index 000000000000..4cae2aca8b6a --- /dev/null +++ b/app-text/wv/wv-1.2.9-r5.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="Tool for conversion of MSWord doc and rtf files to something readable" +HOMEPAGE="http://wvware.sourceforge.net/" +SRC_URI="http://abiword.org/downloads/${PN}/${PV}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~mips ppc ppc64 ~riscv ~sparc x86 ~x64-solaris" +IUSE="tools wmf" + +RDEPEND=" + >=dev-libs/glib-2:2 + >=gnome-extra/libgsf-1.13:= + virtual/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}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${P}-format-security.patch + "${FILESDIR}"/${P}-C99-decls.patch + "${FILESDIR}"/${P}-gcc14-build-fix.patch + "${FILESDIR}"/${P}-gsf-doc-meta-data.patch +) + +src_prepare() { + default + + # remove -ansi flag, since it disables POSIX + # function declarations (bug #874396) + sed -i -e 's/-ansi//' configure || die + + 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 + sed -i -e 's/-ansi//' 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 $(use_with wmf libwmf) +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die + + rm -f "${ED}"/usr/share/man/man1/wvConvert.1 || die + use tools && dosym wvWare.1 /usr/share/man/man1/wvConvert.1 +} |
