Bug 169643 - New port: databases/py-mysql2pgsql [redports]
Summary: New port: databases/py-mysql2pgsql [redports]
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: Ruslan Makhmatkhanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-04 14:00 UTC by c.kworr
Modified: 2012-09-13 08:20 UTC (History)
0 users

See Also:


Attachments
file.shar (33.40 KB, text/plain)
2012-07-04 14:00 UTC, c.kworr
no flags Details
py-mysql2pgsql.shar.txt (5.28 KB, text/plain; charset=UTF-8)
2012-09-12 12:38 UTC, c.kworr
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description c.kworr 2012-07-04 14:00:21 UTC
Tool for migrating/converting from mysql to postgresql

RedPorts: http://redports.org/buildarchive/20120704124110-14810/

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-07-04 14:00:32 UTC
Class Changed
From-To: maintainer-update->change-request

Fix category (new ports should be change-requests) (via the GNATS Auto 
Assign Tool)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2012-07-04 14:00:37 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-python

freebsd-python@ wants this port PRs (via the GNATS Auto Assign Tool)
Comment 3 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2012-08-13 12:44:18 UTC
Responsible Changed
From-To: freebsd-python->rm

I will take it.
Comment 4 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2012-08-14 07:53:11 UTC
State Changed
From-To: open->feedback

Hi Volodymyr. 1. There is actual tarballs at pypi: 
http://pypi.python.org/pypi/py-mysql2pgsql/, so you may clean up 
Makefile a lot by dropping github stuff and using CHEESESHOP as a 
master_site instead. 2. There is 0.1.5 version available (that may 
include your extra patches, I'm not sure). 3. According to pypi page the 
license is indeed MIT, please remove the comment and LICENSE_FILE, since 
they are not needed. 4. This will only work with python 2.x, so please 
change USE_PYTHON line to -2.7. Thank you.
Comment 5 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2012-09-11 19:47:38 UTC
Responsible Changed
From-To: rm->freebsd-ports

Submitter's feedback timeout. Return this to the pool. I'd consult 
upstream if this extra-patch is needed.
Comment 6 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2012-09-11 19:48:53 UTC
State Changed
From-To: feedback->open

Should be 'open', not 'feedback'.
Comment 7 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2012-09-11 19:51:49 UTC
Responsible Changed
From-To: freebsd-ports->freebsd-ports-bugs

Should be 'freebsd-ports-bugs', not 'freebsd-ports'.
Comment 8 c.kworr 2012-09-12 09:36:40 UTC
11.09.2012 21:47, rm@FreeBSD.org wrote:
> Submitter's feedback timeout. Return this to the pool. I'd consult
> upstream if this extra-patch is needed.

It would not be needed in next version as I managed to merge all changes 
into one tree.

I'll come up with the new port soon. Please excuse me for time wasted on 
that one.

-- 
Sphinx of black quartz judge my vow.
Comment 9 R.Mahmatkhanov 2012-09-12 09:46:04 UTC
Volodymyr Kostyrko wrote on 12.09.2012 12:36:
> 11.09.2012 21:47, rm@FreeBSD.org wrote:
>> Submitter's feedback timeout. Return this to the pool. I'd consult
>> upstream if this extra-patch is needed.
>
> It would not be needed in next version as I managed to merge all changes
> into one tree.
>
> I'll come up with the new port soon. Please excuse me for time wasted on
> that one.

That's great, thank you. So should I just close this pr for now?

-- 
Regards,
Ruslan

Tinderboxing kills... the drives.
Comment 10 c.kworr 2012-09-12 12:38:37 UTC
12.09.2012 11:46, Ruslan Mahmatkhanov wrote:
> Volodymyr Kostyrko wrote on 12.09.2012 12:36:
>> 11.09.2012 21:47, rm@FreeBSD.org wrote:
>>> Submitter's feedback timeout. Return this to the pool. I'd consult
>>> upstream if this extra-patch is needed.
>>
>> It would not be needed in next version as I managed to merge all changes
>> into one tree.
>>
>> I'll come up with the new port soon. Please excuse me for time wasted on
>> that one.
>
> That's great, thank you. So should I just close this pr for now?

Can I post new version here?

Redports build pending: 
https://redports.org/buildarchive/20120912111037-46826/

-- 
Sphinx of black quartz judge my vow.
Comment 11 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2012-09-13 08:03:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rm

Take once again. Updated shar received.
Comment 12 dfilter service freebsd_committer freebsd_triage 2012-09-13 08:12:46 UTC
Author: rm
Date: Thu Sep 13 07:12:30 2012
New Revision: 304182
URL: http://svn.freebsd.org/changeset/ports/304182

Log:
  Tool for migrating/converting from mysql to postgresql.
  
  WWW: http://packages.python.org/py-mysql2pgsql/
  
  PR:		169643
  Submitted by:	Volodymyr Kostyrko <c.kworr at gmail dot com>

Added:
  head/databases/py-mysql2pgsql/
  head/databases/py-mysql2pgsql/Makefile   (contents, props changed)
  head/databases/py-mysql2pgsql/distinfo   (contents, props changed)
  head/databases/py-mysql2pgsql/pkg-descr   (contents, props changed)
  head/databases/py-mysql2pgsql/pkg-plist   (contents, props changed)
Modified:
  head/databases/Makefile

Modified: head/databases/Makefile
==============================================================================
--- head/databases/Makefile	Thu Sep 13 06:27:22 2012	(r304181)
+++ head/databases/Makefile	Thu Sep 13 07:12:30 2012	(r304182)
@@ -704,6 +704,7 @@
     SUBDIR += py-memcached
     SUBDIR += py-migrate
     SUBDIR += py-mssql
+    SUBDIR += py-mysql2pgsql
     SUBDIR += py-odbc
     SUBDIR += py-oops
     SUBDIR += py-pg8000

Added: head/databases/py-mysql2pgsql/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/py-mysql2pgsql/Makefile	Thu Sep 13 07:12:30 2012	(r304182)
@@ -0,0 +1,29 @@
+# $FreeBSD$
+
+PORTNAME=	mysql2pgsql
+PORTVERSION=	0.1.6
+CATEGORIES=	databases python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DIST_SUBDIR=	postgresql
+
+MAINTAINER=	c.kworr@gmail.com
+COMMENT=	Tool for migrating/converting from mysql to postgresql
+
+LICENSE=	MIT
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}MySQLdb>0:${PORTSDIR}/databases/py-MySQLdb \
+		${PYTHON_PKGNAMEPREFIX}psycopg2>0:${PORTSDIR}/databases/py-psycopg2 \
+		${PYTHON_PKGNAMEPREFIX}termcolor>0:${PORTSDIR}/devel/py-termcolor \
+		${PYTHON_PKGNAMEPREFIX}yaml>0:${PORTSDIR}/devel/py-yaml
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	philipsoutham
+GH_COMMIT=	250cb1c
+GH_PROJECT=	py-${PORTNAME}
+GH_TAGNAME=	v${PORTVERSION}
+
+USE_PYTHON=	-2.7
+USE_PYDISTUTILS=	easy_install
+PYDISTUTILS_PKGNAME=	py_${PORTNAME}
+
+.include <bsd.port.mk>

