add version 2.3.2
authorAlex Brandt <alunduil@gentoo.org>
Sat, 2 May 2015 15:18:11 +0000 (15:18 +0000)
committerAlex Brandt <alunduil@gentoo.org>
Sat, 2 May 2015 15:18:11 +0000 (15:18 +0000)
Package-Manager: portage-2.2.18/cvs/Linux x86_64
Manifest-Sign-Key: 0x11A8217C!

dev-python/livereload/ChangeLog [new file with mode: 0644]
dev-python/livereload/Manifest [new file with mode: 0644]
dev-python/livereload/files/fix-tests.patch [new file with mode: 0644]
dev-python/livereload/livereload-2.3.2.ebuild [new file with mode: 0644]
dev-python/livereload/metadata.xml [new file with mode: 0644]

diff --git a/dev-python/livereload/ChangeLog b/dev-python/livereload/ChangeLog
new file mode 100644 (file)
index 0000000..35b4708
--- /dev/null
@@ -0,0 +1,9 @@
+# ChangeLog for dev-python/livereload
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/livereload/ChangeLog,v 1.1 2015/05/02 15:18:04 alunduil Exp $
+
+*livereload-2.3.2 (02 May 2015)
+
+  02 May 2015; Alex Brandt <alunduil@gentoo.org> +files/fix-tests.patch,
+  +livereload-2.3.2.ebuild, +metadata.xml:
+  add version 2.3.2
diff --git a/dev-python/livereload/Manifest b/dev-python/livereload/Manifest
new file mode 100644 (file)
index 0000000..50766e7
--- /dev/null
@@ -0,0 +1,25 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX fix-tests.patch 2230 SHA256 8786c0e0ed3a3f08a9e6745a9196ac32e6a384cf5786244091ae3531e64c6a05 SHA512 ca99482a11acd94428ff441bab2b85bfea3c49c2bde74a99f754324f4e7e8d966f2d3fef5cc367e69003979a8cc26b505a975e7a1e7ddaa5b3ca357d6b806301 WHIRLPOOL 51c07ba64726ed9697a88b92588b62fa6172c39d994c70029bbe3b90f9ef7b7486df047e96e8658e6483100c3855cc458dcd4b0fe5692ec4276d62676452c93f
+DIST livereload-2.3.2.tar.gz 24119 SHA256 fa2959005a134d767409c129cbf94528a0eb5022c915da9c685e14f1adb81b63 SHA512 59dc5be184d80a8b3aa6f98a6bc12f98f2efe00a0497deadfe5275222be2e0865e182cf0d83fc7a6e5f7297a7bf26a30c3ad9af5eeb2517af8b7ab3946e4bb1d WHIRLPOOL acf0c4ffa017a65d67423bb28b36cfd4e8acec59c47cc845f98669a3368920fa1e4e33b4c86e00082aeb416225066091305adcf1e8919071825a192ab5127180
+EBUILD livereload-2.3.2.ebuild 1031 SHA256 9c871cebb2fa55768a631757df0f269f40ff3d13541030c2dd963edb87626676 SHA512 6958a0a4d84ad844c327d82b0a11926330dbddcfe49ef8421b4686c4b89464dc9f5ed00b4903bb461296d66fc1a8606401298fb5a073fa2930d9e2dde6a527b3 WHIRLPOOL eeee24a6b4ad6e6ae49bc52f88c7f788f166c9ed3cbcdeec8ee2935f7ccf6f03d822dc1443872945f339ce0928238559e897c19fbfea173dd1b713f159283ba8
+MISC ChangeLog 386 SHA256 1709470a2d4182210b9a91de49baed4eafdad5da3cad6080a6513c7d7bf5f93a SHA512 f59f46d3d5b1c7b30a99828db490a30cbab108e8ea35b92dd064fb3de4e2324f74180b081724cb6b24590dd41f9b5264a6a78a1c2f1683d0c9c3cd16204d17fd WHIRLPOOL 04269734121530c9c1e8f5ee84a15b5070ddacd5b5e19d6ccaf176bdae74e689dce0d73efd509f3848e9a7f1918ff314ef006e0a8a477fe9f3b8b3eb4a1ff8e3
+MISC metadata.xml 281 SHA256 4f517e212ebf30022599267011b7d752fb61f1063c90f9d442242fba23e5207f SHA512 c4d7e9c37508015a286fc8288d3c201c5779aca1252bc6ed7f25ce87555b513817d4e3fa624255e7644b24e4db0e1b976ea34810ece8f718dac3b027a3e601ba WHIRLPOOL d144bd0785d423f05e5ff568d7c7c5b6f4aa6d651d44ec9f55dce23aafc6552d0d39f8229a612109665cfb3e839ff746e64c0cb0130fe93e9f231238c61a87ba
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2
+
+iQIcBAEBCAAGBQJVROqtAAoJECZUyt4RqCF8EfgP/jTmMvibTCH0SM7R5rUegcPG
+zotk6U2xDebOmmQR7uQAEtHicVQn0B4upR7uvgdUj1APnQ22HVJmYoz0N8erRbsZ
+I/nQ2wxeXRcUPKqmdSstPwtbt4WmzaI4+UOAxVKE5y/Fn/t5Ty2yokDkb/QdJHlZ
+Biq0mXwPD+3n3vkyW0udeaFKdH4YAAz1U8KBB/idO5YR0iGQn2gtiw1NjMV5Bu3F
+JI+OnRfNJ6ssXWFUFKQ1/ZyIN5BD4r/G3ZupZeNLN0On9Jxw5TkNKvmcqpa3GHlj
+tPI7bHP0rJ7ZToT6NxJBeqFLhH8uh9Ea2hKf9xw151CRlsPt1+S/yNnjWl+2gJD3
+NG2i4h4NvTLCA8cd8aciqdTHHCD4nTLyVDVoSb3fjaKxdq9vquWs68Rp3LQZnnzg
+4R/tHV6KKnbWYa2dMdhXKeXdASF+STDUMbivmqCMTsztrcwVVpgrH7x7MS/Inbuq
+6FuKEhTQiKCRCbRHRZH4iObGoMdYr+xVnRS0rC5ycF3x6C9CnghLwYnDVRdOQ0Pm
+ZoSDI3c8BQ8xMnzbEe+V9xxzoXiHg2c8cq8rXemrWQXsAyRdl4xkGJKRO1h8IN+q
+6Jys8Crjg8JN3qsysrVVOq3G10mITpCXX006V66/9tv/waShl9mZIQMX+Z11Z55G
+CZFc4JLBIYMTpdM1PDE0
+=47U3
+-----END PGP SIGNATURE-----
diff --git a/dev-python/livereload/files/fix-tests.patch b/dev-python/livereload/files/fix-tests.patch
new file mode 100644 (file)
index 0000000..2c9208a
--- /dev/null
@@ -0,0 +1,77 @@
+diff --git a/tests/test_watcher.py b/tests/test_watcher.py
+index fa0ae41..5310bdc 100644
+--- a/tests/test_watcher.py
++++ b/tests/test_watcher.py
+@@ -3,18 +3,22 @@
+ import os
+ import time
+ import shutil
++import unittest
+ from livereload.watcher import Watcher
+ 
+ tmpdir = os.path.join(os.path.dirname(__file__), 'tmp')
+ 
+ 
+-class TestWatcher(object):
++class TestWatcher(unittest.TestCase):
+ 
+     def setUp(self):
+         if os.path.isdir(tmpdir):
+             shutil.rmtree(tmpdir)
+         os.mkdir(tmpdir)
+ 
++    def tearDown(self):
++        shutil.rmtree(tmpdir)
++
+     def test_watch_dir(self):
+         os.mkdir(os.path.join(tmpdir, '.git'))
+         os.mkdir(os.path.join(tmpdir, '.hg'))
+@@ -25,6 +29,9 @@ class TestWatcher(object):
+         watcher.watch(tmpdir)
+         assert watcher.is_changed(tmpdir) is False
+ 
++        # sleep 1 second so that mtime will be different
++        time.sleep(1)
++
+         with open(os.path.join(tmpdir, 'foo'), 'w') as f:
+             f.write('')
+ 
+@@ -35,6 +42,9 @@ class TestWatcher(object):
+         watcher = Watcher()
+         watcher.count = 0
+ 
++        # sleep 1 second so that mtime will be different
++        time.sleep(1)
++
+         filepath = os.path.join(tmpdir, 'foo')
+         with open(filepath, 'w') as f:
+             f.write('')
+@@ -51,22 +61,24 @@ class TestWatcher(object):
+         with open(filepath, 'w') as f:
+             f.write('')
+ 
+-        assert watcher.examine() == os.path.abspath(filepath)
++        rv = watcher.examine()
++        assert rv[0] == os.path.abspath(filepath)
+         assert watcher.count == 1
+ 
+     def test_watch_glob(self):
+         watcher = Watcher()
+         watcher.watch(tmpdir + '/*')
+-        assert watcher.examine() is None
++        assert watcher.examine() == (None, None)
+ 
+         with open(os.path.join(tmpdir, 'foo.pyc'), 'w') as f:
+             f.write('')
+ 
+-        assert watcher.examine() is None
++        assert watcher.examine() == (None, None)
+ 
+         filepath = os.path.join(tmpdir, 'foo')
+ 
+         with open(filepath, 'w') as f:
+             f.write('')
+ 
+-        assert watcher.examine() == os.path.abspath(filepath)
++        rv = watcher.examine()
++        assert rv[0] == os.path.abspath(filepath)
diff --git a/dev-python/livereload/livereload-2.3.2.ebuild b/dev-python/livereload/livereload-2.3.2.ebuild
new file mode 100644 (file)
index 0000000..c49a6bd
--- /dev/null
@@ -0,0 +1,42 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/livereload/livereload-2.3.2.ebuild,v 1.1 2015/05/02 15:18:04 alunduil Exp $
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 python3_3 python3_4 )
+
+inherit distutils-r1 vcs-snapshot
+
+DESCRIPTION="Python LiveReload is an awesome tool for web developers"
+HOMEPAGE="https://github.com/lepture/python-livereload"
+SRC_URI="https://github.com/lepture/python-${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples test"
+
+DEPEND="
+       dev-python/setuptools[${PYTHON_USEDEP}]
+       test? ( dev-python/nose[${PYTHON_USEDEP}] )
+"
+
+RDEPEND="www-servers/tornado[${PYTHON_USEDEP}]"
+
+python_prepare_all() {
+       local PATCHES=(
+               "${FILESDIR}"/fix-tests.patch
+       )
+
+       distutils-r1_python_prepare_all
+}
+
+python_test() {
+       nosetests || die "tests failed under ${EPYTHON}"
+}
+
+python_install_all() {
+       use examples && local EXAMPLES=( example/. )
+
+       distutils-r1_python_install_all
+}
diff --git a/dev-python/livereload/metadata.xml b/dev-python/livereload/metadata.xml
new file mode 100644 (file)
index 0000000..02be8c5
--- /dev/null
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <maintainer>
+               <email>alunduil@gentoo.org</email>
+               <name>Alex Brandt</name>
+       </maintainer>
+       <longdescription lang="en">
+       </longdescription>
+</pkgmetadata>