summaryrefslogtreecommitdiff
path: root/dev-python/wehjit
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/wehjit')
-rw-r--r--dev-python/wehjit/Manifest6
-rw-r--r--dev-python/wehjit/files/wehjit-0.2.2-SkipTest.patch23
-rw-r--r--dev-python/wehjit/metadata.xml17
-rw-r--r--dev-python/wehjit/wehjit-0.2.2-r1.ebuild36
4 files changed, 82 insertions, 0 deletions
diff --git a/dev-python/wehjit/Manifest b/dev-python/wehjit/Manifest
new file mode 100644
index 000000000000..a992ae4c875c
--- /dev/null
+++ b/dev-python/wehjit/Manifest
@@ -0,0 +1,6 @@
+AUX wehjit-0.2.2-SkipTest.patch 648 SHA256 44903a39ce12c97b0ffe355de7a9b42ceee4bf283669d8416d31e942dc24342e SHA512 56c7cd048f9faa71f0fbcf77e894c064f9c4428e165a0fd470d417c9bdde631e4594ddb9dcaa060f3c438d98b2007e5fe815fd949d62aeb58b6161b608abcf78 WHIRLPOOL 7d6e05301bda2bd226e72bc53f0e511b1b6105d2a6da36cde8e50df930122c886d8944a01ba9a9c8afb6b78bc19d4cac4b4a3d1feb3f6a7214628435de48636c
+DIST wehjit-0.2.2.tar.gz 100515 SHA256 71e16919ff816bc06492647a7e3eda9619bb04ba8fb729f97106131126e9d1fb SHA512 f8fb2edeeb9e90315d3c8f1e9e7d73d556fcad780c4dea637599291b2094e292a42b6f3671407f3d9d88733894501796484fa05ac52f3c1f3e1cb29d376a87fb WHIRLPOOL a1909009f0445de5d7c323ee05ab39a76f127ab89d3c9a96205f125b88277e3068ea3e2b3548cbadb69ddab7c5cc17dd87d8895c948bdd4adc00cf06bd949009
+EBUILD wehjit-0.2.2-r1.ebuild 742 SHA256 62269630ead0be243766b0d30b6cdc68a0aaa29e24fa043a5916a41a482e37fe SHA512 7b47dccf4365662aa000818cd4d79e0d65c4ba2693f955459dd7e537d5a3d6062d491c48c5cf2a119f5f3f39781718ceec10522ff98e132088111f1f8c4b284f WHIRLPOOL 9f2eff4cb831a6fddb6528223ef9b9c2d9963f5af9846216da5986efad90245dfb89c0813234d5f3aa31ec40966a6dfb5c6adbb8f54534988705d33b8e178714
+MISC ChangeLog 2468 SHA256 9eb2075f2f450dbd199a880c5783511306912e61621d31c9eb9ef0c83c1a08a7 SHA512 d2ef0cef5c042aec4b4b1a9b4a6de6d557332bf5005fd0d276e5318f659e857a94c543a0b3577e5381a943dc8db3a26ab0d98f62889096eda68adc5bc4991ec4 WHIRLPOOL f4391c30ef2816ddf399018aca108a1083845c6c43ea363eb50bd44ef17a713b5c8d36a3bbf9d20e427991c4e5e9cc785894b63b8d59bd76c7b4050c1fc984ec
+MISC ChangeLog-2015 1124 SHA256 65643abc1e92930178e2fdf2d9aa4dbaae3ea5dee90c6d140c844a0a8eb62ab2 SHA512 8f55f9d2406066326b1762e6d2693f7ca1605d881aa9a5c1183d74ad3f67a27c029ab59795ef391b616deb17aa68af136b631356d77cfabe9cca0ac3c53fdff3 WHIRLPOOL 73728735373822ec5165133176fa6df70f47950f939f96624d77a7d48ea60541d49ef6f056646f859d6ded25a6f47461758c076fab23634208a0029ad9ef03ab
+MISC metadata.xml 578 SHA256 f995d0f8c0bc45aafb1c7031b1880c4443ba0e5d4eafa7bc9ead51abb4b0e263 SHA512 cb9f24891df1a9c13cc0c165514b63d4877947a0793bd81c98fe7735b4afd7e9620e1dc742c6cc01a7f82ba9dc19f3770bd289ba15343a0324eb23a5cbe9a4e7 WHIRLPOOL 6b091049e55b418234c4ab3e8e74c483ced381cd1f5235bdd062610f18367a25cd1ecc60219673eba26111698886fc532aa7c565ba811ab75fa9f35a4c581289
diff --git a/dev-python/wehjit/files/wehjit-0.2.2-SkipTest.patch b/dev-python/wehjit/files/wehjit-0.2.2-SkipTest.patch
new file mode 100644
index 000000000000..057d70747e74
--- /dev/null
+++ b/dev-python/wehjit/files/wehjit-0.2.2-SkipTest.patch
@@ -0,0 +1,23 @@
+diff -ur wehjit-0.2.2.orig/wehjit/collection.py wehjit-0.2.2/wehjit/collection.py
+--- wehjit/collection.py 2010-02-11 16:26:14.000000000 +0800
++++ wehjit/collection.py 2012-11-08 14:24:40.326482713 +0800
+@@ -22,6 +22,11 @@
+ Collect widget plugins together in a `Collection`.
+ """
+
++import sys
++if sys.version_info[:2] == (2, 7):
++ import unittest
++else:
++ import unittest2 as unittest
+ import inspect
+ import os
+ from os import path
+@@ -130,6 +135,7 @@
+ """
+ return name in self.__plugins
+
++ @unittest.skip("Plugin not in gentoo")
+ def __getitem__(self, name):
+ """
+ Return the plugin named ``name``.
diff --git a/dev-python/wehjit/metadata.xml b/dev-python/wehjit/metadata.xml
new file mode 100644
index 000000000000..e84e225efc41
--- /dev/null
+++ b/dev-python/wehjit/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>maksbotan@gentoo.org</email>
+ <name>Maxim Koltsov</name>
+</maintainer>
+<maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+</maintainer>
+<longdescription>
+ wehjit is a Python library for for building XHTML widgets for web
+ applications and web pages. It encapsulates the XHTML
+ (a Genshi XML template), CSS, and JavaScript for each widget into a plugin
+</longdescription>
+</pkgmetadata>
diff --git a/dev-python/wehjit/wehjit-0.2.2-r1.ebuild b/dev-python/wehjit/wehjit-0.2.2-r1.ebuild
new file mode 100644
index 000000000000..55996c08bf61
--- /dev/null
+++ b/dev-python/wehjit/wehjit-0.2.2-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="A Python web-widget library"
+HOMEPAGE="http://jderose.fedorapeople.org/wehjit"
+SRC_URI="http://jderose.fedorapeople.org/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="test"
+
+RDEPEND="dev-python/genshi
+ dev-python/assets[${PYTHON_USEDEP}]
+ dev-python/paste[${PYTHON_USEDEP}]
+ dev-python/pygments[${PYTHON_USEDEP}]
+ "
+DEPEND="${RDEPEND}"
+
+DOCS=( README NEWS )
+
+PATCHES=( "${FILESDIR}"/${P}-SkipTest.patch )
+
+python_test() {
+ if [[ "${EPYTHON:6:3}" == '2.6' ]]; then
+ nosetests -I test_app* -e=*getitem
+ else
+ nosetests
+ fi
+}