diff options
-rw-r--r-- | dev-python/unidecode/ChangeLog | 10 | ||||
-rw-r--r-- | dev-python/unidecode/Manifest | 4 | ||||
-rw-r--r-- | dev-python/unidecode/metadata.xml | 20 | ||||
-rw-r--r-- | dev-python/unidecode/unidecode-0.04.9.ebuild | 24 |
4 files changed, 58 insertions, 0 deletions
diff --git a/dev-python/unidecode/ChangeLog b/dev-python/unidecode/ChangeLog new file mode 100644 index 000000000000..3d2b3a4ec62f --- /dev/null +++ b/dev-python/unidecode/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-python/unidecode +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/unidecode/ChangeLog,v 1.1 2012/05/27 21:30:12 sochotnicky Exp $ + +*unidecode-0.04.9 (27 May 2012) + + 27 May 2012; Stanislav Ochotnicky <sochotnicky@gentoo.org> + +unidecode-0.04.9.ebuild, +metadata.xml: + New ebuild for unidecode python module + diff --git a/dev-python/unidecode/Manifest b/dev-python/unidecode/Manifest new file mode 100644 index 000000000000..3fbb896a2e7d --- /dev/null +++ b/dev-python/unidecode/Manifest @@ -0,0 +1,4 @@ +DIST Unidecode-0.04.9.tar.gz 196659 RMD160 8ca1c7bb80dcb313b93d3bb6d47576c106e7a14e SHA1 c705b71ea08978012b5800f038b1de1a3ba81426 SHA256 95df723427e7e1872349e2c3aef54c77c1df48fa57563d050bf56f43ba1d4d14 +EBUILD unidecode-0.04.9.ebuild 490 RMD160 158545a8509529abdd899fc67924ebed55d8ebde SHA1 2e65c64c78c0139c0f99319315ce56240a38b4f6 SHA256 1730db901e987aac361481696f63c3f76da6a3f30e3741fb686d881a5671b125 +MISC ChangeLog 300 RMD160 f87e1d92776887d41e6d9a7cf30b992d358b3b31 SHA1 41caa62c76f02d983be36ba7ef4ba1238bd2eece SHA256 e3a9649f02115709cd7496a034a931c43d5bb9c11af51b21a428b167f45fce1f +MISC metadata.xml 1615 RMD160 1de099a2538fcfde1631dc1b2555c065d761b8ec SHA1 34cbed38ec9a1f557a2070b673f4678ec8f0d7e6 SHA256 9fb1bf21aa6e6b1b5beaa8ff8f21ada601342ede685621782fbe2d9a4464b549 diff --git a/dev-python/unidecode/metadata.xml b/dev-python/unidecode/metadata.xml new file mode 100644 index 000000000000..ff4ebe228458 --- /dev/null +++ b/dev-python/unidecode/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>sochotnicky@gentoo.org</email> + <name>Stanislav Ochotnicky</name> + </maintainer> + <longdescription lang="en"> +This is a Python port of Text::Unidecode Perl module + +It often happens that you have text data in Unicode, but you need to represent it in ASCII. For example when integrating with legacy code that doesn't support Unicode, or for ease of entry of non-Roman names on a US keyboard, or when constructing ASCII machine identifiers from human-readable Unicode strings that should still be somewhat intelligeble (a popular example of this is when making an URL slug from an article title). + +In most of these examples you could represent Unicode characters as "???" or "\15BA\15A0\1610", to mention two extreme cases. But that's nearly useless to someone who actually wants to read what the text says. + +What Unidecode provides is a middle road: function unidecode() takes Unicode data and tries to represent it in ASCII characters (i.e., the universally displayable characters between 0x00 and 0x7F), where the compromises taken when mapping between two character sets are chosen to be near what a human with a US keyboard would choose. + +Note that this module generally produces better results than simply stripping accents from characters (which can be done in Python with built-in functions). It is based on hand-tuned character mappings that for example also contain ASCII approximations for symbols and non-Latin alphabets. + </longdescription> +</pkgmetadata> + diff --git a/dev-python/unidecode/unidecode-0.04.9.ebuild b/dev-python/unidecode/unidecode-0.04.9.ebuild new file mode 100644 index 000000000000..6a4a6c39f676 --- /dev/null +++ b/dev-python/unidecode/unidecode-0.04.9.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/unidecode/unidecode-0.04.9.ebuild,v 1.1 2012/05/27 21:30:12 sochotnicky Exp $ + +EAPI=4 + +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="" + +inherit distutils + +S="${WORKDIR}/Unidecode-${PV}" + +DESCRIPTION="Moduke providing ASCII transliterations of Unicode text" +HOMEPAGE="http://pypi.python.org/pypi/Unidecode" +SRC_URI="mirror://pypi/U/Unidecode/Unidecode-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" |