1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

databases/p5-DBD-mysql4: new port with verision 4.052

In new branch 5.x upstream removed support of the MariaDB and MySQL 5.7
and earlier:
https://github.com/perl5-dbi/DBD-mysql/issues/405#issuecomment-1818501464
This break a lot of installations with MariaDB.
Also DBD-MariaDB (databases/p5-DBD-MariaDB) isn't compatable with
DBD-mysql and most of ports doesn't support it.

PR:			277889 275100
Approved by:		flo, arrowd (mentor, implicit)
Differential Revision:	https://reviews.freebsd.org/D44524
This commit is contained in:
Vladimir Druzenko 2024-04-06 17:22:03 +03:00
parent 7f878397c3
commit d95f49cb3b
4 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,41 @@
PORTNAME= DBD-mysql
PORTVERSION= 4.052
CATEGORIES= databases perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:DVEEDEN
PKGNAMEPREFIX= p5-
PKGNAMESUFFIX= 4
MAINTAINER= sirdice@gmail.com
COMMENT= MySQL driver for the Perl5 Database Interface (DBI)
WWW= https://metacpan.org/release/DBD-mysql
LICENSE= ART10 GPLv1+
LICENSE_COMB= dual
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${RUN_DEPENDS} \
p5-Devel-CheckLib>=1.09:devel/p5-Devel-CheckLib
RUN_DEPENDS= p5-DBI>=1.08:databases/p5-DBI
TEST_DEPENDS= p5-Test-Deep>=0:devel/p5-Test-Deep
USES= compiler:c11 mysql perl5
USE_PERL5= configure
CONFIGURE_ARGS= ${_CONFIGURE_ARGS_${CHOSEN_COMPILER_TYPE}}
_CONFIGURE_ARGS_gcc= --libs="-L${PREFIX}/lib/gcc${GCC_DEFAULT} `mysql_config --libs | ${SED} 's/-pthread //'`"
CONFLICTS_INSTALL= p5-DBD-mysql
OPTIONS_DEFINE= SSL
OPTIONS_DEFAULT= SSL
SSL_RUN_DEPENDS= p5-Crypt-SSLeay>=0:security/p5-Crypt-SSLeay
SSL_USES= ssl
SSL_CONFIGURE_ON= --ssl
SSL_CONFIGURE_OFF= --nossl
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/DBD/mysql/mysql.so
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1711540853
SHA256 (DBD-mysql-4.052.tar.gz) = a83f57af7817787de0ef56fb15fdfaf4f1c952c8f32ff907153b66d2da78ff5b
SIZE (DBD-mysql-4.052.tar.gz) = 162074

View File

@ -0,0 +1,6 @@
DBD::mysql is the Perl5 Database Interface driver for the MySQL
database. In other words: DBD::mysql is an interface between the Perl
programming language and the MySQL programming API that comes with the
MySQL relational database management system. Most functions provided by
this programming API are supported. Some rarely used functions are
missing, mainly because noone ever requested them.

View File

@ -0,0 +1,8 @@
%%SITE_ARCH%%/Bundle/DBD/mysql.pm
%%SITE_ARCH%%/DBD/mysql.pm
%%SITE_ARCH%%/DBD/mysql/GetInfo.pm
%%SITE_ARCH%%/DBD/mysql/INSTALL.pod
%%SITE_ARCH%%/auto/DBD/mysql/mysql.so
%%PERL5_MAN3%%/Bundle::DBD::mysql.3.gz
%%PERL5_MAN3%%/DBD::mysql.3.gz
%%PERL5_MAN3%%/DBD::mysql::INSTALL.3.gz