From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Aug 28 19:40:02 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B942D106564A for ; Sun, 28 Aug 2011 19:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9120C8FC1A for ; Sun, 28 Aug 2011 19:40:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p7SJe2cl098337 for ; Sun, 28 Aug 2011 19:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p7SJe2XO098336; Sun, 28 Aug 2011 19:40:02 GMT (envelope-from gnats) Resent-Date: Sun, 28 Aug 2011 19:40:02 GMT Resent-Message-Id: <201108281940.p7SJe2XO098336@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ruslan Mahmatkhanov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2ABBD1065673 for ; Sun, 28 Aug 2011 19:36:31 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 014828FC15 for ; Sun, 28 Aug 2011 19:36:31 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p7SJaUNY055563 for ; Sun, 28 Aug 2011 19:36:30 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p7SJaUg3055562; Sun, 28 Aug 2011 19:36:30 GMT (envelope-from nobody) Message-Id: <201108281936.p7SJaUg3055562@red.freebsd.org> Date: Sun, 28 Aug 2011 19:36:30 GMT From: Ruslan Mahmatkhanov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/160261: [PATHC] textproc/translate-toolkit: eliminate py-pysqlite2x dependency X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2011 19:40:02 -0000 >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@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: