Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Feb 2016 12:18:06 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r409511 - in head/mail/py-spambayes: . files
Message-ID:  <201602251218.u1PCI6qF024413@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Thu Feb 25 12:18:06 2016
New Revision: 409511
URL: https://svnweb.freebsd.org/changeset/ports/409511

Log:
  mail/py-spambayes: Update to 1.1b2
  
  - Update PORTVERSION and distinfo checksum (1.1.b2)
  - Correctly set USES=python to -2.7, not to depend on the lang/python2
    port (:2)
  - Remove post-patch replacement of Python shebang lines. setuptools
    rewrites shebangs console_scripts/scripts according to the Python
    version the package was built with already.
  - Update pkg-descr (match first paragraph in setup.py)
  - Regenerate patches (makepatch compatible, portlint)
  - Sort USE{S} entries

Modified:
  head/mail/py-spambayes/Makefile
  head/mail/py-spambayes/distinfo
  head/mail/py-spambayes/files/patch-spambayes_Dibbler.py
  head/mail/py-spambayes/pkg-descr

Modified: head/mail/py-spambayes/Makefile
==============================================================================
--- head/mail/py-spambayes/Makefile	Thu Feb 25 12:16:33 2016	(r409510)
+++ head/mail/py-spambayes/Makefile	Thu Feb 25 12:18:06 2016	(r409511)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	spambayes
-PORTVERSION=	1.1b1
-PORTREVISION=	1
+PORTVERSION=	1.1b2
 CATEGORIES=	mail python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -17,12 +16,14 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}bsdd
 		${PYTHON_PKGNAMEPREFIX}dns>=2.0:${PORTSDIR}/dns/py-dns \
 		${PYTHON_PKGNAMEPREFIX}lockfile>=0.2:${PORTSDIR}/devel/py-lockfile
 
-USES=		python:2
+USES=		python:-2.7
 USE_PYTHON=	distutils autoplist
-NO_ARCH=	yes
-
 USE_RC_SUBR=	pyspamd
 
+OPTIONS_DEFINE=	DOCS
+
+NO_ARCH=	yes
+
 LOCALSTATDIR?=	/var/db/spambayes
 DBDIR?=		${LOCALSTATDIR}/dbs
 CACHEDIR?=	${LOCALSTATDIR}/cache
@@ -44,18 +45,10 @@ PORTDOCS=	CHANGELOG.txt \
 		utilities/ \
 		contrib/
 
-OPTIONS_DEFINE=	DOCS
-
 post-extract:
 	@${CHMOD} -Rf u+w ${WRKSRC}
 
 post-patch:
-	@${FIND} ${WRKSRC} -type f | \
-		${XARGS} -n 10 -x \
-		${REINPLACE_CMD} -E \
-		-e 's|/usr/bin/env python|${PYTHONBASE}/bin/${PYTHON_VERSION}|'
-	@${FIND} ${WRKSRC}/utilities ${WRKSRC}/contrib ${WRKSRC}/spambayes\
-		-type f -name *.bak | ${XARGS} ${RM}
 	@${REINPLACE_CMD} -e \
 		'/persistent_storage_file/s|hammie.db|${DBDIR}/hammie.db|' \
 		-e \

Modified: head/mail/py-spambayes/distinfo
==============================================================================
--- head/mail/py-spambayes/distinfo	Thu Feb 25 12:16:33 2016	(r409510)
+++ head/mail/py-spambayes/distinfo	Thu Feb 25 12:18:06 2016	(r409511)
@@ -1,2 +1,2 @@
-SHA256 (spambayes-1.1b1.tar.gz) = 4dc4aef5b0b3c3a02d8d36391d3ebde6ab3078e4aa39f0611b226f03993c9c36
-SIZE (spambayes-1.1b1.tar.gz) = 1015721
+SHA256 (spambayes-1.1b2.tar.gz) = 8d186d1e7a67de88941f27e0cfcfb4e88fffd7706f51e9181a5bcdaa1b6f8294
+SIZE (spambayes-1.1b2.tar.gz) = 1001993

Modified: head/mail/py-spambayes/files/patch-spambayes_Dibbler.py
==============================================================================
--- head/mail/py-spambayes/files/patch-spambayes_Dibbler.py	Thu Feb 25 12:16:33 2016	(r409510)
+++ head/mail/py-spambayes/files/patch-spambayes_Dibbler.py	Thu Feb 25 12:18:06 2016	(r409511)
@@ -1,6 +1,6 @@
---- spambayes/Dibbler.py~	2009-07-10 21:43:59.000000000 +0200
-+++ spambayes/Dibbler.py	2009-07-10 21:44:37.655326444 +0200
-@@ -218,7 +218,7 @@
+--- spambayes/Dibbler.py.orig	2013-02-06 11:28:18 UTC
++++ spambayes/Dibbler.py
+@@ -215,7 +215,7 @@ class BrighterAsyncChat(asynchat.async_c
          # self.initiate_send() raises an exception, causing self.close()
          # to be called.  If we didn't check, we could end up in an infinite
          # loop.

Modified: head/mail/py-spambayes/pkg-descr
==============================================================================
--- head/mail/py-spambayes/pkg-descr	Thu Feb 25 12:16:33 2016	(r409510)
+++ head/mail/py-spambayes/pkg-descr	Thu Feb 25 12:18:06 2016	(r409511)
@@ -1,19 +1,7 @@
-[ excerpt with modifications from developer's site ]
-
-The SpamBayes project is working on developing a Bayesian anti-spam
-filter.
-
-SpamBayes will attempt to classify incoming email messages as 'spam',
-'ham' (good, non-spam email) or 'unsure'. This means you can have
-spam or unsure messages automatically filed away in a different
-mail folder, where it won't interrupt your email reading.
-
-First, SpamBayes must be trained by each user to identify spam and
-ham. Essentially, you show SpamBayes a pile of email that you like
-(ham) and a pile you don't like (spam). SpamBayes will then analyze
-the piles for clues as to what makes the spam and ham different.
-For example; different words, differences in the mailer headers and
-content style. The system then uses these clues to examine new
-messages.
+SpamBayes is a tool used to segregate unwanted mail (spam) from the mail you
+want (ham). Before SpamBayes can be your spam filter of choice you need to
+train it on representative samples of email you receive. After it's been
+trained, you use SpamBayes to classify new mail according to its spamminess
+and hamminess qualities. 
 
 WWW: http://spambayes.sourceforge.net/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602251218.u1PCI6qF024413>