summaryrefslogtreecommitdiff
path: root/app-text/rtf2html
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/rtf2html')
-rw-r--r--app-text/rtf2html/Manifest6
-rw-r--r--app-text/rtf2html/files/rtf2html-0.2.0-gcc43.patch22
-rw-r--r--app-text/rtf2html/metadata.xml11
-rw-r--r--app-text/rtf2html/rtf2html-0.2.0-r1.ebuild34
4 files changed, 73 insertions, 0 deletions
diff --git a/app-text/rtf2html/Manifest b/app-text/rtf2html/Manifest
new file mode 100644
index 000000000000..d2ce5f3fdc66
--- /dev/null
+++ b/app-text/rtf2html/Manifest
@@ -0,0 +1,6 @@
+AUX rtf2html-0.2.0-gcc43.patch 693 SHA256 c21d3a20785baf4936798848d15cf87614fc804c2c9a289b42c797c3fe035791 SHA512 e8f4ad4f30ef8b317786a9c6b864245254c9127d5967ffc61c9934a55f0223c2f15ad388b1047ca3aaef11fcf1bad372f515df24c32a52a3abdbb6aaa5afe2d6 WHIRLPOOL 115a733429f5e864c437cf320e2aa7fb6382731d1b9e2027d72bc4e5783a0bc6ce06fa34fd5eb35e9d2991eb84860257e92e01b3c97cd3c1fbf694fbe4a03fcf
+DIST rtf2html-0.2.0.tar.bz2 75292 SHA256 13d39bdd3387aeba1e640d3209aa2ce56871291247734757d399675e4b8b918b SHA512 7399c98adb4dc0f45e420cd6836c36720d6b19ccbba062d2102b2693a6812642d6193000172ef7eeef5b8a84dcb2d35c1eb99fbf3bffaf8dad43e8ca06c6fe75 WHIRLPOOL 077eb9d7fec11796e4a1c4257bd6380621a3c112bb9faab0e1090a8419b96c49e2bf7fced42bd5568408fa497d691f61a99eb538c35c1409d9ee703d7654397d
+EBUILD rtf2html-0.2.0-r1.ebuild 700 SHA256 591314b2fabb8109ccd23212a80806e282b9ab61f9f63d60b01255aeeeb657d6 SHA512 5b48e0bbd927f43a759cb5d345a728721321734523d41a57415cdfd3ca37b906b5f7c5704547db96b81b5ed573fefbbf3ae5858d504abb16ed33bf34fc1b8081 WHIRLPOOL 152d8ba4d1771f9a98331e26745ea1b4ef2b9f7737ea4f414ad1846b5a94803d5d232e9bfd0cbad19b1eefc314a0f7ab756cd5a676b39be75c7569426f845306
+MISC ChangeLog 2220 SHA256 b69a8669f07d595d72fe08ce6a1667369a448c4580e4f4721e61df68cb34bfd8 SHA512 74a9aa7ede755c908d05935e1d0c14026c26ae952d63e505aa9fcdc856c00d084fe1133083359605f97610c1283a1565afba94cef89a1ed53e8cbb6994880b6c WHIRLPOOL 10e5c7faa50d783366014ebe134182a496951aee8678618f7afd98a29cfca43339ff70ff1138302e55b9ed7973d254b0b6d1e9fd2d81e793e460974df16bf1c0
+MISC ChangeLog-2015 1846 SHA256 14c6a4ca1ec57f7b575e96d59e16fa7f489b24b1c927fa4b9ecc0f0f9ea29fff SHA512 fc28133809ec70a9963faa691905af8aaee0d7d2c02abb9fa1ecefc50a6fba900934d8826581d4f8f3f0d07a940ddc3455bac19f0a98c4845a88056ea6000ebb WHIRLPOOL c690c8080e42a9dc6d2e68504a24119fa0f15637c531298ed07d09b4378ae7945f02c01982c84928b37d8fd625ec376fc569d09ec063451714657796fdf458a2
+MISC metadata.xml 318 SHA256 b8d3d74a9f015bc450dc790c1ad11fb99bf64275b5e938aa4e9922026408ef9d SHA512 f9fce83b4df04e11ddd34a60cc7bb32e9ab12cc5eed26352de20186660ab8173d910b6cdae63e1562f83bd1ed89f6210aca1cd5401ae93f31296dbac6f3256d4 WHIRLPOOL b7937dcf38589df8873b94a4683e239427c0dc5a4e86b9d2a42577556f08e61bc3a523a3519373649b4e9c52cbad70c0356d24268eb5976daa3d98918b50648d
diff --git a/app-text/rtf2html/files/rtf2html-0.2.0-gcc43.patch b/app-text/rtf2html/files/rtf2html-0.2.0-gcc43.patch
new file mode 100644
index 000000000000..f87661fd3796
--- /dev/null
+++ b/app-text/rtf2html/files/rtf2html-0.2.0-gcc43.patch
@@ -0,0 +1,22 @@
+diff -ur rtf2html-0.2.0-orig/rtf_keyword.h rtf2html-0.2.0/rtf_keyword.h
+--- rtf2html-0.2.0-orig/rtf_keyword.h 2007-08-03 04:50:45.000000000 -0400
++++ rtf2html-0.2.0/rtf_keyword.h 2009-01-03 17:45:14.000000000 -0500
+@@ -2,6 +2,7 @@
+
+ #include "config.h"
+ #include <string>
++#include <cstdlib>
+ #include <map>
+ #include <ctype.h>
+
+diff -ur rtf2html-0.2.0-orig/rtf_table.cpp rtf2html-0.2.0/rtf_table.cpp
+--- rtf2html-0.2.0-orig/rtf_table.cpp 2007-07-31 11:16:52.000000000 -0400
++++ rtf2html-0.2.0/rtf_table.cpp 2009-01-03 17:45:14.000000000 -0500
+@@ -4,6 +4,7 @@
+ #include <iostream>
+ #include <stdexcept>
+ #include <functional>
++#include <algorithm>
+
+ typedef std::set<int> intset;
+
diff --git a/app-text/rtf2html/metadata.xml b/app-text/rtf2html/metadata.xml
new file mode 100644
index 000000000000..9de0fd52d0e2
--- /dev/null
+++ b/app-text/rtf2html/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">rtf2html</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-text/rtf2html/rtf2html-0.2.0-r1.ebuild b/app-text/rtf2html/rtf2html-0.2.0-r1.ebuild
new file mode 100644
index 000000000000..d5f0c353c4c1
--- /dev/null
+++ b/app-text/rtf2html/rtf2html-0.2.0-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit base flag-o-matic
+
+DESCRIPTION="RTF to HTML converter"
+HOMEPAGE="http://rtf2html.sourceforge.net/"
+SRC_URI="mirror://sourceforge/rtf2html/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+DOCS=( ChangeLog README )
+
+PATCHES=( "${FILESDIR}/${P}-gcc43.patch" )
+
+src_prepare() {
+ # CFLAGS are incorrectly parsed, so handle this here
+ sed -i -e '/CFLAGS=$(echo $CFLAGS/d' configure || die 'sed on configure failed'
+ use !debug && filter-flags "-g*"
+
+ base_src_prepare
+}
+
+src_configure() {
+ econf $(use_enable debug)
+}