mirror of
https://git.freebsd.org/ports.git
synced 2025-05-19 10:33:12 -04:00
Add a new variable DBD_MYSQL, use that in *_DEPENDS and add mysql to USES where required. DBD_MYSQL will automatically set the correct DBD dependency. Incd16748194
databases/p5-DBD-mysql was updated to 5.x, in 5.x the support for MariaDB was removed and only MySQL >= 8.0 is supported. In the 4.x releases MariaDB is still supported, according to upstream 4.x will still be supported for a while [1], so use that for now when we detect that MYSQL_FLAVOUR is set to mariadb. databases/p5-DBD-mysql4 was added ind95f49cb3b
. DBD:MariaDB would be another alternative, but migrating to it might need more analysis than just staying with the 4.x releases of p5-DBD-mysql. This thread on the amavis-users mailing list has a very good summary [2] from the author of DBD:MariaDB. This includes ideas and suggestions from vvd and mat. Thanks! [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277889#c17 [2] https://lists.amavis.org/pipermail/amavis-users/2024-March/006823.html PR: 275100, 277889 Reviewed by: vvd, mat Fixes:cd16748194
Differential Revision: https://reviews.freebsd.org/D44662
58 lines
1.9 KiB
Makefile
58 lines
1.9 KiB
Makefile
PORTNAME= Hailo
|
|
PORTVERSION= 0.75
|
|
PORTREVISION= 1
|
|
CATEGORIES= textproc perl5
|
|
MASTER_SITES= CPAN
|
|
MASTER_SITE_SUBDIR= CPAN:AVAR
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= perl@FreeBSD.org
|
|
COMMENT= Pluggable Markov engine analogous to MegaHAL
|
|
WWW= https://metacpan.org/release/Hailo
|
|
|
|
LICENSE= ART10 GPLv1+
|
|
LICENSE_COMB= dual
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
RUN_DEPENDS= p5-Class-Load>=0:devel/p5-Class-Load \
|
|
p5-Data-Dump>=0:devel/p5-Data-Dump \
|
|
p5-Dir-Self>=0:devel/p5-Dir-Self \
|
|
p5-File-CountLines>=0:devel/p5-File-CountLines \
|
|
p5-Getopt-Long-Descriptive>=0:devel/p5-Getopt-Long-Descriptive \
|
|
p5-IO-Interactive>=0:devel/p5-IO-Interactive \
|
|
p5-IPC-System-Simple>=0:devel/p5-IPC-System-Simple \
|
|
p5-List-MoreUtils>=0:lang/p5-List-MoreUtils \
|
|
p5-Moose>=0:devel/p5-Moose \
|
|
p5-MooseX-Getopt>=0:devel/p5-MooseX-Getopt \
|
|
p5-MooseX-StrictConstructor>=0:devel/p5-MooseX-StrictConstructor \
|
|
p5-MooseX-Types>=0:devel/p5-MooseX-Types \
|
|
p5-Regexp-Common>=0:textproc/p5-Regexp-Common \
|
|
p5-Term-Sk>=0:devel/p5-Term-Sk \
|
|
p5-namespace-clean>=0:devel/p5-namespace-clean
|
|
TEST_DEPENDS= p5-Bot-Training>=0.06:misc/p5-Bot-Training \
|
|
p5-Bot-Training-MegaHAL>=0.03:misc/p5-Bot-Training-MegaHAL \
|
|
p5-Bot-Training-StarCraft>=0.03:misc/p5-Bot-Training-StarCraft \
|
|
p5-Data-Section>=0:devel/p5-Data-Section \
|
|
p5-File-Slurp>=0:devel/p5-File-Slurp \
|
|
p5-Pod-Section>=0:textproc/p5-Pod-Section \
|
|
p5-Test-Exception>=0:devel/p5-Test-Exception \
|
|
p5-Test-Expect>=0:devel/p5-Test-Expect \
|
|
p5-Test-Output>=0:devel/p5-Test-Output \
|
|
p5-Test-Script>=0:devel/p5-Test-Script \
|
|
p5-Test-Script-Run>=0:devel/p5-Test-Script-Run
|
|
|
|
USES= perl5
|
|
USE_PERL5= configure
|
|
|
|
NO_ARCH= yes
|
|
|
|
OPTIONS_DEFINE= SQLITE PGSQL MYSQL
|
|
OPTIONS_DEFAULT=SQLITE
|
|
|
|
SQLITE_RUN_DEPENDS= p5-DBD-SQLite>=0:databases/p5-DBD-SQLite
|
|
PGSQL_RUN_DEPENDS= p5-DBD-Pg>=0:databases/p5-DBD-Pg
|
|
MYSQL_RUN_DEPENDS= ${DBD_MYSQL}
|
|
MYSQL_USES= mysql
|
|
|
|
.include <bsd.port.mk>
|