Bug 180580 - [maintainer-update] Update to databases/py-odbc port
Summary: [maintainer-update] Update to databases/py-odbc port
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: William Grzybowski
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-15 19:50 UTC by Robert Kruus
Modified: 2013-11-22 13:20 UTC (History)
0 users

See Also:


Attachments
file.diff (2.34 KB, patch)
2013-07-15 19:50 UTC, Robert Kruus
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Kruus 2013-07-15 19:50:00 UTC
Update to py-odbc port. Update version to 3.0.7 and use new PORT_OPTIONS format and Makefile header. Patch deletes undeeded files/patch-src_pyodbc.h

Fix: NA

Patch attached with submission follows:
How-To-Repeat: NA
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-07-16 02:56:46 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-python

freebsd-python@ wants this port PRs (via the GNATS Auto Assign Tool)
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2013-07-16 04:58:05 UTC
Responsible Changed
From-To: freebsd-python->miwi

I'll take it.
Comment 3 Bryan Drewery freebsd_committer freebsd_triage 2013-09-22 15:10:21 UTC
Responsible Changed
From-To: miwi->freebsd-ports-bugs

Back to the heap due to timeout
Comment 4 Edwin Groothuis freebsd_committer freebsd_triage 2013-11-20 23:18:46 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-python

freebsd-python@ wants this port PRs (via the GNATS Auto Assign Tool)
Comment 5 William Grzybowski freebsd_committer freebsd_triage 2013-11-22 13:18:13 UTC
Responsible Changed
From-To: freebsd-python->wg

I'll take it.
Comment 6 William Grzybowski freebsd_committer freebsd_triage 2013-11-22 13:18:22 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!
Comment 7 dfilter service freebsd_committer freebsd_triage 2013-11-22 13:18:22 UTC
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
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"