From 35982ce4254d5153e3feaf277bf5a70ff3661eaa Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Fri, 17 Mar 2017 17:33:59 -0700 Subject: [PATCH] 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(+) create mode 100644 www-apps/venus/files/venus-xml-utf8.patch create mode 100644 www-apps/venus/venus-20100911-r2.ebuild 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 000000000000..f7c29782ff46 --- /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 @@ ++ + + ++ + + + +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 @@ ++ + + +- ++ + + + +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 @@ ++ + + +- ++ + + + +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 @@ +- ++ + ++ + + + +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 @@ ++ + ++ + + + diff --git a/www-apps/venus/venus-20100911-r2.ebuild b/www-apps/venus/venus-20100911-r2.ebuild new file mode 100644 index 000000000000..2ca1b2e96206 --- /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" +} -- 2.26.2