commit:     35982ce4254d5153e3feaf277bf5a70ff3661eaa
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 18 00:33:59 2017 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat Mar 18 00:34:21 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35982ce4

www-apps/venus: set encoding on output files.

Package-Manager: portage-2.3.3

 www-apps/venus/files/venus-xml-utf8.patch | 80 +++++++++++++++++++++++++++++++
 www-apps/venus/venus-20100911-r2.ebuild   | 78 ++++++++++++++++++++++++++++++
 2 files changed, 158 insertions(+)

diff --git a/www-apps/venus/files/venus-xml-utf8.patch 
b/www-apps/venus/files/venus-xml-utf8.patch
new file mode 100644
index 00000000000..f7c29782ff4
--- /dev/null
+++ b/www-apps/venus/files/venus-xml-utf8.patch
@@ -0,0 +1,80 @@
+diff -Nuar --exclude '*~' venus.orig/themes/common/atom.xml.xslt 
venus/themes/common/atom.xml.xslt
+--- venus.orig/themes/common/atom.xml.xslt     2010-09-11 06:41:53.000000000 
-0700
++++ venus/themes/common/atom.xml.xslt  2017-03-17 17:24:51.668976850 -0700
+@@ -1,3 +1,4 @@
++<?xml version="1.0" encoding="UTF-8"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"
+                 xmlns:access="http://www.bloglines.com/about/specs/fac-1.0";
+                 xmlns:atom="http://www.w3.org/2005/Atom";
+@@ -7,6 +8,7 @@
+                 xmlns="http://www.w3.org/1999/xhtml";
+               exclude-result-prefixes="planet xhtml">
+ 
++  <xsl:output indent="yes" method="xml" encoding="UTF-8"/>
+   <!-- strip planet elements and attributes -->
+   <xsl:template match="planet:*|@planet:*"/>
+ 
+diff -Nuar --exclude '*~' venus.orig/themes/common/foafroll.xml.xslt 
venus/themes/common/foafroll.xml.xslt
+--- venus.orig/themes/common/foafroll.xml.xslt 2010-09-11 06:41:53.000000000 
-0700
++++ venus/themes/common/foafroll.xml.xslt      2017-03-17 17:25:01.477165384 
-0700
+@@ -1,3 +1,4 @@
++<?xml version="1.0" encoding="UTF-8"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"
+               xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+               xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#";
+@@ -8,7 +9,7 @@
+                 xmlns:planet="http://planet.intertwingly.net/";
+                 exclude-result-prefixes="atom planet">
+  
+-  <xsl:output indent="yes" method="xml"/>
++  <xsl:output indent="yes" method="xml" encoding="UTF-8"/>
+ 
+   <xsl:template match="atom:feed">
+     <rdf:RDF>
+diff -Nuar --exclude '*~' venus.orig/themes/common/opml.xml.xslt 
venus/themes/common/opml.xml.xslt
+--- venus.orig/themes/common/opml.xml.xslt     2010-09-11 06:41:53.000000000 
-0700
++++ venus/themes/common/opml.xml.xslt  2017-03-17 17:26:20.930692531 -0700
+@@ -1,9 +1,10 @@
++<?xml version="1.0" encoding="UTF-8"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"
+                 xmlns:atom="http://www.w3.org/2005/Atom";
+                 xmlns:planet="http://planet.intertwingly.net/";
+                 exclude-result-prefixes="atom planet">
+  
+-  <xsl:output indent="yes" method="xml"/>
++  <xsl:output indent="yes" method="xml" encoding="UTF-8"/>
+ 
+   <xsl:template name="rfc822" xmlns:date="http://exslt.org/dates-and-times";>
+     <xsl:param name="date"/>
+diff -Nuar --exclude '*~' venus.orig/themes/common/rss10.xml.tmpl 
venus/themes/common/rss10.xml.tmpl
+--- venus.orig/themes/common/rss10.xml.tmpl    2010-09-11 06:41:53.000000000 
-0700
++++ venus/themes/common/rss10.xml.tmpl 2017-03-17 17:26:18.558646942 -0700
+@@ -1,4 +1,4 @@
+-<?xml version="1.0"?>
++<?xml version="1.0" encoding="UTF-8"?>
+ <rdf:RDF
+       xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+       xmlns:dc="http://purl.org/dc/elements/1.1/";
+diff -Nuar --exclude '*~' venus.orig/themes/common/rss20.xml.tmpl 
venus/themes/common/rss20.xml.tmpl
+--- venus.orig/themes/common/rss20.xml.tmpl    2010-09-11 06:41:53.000000000 
-0700
++++ venus/themes/common/rss20.xml.tmpl 2017-03-17 17:26:16.718611577 -0700
+@@ -1,4 +1,4 @@
+-<?xml version="1.0"?>
++<?xml version="1.0" encoding="UTF-8"?>
+ <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom";>
+ 
+ <channel>
+diff -Nuar --exclude '*~' venus.orig/themes/common/validate.html.xslt 
venus/themes/common/validate.html.xslt
+--- venus.orig/themes/common/validate.html.xslt        2010-09-11 
06:41:53.000000000 -0700
++++ venus/themes/common/validate.html.xslt     2017-03-17 17:26:58.275410251 
-0700
+@@ -1,8 +1,10 @@
++<?xml version="1.0" encoding="UTF-8"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"
+                 xmlns:atom="http://www.w3.org/2005/Atom";
+                 xmlns:xhtml="http://www.w3.org/1999/xhtml";
+                 xmlns:planet="http://planet.intertwingly.net/";
+                 xmlns="http://www.w3.org/1999/xhtml";>
++  <xsl:output indent="yes" method="html" encoding="UTF-8"/>
+  
+   <xsl:template match="atom:feed">
+     <html xmlns="http://www.w3.org/1999/xhtml";>

