From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- www-apps/venus/Manifest | 9 ++++ www-apps/venus/files/postinstall-en.txt | 10 ++++ www-apps/venus/files/venus-bsddb3.patch | 39 +++++++++++++++ www-apps/venus/files/venus-xml-utf8.patch | 80 +++++++++++++++++++++++++++++++ www-apps/venus/metadata.xml | 13 +++++ www-apps/venus/venus-20100911-r1.ebuild | 74 ++++++++++++++++++++++++++++ www-apps/venus/venus-20100911-r2.ebuild | 78 ++++++++++++++++++++++++++++++ 7 files changed, 303 insertions(+) create mode 100644 www-apps/venus/Manifest create mode 100644 www-apps/venus/files/postinstall-en.txt create mode 100644 www-apps/venus/files/venus-bsddb3.patch create mode 100644 www-apps/venus/files/venus-xml-utf8.patch create mode 100644 www-apps/venus/metadata.xml create mode 100644 www-apps/venus/venus-20100911-r1.ebuild create mode 100644 www-apps/venus/venus-20100911-r2.ebuild (limited to 'www-apps/venus') diff --git a/www-apps/venus/Manifest b/www-apps/venus/Manifest new file mode 100644 index 000000000000..8f6e813f2dfd --- /dev/null +++ b/www-apps/venus/Manifest @@ -0,0 +1,9 @@ +AUX postinstall-en.txt 192 SHA256 f95f32190fbae2a42332277007c7b4e70da89b3cb861a1cc798b11787776adfe SHA512 6185dc665439d4d5d877501a60566f04bc40bf43e568ab158a20aec68902104662129e945129d7914bfcb20e804b0484686893d11deb2310fcc9f097bc7cd2ee WHIRLPOOL 425f4a2809f0b99cdac83a4c3db367cb837c2b65708327df10f9eebbd47807c76a4cf7cb8614596e5cf314c630851b9fdc3d044ff39052f73ab79484e5a64a1a +AUX venus-bsddb3.patch 1366 SHA256 c6d1ddf3c250179777136bffa2f8e23c1eefd93a346179e06073e110ffc81b1d SHA512 cb3cca0415a9d12356dd85aa1434270612e09153c443a2f207af8d0be53c64e8a87bdd10b3e89b4d5a3fa56334cc691f3c44221078fbe2931c99b6215fc1925d WHIRLPOOL 1258715aef9c2243b7f6440ff7b9fca92beb63af054645b80322b1ac9f977faa0da8d1eded5f2360f1aee042968d4705caf9fd7876f76cf9580835292bbbe90c +AUX venus-xml-utf8.patch 4058 SHA256 e4e68e630ad229c958dfcf8d77cc0a47ba1061fca3297e8c67eb6ce1f280efe8 SHA512 1466ec1fabaef90b7907cc7587ff994a8a9d8935eed77c725ebb65b9b86f3daa15d6e0da907ce84ce7090d14c82e1c96739b3a4a7c862bcc22af60cb74e0ad6c WHIRLPOOL 464e808585a5ae1645311b2852195fe3fd0f3d582476c75d0601782d4cebb4a7bc966571f68ac0b136cd93dcd622bb827806b62a61c9b8b1be66600bb26bea3b +DIST venus-20100911.tar.bz2 349639 SHA256 72e19495518ade6641a3c50346374b4868b232d58a32fa18be387ae4a151dc03 SHA512 516a503e1e43e4bf694f007382603d6415bf508f79feb8db55dba533ca9b8b367f922ede84b2ef4ec74684f81ad17919ba754abfe5e79aac51da732ceb8c2897 WHIRLPOOL 745973c2ebf4e49ed7823c468478f1b118159d955b9bd076f79c4d9d4cca89971297c74a89a01b80bd7d242a69a4ac8914e5af01b7ed59e0189362e2a6092fd8 +EBUILD venus-20100911-r1.ebuild 1534 SHA256 62a9ead6076798b305b2897b952ba9f37709967ebacb52028ccd5fdeaa026a1d SHA512 87547404d5b23373882eae3a6b3314030ec8e802b242acbabb9fe505cdf38e768b2f2e30bca0ac8362bdf6b0dd911a8130606fc128e25b38382ba147a8825f22 WHIRLPOOL 548e2755baa5b5fc0f325b4aa70f2a0bff958dfaaa1114c25cba0e37c448bc9c3eae3d9c1ccef6373b54122d8399d3b5f331208c190977f8987eb3daf2fa5ee8 +EBUILD venus-20100911-r2.ebuild 1586 SHA256 015e842dd668ec7a88b6f453892e4f50e1a7c7af24edaac6db311dbba171a188 SHA512 d1ed382fc803c2312defa3ebfb7e23323282d430d5781166ee2e1d3dff73d4848c26ea2ae2b5fb1771fff17909e4f4fb21b55aeec802cb4445c577e19311b4fb WHIRLPOOL 66cf2b6780ba2ffa814f26c1dda263ee97eb09bd8541ee6a87dcbe867fdf820066ea9470a4aa20d8bb8110e87a2a7d5c5868cdbe8eb16c16920f458c76c20dee +MISC ChangeLog 2971 SHA256 2638b08fe30813d485881968d1c02fbf13492bd32696957a9a0cb133e109a9b8 SHA512 1fdaf9dac43cb5751ab22d3fa4103801786d0cf84a7524ca3214dd327dd3ba5a9b479c0b129698138043b497cd5f1eaa7b3e9db1913e3512b4305f9532cc8a1d WHIRLPOOL 33f7ca7f63f008e821d7fca2733bac50c6f78b932200986b6a108af041e85b08a41be536ed177053fc2ea4f0275d8813a49399fa97e343483994303e49cc1b47 +MISC ChangeLog-2015 945 SHA256 fe23dc2ab96065dcea619e6312a7230a084762d3142264fdc72f9be425c5fa96 SHA512 3e73f58d85462d0e2b5f5f32b63dc0a6223c36dd33eda30f6c566d36d4f22bda4c64925a0f6a7f11dec07dc647a0ccab410992e4cb17294dbac58e71fcf58916 WHIRLPOOL 14cd1e0e1695a8425bae119722fec50b9b88a3f7ed7137fa10e5429d7b7788dcfd6ad6d9c9c26d946e2c6d3ccdd1dd900a115c2b4143499d38a28c51eaedcd58 +MISC metadata.xml 480 SHA256 9f929d5141950c439856be954fdf5f193976f4ab4e19e81c34f7c1c9153471be SHA512 0caa5f4788096b3eaaa02c6cbc2f0685975e25f95ce1775e330acae28c708a0cf1bf38f31c8384068da0258948ada6ce09c6c864dac680753fb83a0d272d3bc9 WHIRLPOOL 0b12f116cbaafc0058ae5ac2a01ddc054329edb88a07f15bb08d1c544d7972eda4742bf49610828d27dce09d23a3a038dc87eb2d98c3240aa445906f8c59b5e5 diff --git a/www-apps/venus/files/postinstall-en.txt b/www-apps/venus/files/postinstall-en.txt new file mode 100644 index 000000000000..37427c4a8d5a --- /dev/null +++ b/www-apps/venus/files/postinstall-en.txt @@ -0,0 +1,10 @@ +INSTALLATION + +Installation instructions can be found at: + +http://intertwingly.net/code/venus/docs/ +/usr/share/doc/\${PF}/html + +Example configuration files can be found at: + +${VHOST_ROOT}/conf diff --git a/www-apps/venus/files/venus-bsddb3.patch b/www-apps/venus/files/venus-bsddb3.patch new file mode 100644 index 000000000000..b57499c23698 --- /dev/null +++ b/www-apps/venus/files/venus-bsddb3.patch @@ -0,0 +1,39 @@ +Use bsddb3 instead of deprecated python[berkdb]. Patch by Arfrever. + +--- a/planet/idindex.py ++++ b/planet/idindex.py +@@ -13,8 +13,8 @@ + cache = config.cache_directory() + index=os.path.join(cache,'index') + if not os.path.exists(index): return None +- import dbhash +- return dbhash.open(filename(index, 'id'),'w') ++ import bsddb3 ++ return bsddb3.hashopen(filename(index, 'id'),'w') + except Exception, e: + if e.__class__.__name__ == 'DBError': e = e.args[-1] + from planet import logger as log +@@ -35,8 +35,8 @@ + cache = config.cache_directory() + index=os.path.join(cache,'index') + if not os.path.exists(index): os.makedirs(index) +- import dbhash +- index = dbhash.open(filename(index, 'id'),'c') ++ import bsddb3 ++ index = bsddb3.hashopen(filename(index, 'id'),'c') + + try: + import libxml2 +--- a/tests/test_idindex.py ++++ b/tests/test_idindex.py +@@ -67,8 +67,8 @@ + self.assertEqual(12,len(doc.getElementsByTagName('planet:name'))) + + try: +- module = 'dbhash' ++ import bsddb3 + except ImportError: +- planet.logger.warn("dbhash is not available => can't test id index") ++ planet.logger.warn("bsddb3 is not available => can't test id index") + for method in dir(idIndexTest): + if method.startswith('test_'): delattr(idIndexTest,method) 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/metadata.xml b/www-apps/venus/metadata.xml new file mode 100644 index 000000000000..1f74e9175222 --- /dev/null +++ b/www-apps/venus/metadata.xml @@ -0,0 +1,13 @@ + + + + + web-apps@gentoo.org + Gentoo Webapps + + + Support for django template style to config files + Support for genshi style to config files + Enable support for Redland RDF + + diff --git a/www-apps/venus/venus-20100911-r1.ebuild b/www-apps/venus/venus-20100911-r1.ebuild new file mode 100644 index 000000000000..8136fe627ae8 --- /dev/null +++ b/www-apps/venus/venus-20100911-r1.ebuild @@ -0,0 +1,74 @@ +# 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 +} + +src_prepare() { + eapply "${FILESDIR}"/venus-bsddb3.patch + eapply_user + 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" +} 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" +} -- cgit v1.2.3