pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/rss2email Add a patch to properly honor html2text...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c7f03b5fa828
branches:  trunk
changeset: 362699:c7f03b5fa828
user:      leot <leot%pkgsrc.org@localhost>
date:      Mon May 22 17:51:12 2017 +0000

description:
Add a patch to properly honor html2text options via rss2email's configuration
file.

While here also simplify MASTER_SITES (convert it to MASTER_SITE_GITHUB)
and delete DIST_SUBDIR and WRKSRC that are no longer needed with
that change.

Bump PKGREVISION

Discussed with <schmonz>

diffstat:

 mail/rss2email/Makefile                          |  12 +++++-------
 mail/rss2email/distinfo                          |  11 ++++++-----
 mail/rss2email/patches/patch-rss2email_config.py |  21 +++++++++++++++++++++
 3 files changed, 32 insertions(+), 12 deletions(-)

diffs (69 lines):

diff -r c0c37a6478d1 -r c7f03b5fa828 mail/rss2email/Makefile
--- a/mail/rss2email/Makefile   Mon May 22 17:23:26 2017 +0000
+++ b/mail/rss2email/Makefile   Mon May 22 17:51:12 2017 +0000
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.41 2015/04/13 23:12:42 rodent Exp $
+# $NetBSD: Makefile,v 1.42 2017/05/22 17:51:12 leot Exp $
 
-DISTNAME=              v3.9
-PKGNAME=               rss2email-3.9
+DISTNAME=              rss2email-3.9
+PKGREVISION=           1
 CATEGORIES=            mail
-MASTER_SITES=          ${HOMEPAGE}archive/
-DIST_SUBDIR=           rss2email
+MASTER_SITES=          ${MASTER_SITE_GITHUB:=wking/}
+GITHUB_TAG=            v${PKGVERSION_NOREV}
 
 MAINTAINER=            schmonz%NetBSD.org@localhost
 HOMEPAGE=              https://github.com/wking/rss2email/
@@ -15,8 +15,6 @@
 DEPENDS+=              ${PYPKGPREFIX}-feedparser>=5.0.1:../../textproc/py-feedparser
 DEPENDS+=              ${PYPKGPREFIX}-html2text>=2014.4.5:../../textproc/py-html2text
 
-WRKSRC=                        ${WRKDIR}/${PKGNAME_NOREV}
-
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 PYDISTUTILSPKG=                yes
diff -r c0c37a6478d1 -r c7f03b5fa828 mail/rss2email/distinfo
--- a/mail/rss2email/distinfo   Mon May 22 17:23:26 2017 +0000
+++ b/mail/rss2email/distinfo   Mon May 22 17:51:12 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.27 2015/11/03 23:27:19 agc Exp $
+$NetBSD: distinfo,v 1.28 2017/05/22 17:51:12 leot Exp $
 
-SHA1 (rss2email/v3.9.tar.gz) = 3d82fa1da8a59942c22b74f2f290d7f2ebe33ecc
-RMD160 (rss2email/v3.9.tar.gz) = d6410a0303a2a24245300d2946852ff2f660dfe5
-SHA512 (rss2email/v3.9.tar.gz) = 6958eb401d782a027dcf98fbb3cac0d37e58641b800cb1e62916fc898603bb7032900aca34c1744b2c6896963babb61e28dbfedfeaf4206224b15baa2ef09cd9
-Size (rss2email/v3.9.tar.gz) = 160904 bytes
+SHA1 (rss2email-3.9.tar.gz) = 3d82fa1da8a59942c22b74f2f290d7f2ebe33ecc
+RMD160 (rss2email-3.9.tar.gz) = d6410a0303a2a24245300d2946852ff2f660dfe5
+SHA512 (rss2email-3.9.tar.gz) = 6958eb401d782a027dcf98fbb3cac0d37e58641b800cb1e62916fc898603bb7032900aca34c1744b2c6896963babb61e28dbfedfeaf4206224b15baa2ef09cd9
+Size (rss2email-3.9.tar.gz) = 160904 bytes
+SHA1 (patch-rss2email_config.py) = f99a023a1f3b207da46e721da112321fa1e5153d
diff -r c0c37a6478d1 -r c7f03b5fa828 mail/rss2email/patches/patch-rss2email_config.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/rss2email/patches/patch-rss2email_config.py  Mon May 22 17:51:12 2017 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-rss2email_config.py,v 1.1 2017/05/22 17:51:12 leot Exp $
+
+Properly pass the configuration options to html2text
+
+--- rss2email/config.py.orig   2014-09-01 23:21:01.000000000 +0000
++++ rss2email/config.py
+@@ -51,11 +51,11 @@ class Config (_configparser.ConfigParser
+         """
+         if section not in self:
+             section = 'DEFAULT'
+-        _html2text.UNICODE_SNOB = self.getboolean(
++        _html2text.config.UNICODE_SNOB = self.getboolean(
+             section, 'unicode-snob')
+-        _html2text.LINKS_EACH_PARAGRAPH = self.getboolean(
++        _html2text.config.LINKS_EACH_PARAGRAPH = self.getboolean(
+             section, 'links-after-each-paragraph')
+-        _html2text.BODY_WIDTH = self.getint(section, 'body-width')
++        _html2text.config.BODY_WIDTH = self.getint(section, 'body-width')
+ 
+ 
+ CONFIG = Config()



Home | Main Index | Thread Index | Old Index