Added: head/databases/py-mysql2pgsql/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/py-mysql2pgsql/distinfo	Thu Sep 13 07:12:30 2012	(r304182)
@@ -0,0 +1,2 @@
+SHA256 (postgresql/mysql2pgsql-0.1.6.tar.gz) = 74c4b453a2e425bb91f1344dc6187d263b2f7c6c35532ceff62799afa157f56b
+SIZE (postgresql/mysql2pgsql-0.1.6.tar.gz) = 107283

Added: head/databases/py-mysql2pgsql/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/py-mysql2pgsql/pkg-descr	Thu Sep 13 07:12:30 2012	(r304182)
@@ -0,0 +1,3 @@
+Tool for migrating/converting from mysql to postgresql.
+
+WWW: http://packages.python.org/py-mysql2pgsql/

Added: head/databases/py-mysql2pgsql/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/py-mysql2pgsql/pkg-plist	Thu Sep 13 07:12:30 2012	(r304182)
@@ -0,0 +1,43 @@
+bin/py-mysql2pgsql
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/requires.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/scripts/py-mysql2pgsql
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/__init__.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/__init__.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/__init__.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/__init__.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/__init__.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/__init__.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/config.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/config.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/config.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/converter.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/converter.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/converter.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/errors.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/errors.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/errors.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/mysql_reader.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/mysql_reader.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/mysql_reader.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/postgres_db_writer.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/postgres_db_writer.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/postgres_db_writer.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/postgres_file_writer.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/postgres_file_writer.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/postgres_file_writer.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/postgres_writer.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/postgres_writer.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib/postgres_writer.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/mysql2pgsql.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/mysql2pgsql.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/mysql2pgsql.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/scripts
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql/lib
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/mysql2pgsql
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
_______________________________________________
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"
Comment 13 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2012-09-13 08:14:48 UTC
State Changed
From-To: open->closed

Committed, thank you! The only thing I changed is github stuff, to make 
it conform vast majority of other ports. Python version was limited to 
2.x only because the code using constructs like 'except Exception, 
shortcut', that isn't supported by python3.x.