dev-python/brython: Add Brython to the tree.
authorPatrice Clement <monsieurp@gentoo.org>
Mon, 13 Jun 2016 18:15:34 +0000 (18:15 +0000)
committerPatrice Clement <monsieurp@gentoo.org>
Mon, 13 Jun 2016 18:15:50 +0000 (18:15 +0000)
Brython is a JavaScript library but also a Python 3 implementation for
client-side web programming. It allows developers to write Python code in and
for the browser instead of JavaScript code.

Package-Manager: portage-2.2.28

dev-python/brython/Manifest [new file with mode: 0644]
dev-python/brython/brython-3.2.6.ebuild [new file with mode: 0644]
dev-python/brython/metadata.xml [new file with mode: 0644]

diff --git a/dev-python/brython/Manifest b/dev-python/brython/Manifest
new file mode 100644 (file)
index 0000000..3319871
--- /dev/null
@@ -0,0 +1 @@
+DIST brython-3.2.6.zip 9330416 SHA256 209f5ddd5165c083217c3146fbdf1dcbc26346f4e3366172c61e08d5af4a22e7 SHA512 307c914b5bbe30765187ff57c324a4ce575b28ea6b41f87e81b02309b1fae7d011603c006d9ab938af50657167de3d66b48de1a92363f76e225a0a3948d4e045 WHIRLPOOL f9a4bc892c2eb1737bb25486ec4c3dfb9615cb18191ac4e87f09316a2be4165236b4e578be374d493908a1d812417cdd7de7c9ab3aabd9eae257957af15c7099
diff --git a/dev-python/brython/brython-3.2.6.ebuild b/dev-python/brython/brython-3.2.6.ebuild
new file mode 100644 (file)
index 0000000..feed5f4
--- /dev/null
@@ -0,0 +1,33 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit webapp
+
+DESCRIPTION="A Python 3 implementation for client-side web programming"
+HOMEPAGE="http://www.brython.info"
+SRC_URI="https://github.com/${PN}-dev/${PN}/archive/${PV}.zip -> ${P}.zip"
+
+LICENSE="BSD"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND="dev-lang/python:*"
+
+DEPEND="${RDEPEND}"
+
+need_httpd_cgi
+
+src_install() {
+       dodoc LICENCE.txt README.md
+       rm -v LICENCE.txt README.md bower.json .{git*,tra*} server.py || die
+
+       webapp_src_preinst
+
+       insinto "${MY_HTDOCSDIR}"
+       doins -r .
+
+       webapp_src_install
+}
diff --git a/dev-python/brython/metadata.xml b/dev-python/brython/metadata.xml
new file mode 100644 (file)
index 0000000..e6f8cef
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer type="project">
+    <email>python@gentoo.org</email>
+    <name>Gentoo Python Project</name>
+  </maintainer>
+  <maintainer type="person">
+    <email>monsieurp@gentoo.org</email>
+    <name>Patrice Clement</name>
+  </maintainer>
+</pkgmetadata>