diff --git a/www-apps/venus/venus-20100911-r2.ebuild 
b/www-apps/venus/venus-20100911-r2.ebuild
new file mode 100644
index 00000000000..2ca1b2e9620
--- /dev/null
+++ b/www-apps/venus/venus-20100911-r2.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit webapp python-single-r1
+
+WEBAPP_MANUAL_SLOT="yes"
+
+DESCRIPTION="A feed aggregator application"
+HOMEPAGE="http://intertwingly.net/code/venus/";
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="PSF-2.2"
+KEYWORDS="~amd64 ~x86"
+IUSE="django genshi redland test"
+SLOT="0"
+
+RDEPEND="
+       dev-python/bsddb3[${PYTHON_USEDEP}]
+       dev-python/chardet[${PYTHON_USEDEP}]
+       dev-python/httplib2[${PYTHON_USEDEP}]
+       dev-python/utidylib[${PYTHON_USEDEP}]
+       django? ( dev-python/django[${PYTHON_USEDEP}] )
+       genshi? ( dev-python/genshi[${PYTHON_USEDEP}] )
+       redland? ( dev-python/rdflib[redland,${PYTHON_USEDEP}] )
+       ${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+S="${WORKDIR}"/${PN}
+
+pkg_setup() {
+       python-single-r1_pkg_setup
+       webapp_pkg_setup
+}
+
+PATCHES=(
+       "${FILESDIR}"/venus-bsddb3.patch
+       "${FILESDIR}"/venus-xml-utf8.patch
+)
+
+src_prepare() {
+       default_src_prepare
+       python_fix_shebang .
+}
+
+src_test() {
+       "${PYTHON}" runtests.py || die
+}
+
+src_install() {
+       webapp_src_preinst
+
+       dodoc AUTHORS README TODO
+       dodoc -r docs
+
+       python_moduleinto venus
+       python_domodule *.py filters planet
+
+       insinto "${MY_APPDIR}"
+       doins -r themes
+
+       insinto "${MY_HOSTROOTDIR}/conf"
+       doins -r examples
+
+       webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+
+       webapp_src_install
+}
+
+pkg_postinst() {
+       webapp_pkg_postinst
+       elog "Installation instructions can be found at 
/usr/share/doc/${PF}/html/
+               or http://intertwingly.net/code/venus/docs/index.html";
+}

Reply via email to