aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorkoobs <koobs@FreeBSD.org>2013-10-24 21:02:54 +0800
committerkoobs <koobs@FreeBSD.org>2013-10-24 21:02:54 +0800
commit83956c3175ad89cb61d9e097827f76e8fd466026 (patch)
tree5d5d4f60bfeeaec73220e01bea717889947611af /databases
parent8f6b8851e3c4592dc6ec4da7a21f706e7e6bfd16 (diff)
downloadfreebsd-ports-gnome-83956c3175ad89cb61d9e097827f76e8fd466026.tar.gz
freebsd-ports-gnome-83956c3175ad89cb61d9e097827f76e8fd466026.tar.zst
freebsd-ports-gnome-83956c3175ad89cb61d9e097827f76e8fd466026.zip
databases/py-mysql2pgsql: Fix build, Enable AUTOPLIST support
- Use DISTNAME to match upstream name - Remove DIST_SUBDIR - Update COMMENT - Add pytz to RUN_DEPENDS - Set USE_PYTHON to 2.7 only - Enable AUTOPLIST support and delete pkg-plist accordingly - Re-order Makefile and whitespace align PR: ports/181981 Submitted by: Volodymyr Kostyrko <c.kworr@gmail.com> (maintainer) Approved by: maintainer
Diffstat (limited to 'databases')
-rw-r--r--databases/py-mysql2pgsql/Makefile22
-rw-r--r--databases/py-mysql2pgsql/distinfo4
-rw-r--r--databases/py-mysql2pgsql/pkg-plist43
3 files changed, 14 insertions, 55 deletions
diff --git a/databases/py-mysql2pgsql/Makefile b/databases/py-mysql2pgsql/Makefile
index 4f8bf08bde9d..56158c524777 100644
--- a/databases/py-mysql2pgsql/Makefile
+++ b/databases/py-mysql2pgsql/Makefile
@@ -4,17 +4,23 @@ PORTNAME= mysql2pgsql
PORTVERSION= 0.1.6
CATEGORIES= databases python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-DIST_SUBDIR= postgresql
+DISTNAME= py-${PORTNAME}-${PORTVERSION}
MAINTAINER= c.kworr@gmail.com
-COMMENT= Tool for migrating/converting from mysql to postgresql
+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
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.3:${PORTSDIR}/databases/py-MySQLdb \
+ ${PYTHON_PKGNAMEPREFIX}psycopg2>=2.4.2:${PORTSDIR}/databases/py-psycopg2 \
+ ${PYTHON_PKGNAMEPREFIX}termcolor>=1.1.0:${PORTSDIR}/devel/py-termcolor \
+ ${PYTHON_PKGNAMEPREFIX}yaml>=3.10.0:${PORTSDIR}/devel/py-yaml \
+ ${PYTHON_PKGNAMEPREFIX}pytz>0:${PORTSDIR}/devel/py-pytz
+
+USE_PYTHON= 2.7
+USE_PYDISTUTILS= easy_install
+PYDISTUTILS_PKGNAME= py_${PORTNAME}
+PYDISTUTILS_AUTOPLIST= yes
USE_GITHUB= yes
GH_ACCOUNT= philipsoutham
@@ -22,9 +28,5 @@ GH_COMMIT= 250cb1c
GH_PROJECT= py-${PORTNAME}
GH_TAGNAME= v${PORTVERSION}
-USE_PYTHON= -2.7
-USE_PYDISTUTILS= easy_install
-PYDISTUTILS_PKGNAME= py_${PORTNAME}
-
NO_STAGE= yes
.include <bsd.port.mk>
diff --git a/databases/py-mysql2pgsql/distinfo b/databases/py-mysql2pgsql/distinfo
index e8719dfb7d1a..cce7328a9754 100644
--- a/databases/py-mysql2pgsql/distinfo
+++ b/databases/py-mysql2pgsql/distinfo
@@ -1,2 +1,2 @@
-SHA256 (postgresql/mysql2pgsql-0.1.6.tar.gz) = 74c4b453a2e425bb91f1344dc6187d263b2f7c6c35532ceff62799afa157f56b
-SIZE (postgresql/mysql2pgsql-0.1.6.tar.gz) = 107283
+SHA256 (py-mysql2pgsql-0.1.6.tar.gz) = 74c4b453a2e425bb91f1344dc6187d263b2f7c6c35532ceff62799afa157f56b
+SIZE (py-mysql2pgsql-0.1.6.tar.gz) = 107283
diff --git a/databases/py-mysql2pgsql/pkg-plist b/databases/py-mysql2pgsql/pkg-plist
deleted file mode 100644
index 6813190200d2..000000000000
--- a/databases/py-mysql2pgsql/pkg-plist
+++ /dev/null
@@ -1,43 +0,0 @@
-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%%