* [gentoo-commits] dev/eva:master commit in: dev-python/webarticle2text/, dev-python/webarticle2text/files/
@ 2012-10-20 13:12 Gilles Dartiguelongue
0 siblings, 0 replies; only message in thread
From: Gilles Dartiguelongue @ 2012-10-20 13:12 UTC (permalink / raw
To: gentoo-commits
commit: 7c662e0cc7b2ff790c0714eb3c116db9440f7239
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 20 11:38:51 2012 +0000
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
CommitDate: Sat Oct 20 11:38:51 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/eva.git;a=commit;h=7c662e0c
dev-python/webarticle2text: fix missing encoding
* Fix license.
* Add missing metadata.
---
.../files/webarticle2text-1.2.4-encoding.patch | 11 +++++++++++
dev-python/webarticle2text/metadata.xml | 8 ++++++++
.../webarticle2text/webarticle2text-1.2.4.ebuild | 11 +++++++++--
3 files changed, 28 insertions(+), 2 deletions(-)
diff --git a/dev-python/webarticle2text/files/webarticle2text-1.2.4-encoding.patch b/dev-python/webarticle2text/files/webarticle2text-1.2.4-encoding.patch
new file mode 100644
index 0000000..b11fdf4
--- /dev/null
+++ b/dev-python/webarticle2text/files/webarticle2text-1.2.4-encoding.patch
@@ -0,0 +1,11 @@
+diff --git a/webarticle2text.py b/webarticle2text.py
+index a939594..25b70f2 100755
+--- a/webarticle2text.py
++++ b/webarticle2text.py
+@@ -1,4 +1,6 @@
+ #!/usr/bin/python
++# -*- coding: utf-8 -*-
++
+ """
+ File: webarticle2text.py
+
diff --git a/dev-python/webarticle2text/metadata.xml b/dev-python/webarticle2text/metadata.xml
new file mode 100644
index 0000000..23310c6
--- /dev/null
+++ b/dev-python/webarticle2text/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>eva@gentoo.org</email>
+ <name>Gilles Dartiguelongue</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-python/webarticle2text/webarticle2text-1.2.4.ebuild b/dev-python/webarticle2text/webarticle2text-1.2.4.ebuild
index 0c686d0..5b820fe 100644
--- a/dev-python/webarticle2text/webarticle2text-1.2.4.ebuild
+++ b/dev-python/webarticle2text/webarticle2text-1.2.4.ebuild
@@ -6,13 +6,13 @@ EAPI="4"
PYTHON_COMPAT=( python2_5 python2_6 python2_7 )
-inherit distutils-r1
+inherit distutils-r1 eutils
DESCRIPTION="Extracts the main article text from a webpage"
HOMEPAGE="https://github.com/chrisspen/webarticle2text"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
-LICENSE="LGPL"
+LICENSE="LGPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
@@ -27,3 +27,10 @@ DEPEND="${RDEPEND}
# Not distributed yet
#DOCS=( README.rst )
+
+src_prepare() {
+ # Add missing coding as required by pep267
+ epatch "${FILESDIR}/${P}-encoding.patch"
+
+ distutils-r1_src_prepare
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-10-20 13:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-20 13:12 [gentoo-commits] dev/eva:master commit in: dev-python/webarticle2text/, dev-python/webarticle2text/files/ Gilles Dartiguelongue
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox