diff options
author | Akinori Hattori <hattya@gentoo.org> | 2013-08-03 08:23:27 +0000 |
---|---|---|
committer | Akinori Hattori <hattya@gentoo.org> | 2013-08-03 08:23:27 +0000 |
commit | 25a802be2393625f084087b38ea3e8ce02e87ac0 (patch) | |
tree | 0b74788a13e7781b65edf938096ad7eebe86cac9 /dev-python/mecab-python | |
parent | Version bump, drop old (diff) | |
download | gentoo-2-25a802be2393625f084087b38ea3e8ce02e87ac0.tar.gz gentoo-2-25a802be2393625f084087b38ea3e8ce02e87ac0.tar.bz2 gentoo-2-25a802be2393625f084087b38ea3e8ce02e87ac0.zip |
fix usage of distutils-r1
(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key EC917A6D)
Diffstat (limited to 'dev-python/mecab-python')
-rw-r--r-- | dev-python/mecab-python/ChangeLog | 6 | ||||
-rw-r--r-- | dev-python/mecab-python/files/mecab-python-py3.diff | 11 | ||||
-rw-r--r-- | dev-python/mecab-python/mecab-python-0.996.ebuild | 16 |
3 files changed, 20 insertions, 13 deletions
diff --git a/dev-python/mecab-python/ChangeLog b/dev-python/mecab-python/ChangeLog index a11669dd5808..b6a869a73dcc 100644 --- a/dev-python/mecab-python/ChangeLog +++ b/dev-python/mecab-python/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-python/mecab-python # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/mecab-python/ChangeLog,v 1.19 2013/08/03 08:00:27 hattya Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/mecab-python/ChangeLog,v 1.20 2013/08/03 08:23:27 hattya Exp $ + + 03 Aug 2013; Akinori Hattori <hattya@gentoo.org> +files/mecab-python-py3.diff, + mecab-python-0.996.ebuild: + fix usage of distutils-r1 *mecab-python-0.996 (03 Aug 2013) diff --git a/dev-python/mecab-python/files/mecab-python-py3.diff b/dev-python/mecab-python/files/mecab-python-py3.diff new file mode 100644 index 000000000000..33c8d97ebb2b --- /dev/null +++ b/dev-python/mecab-python/files/mecab-python-py3.diff @@ -0,0 +1,11 @@ +--- a/setup.py ++++ b/setup.py +@@ -7,7 +7,7 @@ + return os.popen(str).readlines()[0][:-1] + + def cmd2(str): +- return string.split (cmd1(str)) ++ return cmd1(str).split() + + setup(name = "mecab-python", + version = cmd1("mecab-config --version"), diff --git a/dev-python/mecab-python/mecab-python-0.996.ebuild b/dev-python/mecab-python/mecab-python-0.996.ebuild index 4a7ab8e4172e..905a11ae04b3 100644 --- a/dev-python/mecab-python/mecab-python-0.996.ebuild +++ b/dev-python/mecab-python/mecab-python-0.996.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/mecab-python/mecab-python-0.996.ebuild,v 1.1 2013/08/03 08:00:27 hattya Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-python/mecab-python/mecab-python-0.996.ebuild,v 1.2 2013/08/03 08:23:27 hattya Exp $ EAPI="5" PYTHON_COMPAT=( python{2_{5,6,7},3_{1,2,3}} ) @@ -19,14 +19,6 @@ IUSE="" DEPEND=">=app-text/mecab-${PV}" RDEPEND="${DEPEND}" -DOCS="test.py" -PYTHON_MODNAME="MeCab.py" - -src_prepare() { - sed -i "/string\./s/string\.split (\(.*\))/\1.split()/" setup.py || die -} - -src_install() { - distutils_src_install - dohtml bindings.html -} +PATCHES=( "${FILESDIR}/${PN}-py3.diff" ) +DOCS=( test.py ) +HTML_DOCS=( bindings.html ) |