Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Nov 2013 13:18:13 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r334591 - in head/databases/py-odbc: . files
Message-ID:  <201311221318.rAMDIDFV093019@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Fri Nov 22 13:18:12 2013
New Revision: 334591
URL: http://svnweb.freebsd.org/changeset/ports/334591

Log:
  databases/py-odbc: update to 3.0.7
  
  - Update to 3.0.7 [1]
  - Allow staging
  - Remove useless gmake
  - Use auto plist
  
  PR:		ports/180580 [1]
  Submitted by:	maintainer [1]

Deleted:
  head/databases/py-odbc/files/patch-src_pyodbc.h
  head/databases/py-odbc/pkg-plist
Modified:
  head/databases/py-odbc/Makefile
  head/databases/py-odbc/distinfo

Modified: head/databases/py-odbc/Makefile
==============================================================================
--- head/databases/py-odbc/Makefile	Fri Nov 22 12:55:26 2013	(r334590)
+++ head/databases/py-odbc/Makefile	Fri Nov 22 13:18:12 2013	(r334591)
@@ -1,53 +1,31 @@
 # Created by: April 15 2009
 # $FreeBSD$
 
-NO_STAGE=	yes
-# Like they say in the postgres-odbc Makefile (and I quote):
-#
-# This ODBC driver should work under either unixODBC or iODBC
-# driver manager, when compliled against one. (Important: Do not try
-# to have both installed -- they have overlapping files).
-
-# It looks like most people are using unixODBC these days, rather than
-# iODBC, so let's make unixODBC the default choice: to select iODBC,
-# set WITH_IODBC, without setting WITH_UNIXODBC.  When the latter is
-# set or when neither is set, we go with WITH_UNIXODBC.
-#
-
 PORTNAME=	pyodbc
-PORTVERSION=	3.0.6
+PORTVERSION=	3.0.7
 CATEGORIES=	databases python
 MASTER_SITES=	GOOGLE_CODE
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
-#DISTNAME=		pyodbc-${PORTVERSION}
 
 MAINTAINER=	rob.kruus@gmail.com
 COMMENT=	ODBC connections for python
 
 USE_ZIP=	yes
-USE_GMAKE=	yes
-USE_PYTHON=	2.5+
+USE_PYTHON=	yes
 USE_PYDISTUTILS=	easy_install
+PYDISTUTILS_AUTOPLIST=	yes
 PYEASYINSTALL_ARCHDEP=	yes
 
-# again, shamelessly copied from datebase/postgres-odbc
-.if !defined(WITH_IODBC)
-WITH_UNIXODBC=	yes
-.endif
+OPTIONS_DEFINE= UNIXODBC
+OPTIONS_DEFAULT=UNIXODBC
+
+.include <bsd.port.options.mk>
 
-.if defined(WITH_UNIXODBC)
-# I.e. even if WITH_IODBC is defined
-LIB_DEPENDS+=	odbc:${PORTSDIR}/databases/unixODBC
+.if ${PORT_OPTIONS:MUNIXODBC}
+LIB_DEPENDS+=	libodbc.so:${PORTSDIR}/databases/unixODBC
 BUILD_DEPENDS+=	unixODBC>=2.2.14_1:${PORTSDIR}/databases/unixODBC
 .else
-LIB_DEPENDS+=	iodbc:${PORTSDIR}/databases/libiodbc
+LIB_DEPENDS+=	libiodbc.so:${PORTSDIR}/databases/libiodbc
 .endif
 
-do-build:
-	@(cd ${WRKSRC}; ${PYTHON_CMD} setup.py build)
-
-do-install:
-	${MKDIR} ${PYTHONPREFIX_SITELIBDIR}
-	@(cd ${WRKSRC}; ${SETENV} PYTHONPATH=${PYTHONPREFIX_SITELIBDIR} ${PYTHON_CMD} setup.py install --prefix=${PREFIX})
-
 .include <bsd.port.mk>

Modified: head/databases/py-odbc/distinfo
==============================================================================
--- head/databases/py-odbc/distinfo	Fri Nov 22 12:55:26 2013	(r334590)
+++ head/databases/py-odbc/distinfo	Fri Nov 22 13:18:12 2013	(r334591)
@@ -1,2 +1,2 @@
-SHA256 (pyodbc-3.0.6.zip) = e5a7f12deddf4b258bed904b5a071dd43c40c78de8e24c9228f8174e69f5366d
-SIZE (pyodbc-3.0.6.zip) = 85518
+SHA256 (pyodbc-3.0.7.zip) = d8355f2d43b10386070e8564aa973119fdb6e10864e1bbd73f3224cd3baab351
+SIZE (pyodbc-3.0.7.zip) = 85722



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