Skip to content

databases/py-mysqlclient, multi-version support #232

Description

@drscream

It would be nice to provide support for different MySQL / Percona / MariaDB versions to databases/py-mysqlclient. This can be achieved with the following patch:

diff --git a/databases/py-mysqlclient/Makefile b/databases/py-mysqlclient/Makefile
index 36673e909c4..eb176f533fb 100644
--- a/databases/py-mysqlclient/Makefile
+++ b/databases/py-mysqlclient/Makefile
@@ -1,7 +1,8 @@
 # $NetBSD: Makefile,v 1.2 2018/07/05 18:40:55 wiedi Exp $
 
-DISTNAME=      mysqlclient-python-1.3.13
-PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/python-//}
+DISTNAME=      mysqlclient-python-${VERSION}
+VERSION=       1.3.13
+PKGNAME=       ${PYPKGPREFIX}-${MYSQL_PKG_PREFIX}client-${VERSION}
 CATEGORIES=    databases
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=PyMySQL/}
 GITHUB_PROJECT=        mysqlclient-python

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions