summaryrefslogtreecommitdiff
path: root/dev-python/e4u
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/e4u
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/e4u')
-rw-r--r--dev-python/e4u/Manifest5
-rw-r--r--dev-python/e4u/e4u-0.1_rc5.ebuild42
-rw-r--r--dev-python/e4u/files/change-emoji4unicode-url.patch33
-rw-r--r--dev-python/e4u/files/initialize-e4u-tests.patch11
-rw-r--r--dev-python/e4u/metadata.xml21
5 files changed, 112 insertions, 0 deletions
diff --git a/dev-python/e4u/Manifest b/dev-python/e4u/Manifest
new file mode 100644
index 000000000000..2c905a24407d
--- /dev/null
+++ b/dev-python/e4u/Manifest
@@ -0,0 +1,5 @@
+AUX change-emoji4unicode-url.patch 1573 BLAKE2B 3808bf3b3529cdb3df518b5c4bf6ab035ed9bbd03fa87acc252790d23f08760eb96465169557bb751384e70b5949e7974db1fde2f06c1e40480116aa4e6019a4 SHA512 580d02f1af794aaedaa534f80b39e197d60ed964762a8f0122993c0fa6198beed73824e7b8a2714a1de900a70d757afd00b4e3980d9aebad5cab09c4ff013437
+AUX initialize-e4u-tests.patch 247 BLAKE2B 984fd17e09ba494a7af4a54490c23fde6a436975a2ed04527a5fc9ee83993588e3a110645b42cde9df773c9f0cd58c9e33b66cf38840dce8116318bd3e391631 SHA512 a7794b024ff0ef47faa5f5ced9e30fd3161531b744ab0368090d84f7b2fff651eb5b1c90b75e2e6858ade6c875008a8f74900ec4ae931e6ce84ac7464dee1f66
+DIST e4u-0.1rc5.tar.gz 51001 BLAKE2B 32f8b1a32d0f1b51eb97169f0375cf725571c2c7df8cab7414483c997bc7e501c19339d2fbe287718cd50afc2451bc9e9a39d2b42b242657d9a52931f89cfa0e SHA512 d19085a767275c91e807517d714955c123e2dbe3c3904240e09ba115298474067f60393ab613af3eb1af8a09964b157acfc6d69dcaccc4493b014a9bc51e3662
+EBUILD e4u-0.1_rc5.ebuild 864 BLAKE2B a13c898274b0cff4433797fd86aa32f4daeaad3705e6fbaedd88b4d2a992c887ea8d1f37bdffc2d3463940f77645a86620789000dfc32beb73c67ad72bcb17cf SHA512 35f04788535c7dd8878716785a64f0f4d0b65329334794de024948bff26ab527ba33454cb89e8f3e4e3cd49801dd7d150edf4878663dda2c4415d23385c96613
+MISC metadata.xml 728 BLAKE2B df21a956ca12a239654af8886880833482950fef29e5bce8532229a218cf6ff6cf442e66e8c12dd739eedb21696f288a4e714d94d4a90f1f02bb57e20153b90a SHA512 0c98742721f00b7ce92f660aa4d5760b1e8b22436577df6aae110f5e521e2be5e019cb958c17ab22f31c7c099af4d5328f8b612325fe538131c18f90d453fdd5
diff --git a/dev-python/e4u/e4u-0.1_rc5.ebuild b/dev-python/e4u/e4u-0.1_rc5.ebuild
new file mode 100644
index 000000000000..018777c32b7c
--- /dev/null
+++ b/dev-python/e4u/e4u-0.1_rc5.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+MY_PV="${PV/_/}"
+
+DESCRIPTION="A library for handling unicode emoji and carrier's emoji"
+HOMEPAGE="https://github.com/lambdalisue/e4u"
+SRC_URI="https://github.com/lambdalisue/e4u/archive/${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz"
+
+KEYWORDS="~amd64 ~x86"
+LICENSE="BSD"
+SLOT="0"
+IUSE="test"
+
+RDEPEND="dev-python/beautifulsoup:python-2[${PYTHON_USEDEP}]
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+
+DEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+PATCHES=(
+ "${FILESDIR}"/change-emoji4unicode-url.patch
+ "${FILESDIR}"/initialize-e4u-tests.patch
+)
+
+python_test() {
+ esetup.py test
+}
+
+python_install_all() {
+ insinto /usr/share/e4u
+ doins e4u/data/emoji4unicode.xml
+
+ distutils-r1_python_install_all
+}
diff --git a/dev-python/e4u/files/change-emoji4unicode-url.patch b/dev-python/e4u/files/change-emoji4unicode-url.patch
new file mode 100644
index 000000000000..ff9e54bf72a0
--- /dev/null
+++ b/dev-python/e4u/files/change-emoji4unicode-url.patch
@@ -0,0 +1,33 @@
+--- a/e4u/__init__.py 2018-05-22 08:32:05.000000000 +0200
++++ b/e4u/__init__.py 2018-07-04 19:40:53.000000000 +0200
+@@ -11,15 +11,15 @@
+
+ _loader = None
+
+-def load(filename=None,
+- url=r"https://raw.githubusercontent.com/googlei18n/emoji4unicode/master/data/emoji4unicode.xml",
++def load(filename=r"/usr/share/e4u/emoji4unicode.xml",
++ url=None,
+ loader_class=None):
+ u"""load google's `emoji4unicode` project's xml file. must call this method first to use `e4u` library. this method never work twice if you want to reload, use `e4u.reload()` insted."""
+ if not has_loaded():
+ reload(filename, url, loader_class)
+
+-def reload(filename=None,
+- url=r"https://raw.githubusercontent.com/googlei18n/emoji4unicode/master/data/emoji4unicode.xml",
++def reload(filename=r"/usr/share/e4u/emoji4unicode.xml",
++ url=None,
+ loader_class=None):
+ u"""reload google's `emoji4unicode` project's xml file. must call this method first to use `e4u` library."""
+ if loader_class is None:
+--- a/e4u/loader.py 2018-05-22 08:32:05.000000000 +0200
++++ b/e4u/loader.py 2018-07-04 19:43:05.000000000 +0200
+@@ -32,7 +32,7 @@
+ self._translate_dictionaries = create_translate_dictionaries(self.symbols)
+
+
+- def load(self, filename=None, url=r"https://raw.githubusercontent.com/googlei18n/emoji4unicode/master/data/emoji4unicode.xml"):
++ def load(self, filename=r"/usr/share/e4u/emoji4unicode.xml", url=None):
+ if filename:
+ xml = open(filename, 'r').read()
+ else:
diff --git a/dev-python/e4u/files/initialize-e4u-tests.patch b/dev-python/e4u/files/initialize-e4u-tests.patch
new file mode 100644
index 000000000000..cc120ba3d488
--- /dev/null
+++ b/dev-python/e4u/files/initialize-e4u-tests.patch
@@ -0,0 +1,11 @@
+--- a/test/test.py 2018-05-22 08:32:05.000000000 +0200
++++ b/test/test.py 2018-07-07 00:41:02.861367660 +0200
+@@ -7,7 +7,7 @@
+ import unittest
+ import e4u
+
+-e4u.load()
++e4u.load(filename=r"./e4u/data/emoji4unicode.xml")
+
+ DISPLAY_INFO = False
+
diff --git a/dev-python/e4u/metadata.xml b/dev-python/e4u/metadata.xml
new file mode 100644
index 000000000000..5e7524088529
--- /dev/null
+++ b/dev-python/e4u/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>ck+gentoo@bl4ckb0x.de</email>
+ <name>Conrad Kostecki</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/lambdalisue/e4u/issues</bugs-to>
+ <remote-id type="github">lambdalisue/e4u</remote-id>
+ </upstream>
+ <longdescription>
+ A library for handling unicode emoji and carrier's emoji.
+ The main feature is conversion unicode emoji to carrier's emoji
+ and conversion carrier's emoji to unicode emoji.
+ </longdescription>
+</pkgmetadata>