Date: Wed, 24 Aug 2011 14:01:12 GMT From: Ruslan Mahmatkhanov <cvs-src@yandex.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/160065: [PATCH] multimedia/pyjama: eliminate py-pysqlite2x dependency Message-ID: <201108241401.p7OE1Cgs067655@red.freebsd.org> Resent-Message-ID: <201108241410.p7OEA89R053116@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 160065 >Category: ports >Synopsis: [PATCH] multimedia/pyjama: 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: Wed Aug 24 14:10:08 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Ruslan Mahmatkhanov >Release: 9.0-BETA1 >Organization: >Environment: 9.0-BETA1 i386 >Description: - since this port requires python2.5+ (with USE_PYTHON) switch to databases/py-sqlite3 instead of databases/py-pysqlite2x that is for python24 - bump portrevision because of this deps changes I checked the code and they use this pattern when dealing with sqlite: """ try: from pysqlite2 import dbapi2 as sqlite3 except ImportError: import sqlite3 """ So nothing will be broken with sqlite3. >How-To-Repeat: >Fix: Patch attached with submission follows: --- Makefile.orig 2011-02-25 03:47:49.000000000 +0300 +++ Makefile 2011-08-24 17:37:34.000000000 +0400 @@ -6,7 +6,7 @@ PORTNAME= pyjama PORTVERSION= 0.3.0.1 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= multimedia python MASTER_SITES= http://launchpadlibrarian.net/26637583/ DISTNAME= pyjama-0.3.0.1_all @@ -14,7 +14,7 @@ MAINTAINER= ktullavik@gmail.com COMMENT= Frontend to the Jamendo music network -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pysqlite>=2.3:${PORTSDIR}/databases/py-pysqlite23 \ +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3 \ ${PYTHON_PKGNAMEPREFIX}lxml>=2.2:${PORTSDIR}/devel/py-lxml \ ${PYTHON_PKGNAMEPREFIX}simplejson>=2.0:${PORTSDIR}/devel/py-simplejson \ ${PYTHON_PKGNAMEPREFIX}gstreamer>=0.10:${PORTSDIR}/multimedia/py-gstreamer >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108241401.p7OE1Cgs067655>