ports/160261: [PATHC] textproc/translate-toolkit: eliminate py-pysqlite2x dependency

Ruslan Mahmatkhanov cvs-src at yandex.ru
Sun Aug 28 19:40:02 UTC 2011


>Number:         160261
>Category:       ports
>Synopsis:       [PATHC] textproc/translate-toolkit: eliminate py-pysqlite2x dependency
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 28 19:40:02 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Ruslan Mahmatkhanov
>Release:        9.0-BETA1
>Organization:
>Environment:
9.0-BETA1 i386
>Description:
- bump USE_PYTHON to 2.5+ (the point is to reduce the number of ports that depend
  on python24, since it not supported upstream anymore and the default python
  version in the ports tree is the 2.7)
- since it now requires 2.5+ eliminate py-elementtree dependency since
  elementtree is a part of python since 2.5 (please see
  http://docs.python.org/library/xml.etree.elementtree.html)
- bump portrevision
- fix whitespace nits in Makefile and pkg-plist to pet portlint
- since it now requires 2.5+ change databases/py-pysqlite2x dependency with
  databases/py-sqlite3.

I checked the source and it using this pattern to import sqlite module:
"""
try:
    from sqlite3 import dbapi2
except ImportError:
    from pysqlite2 import dbapi2
"""

so nothing will be broken with this change,
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruNa translate-toolkit.orig/Makefile translate-toolkit/Makefile
--- translate-toolkit.orig/Makefile	2011-04-30 21:16:26.000000000 +0400
+++ translate-toolkit/Makefile	2011-08-28 23:30:07.000000000 +0400
@@ -7,6 +7,7 @@
 
 PORTNAME=	translate-toolkit
 PORTVERSION=	1.9.0
+PORTREVISION=	1
 CATEGORIES=	textproc
 MASTER_SITES=	SF/translate/Translate%20Toolkit/${PORTVERSION} \
 		http://freebsd.unixfreunde.de/sources/
@@ -14,10 +15,9 @@
 MAINTAINER=	jpaetzel at FreeBSD.org
 COMMENT=	Converts between many translation formats
 
-BUILD_DEPENDS=	py*-pysqlite>=2.3:${PORTSDIR}/databases/py-pysqlite23 \
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sqlite3>=0:${PORTSDIR}/databases/py-sqlite3 \
 		py*-vobject>=0:${PORTSDIR}/deskutils/py-vobject \
 		msghack:${PORTSDIR}/devel/gettext-msghack \
-		py*-elementtree>=0:${PORTSDIR}/devel/py-elementtree \
 		py*-iniparse>=0:${PORTSDIR}/devel/py-iniparse \
 		py*-levenshtein>=0:${PORTSDIR}/devel/py-levenshtein \
 		py*-lxml>=0:${PORTSDIR}/devel/py-lxml \
@@ -29,8 +29,8 @@
 
 USE_BZIP2=	yes
 USE_GETTEXT=	yes
-USE_PYTHON=	yes
-USE_PYDISTUTILS=yes
+USE_PYTHON=	2.5+
+USE_PYDISTUTILS=	yes
 
 MAN1=		csv2po.1 csv2tbx.1 html2po.1 ical2po.1 ini2po.1 \
 		moz2po.1 odf2xliff.1 oo2po.1 oo2xliff.1 \
diff -ruNa translate-toolkit.orig/pkg-descr translate-toolkit/pkg-descr
--- translate-toolkit.orig/pkg-descr	2007-08-30 23:20:13.000000000 +0400
+++ translate-toolkit/pkg-descr	2011-08-28 23:29:26.000000000 +0400
@@ -6,7 +6,7 @@
 localization project and how to localize various projects from
 OpenOffice.org to Mozilla.
 
-At its core the software contains a set of classes for handling various 
+At its core the software contains a set of classes for handling various
 localization storage formats: DTD, properties, OpenOffice.org GSI/SDF,
 CSV and of course PO and XLIFF.  It also provides scripts to convert
 between these formats.


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list