aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2013-08-22 22:44:05 +0800
committermat <mat@FreeBSD.org>2013-08-22 22:44:05 +0800
commit70bdd75f9d781da358a995c4f9ef997d3bee6d9b (patch)
treeeca74f457c9a5721eb50948ffda08619fdf46448 /databases
parente1d431f884912cb4f96258b9ab9f123a184991f5 (diff)
downloadfreebsd-ports-gnome-70bdd75f9d781da358a995c4f9ef997d3bee6d9b.tar.gz
freebsd-ports-gnome-70bdd75f9d781da358a995c4f9ef997d3bee6d9b.tar.zst
freebsd-ports-gnome-70bdd75f9d781da358a995c4f9ef997d3bee6d9b.zip
Custom prefetches for DBIx::Class.
PR: ports/180313 Submitted by: Anes Mukhametov <anes@anes.su>
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/p5-DBIx-Class-CustomPrefetch/Makefile29
-rw-r--r--databases/p5-DBIx-Class-CustomPrefetch/distinfo2
-rw-r--r--databases/p5-DBIx-Class-CustomPrefetch/pkg-descr9
-rw-r--r--databases/p5-DBIx-Class-CustomPrefetch/pkg-plist7
5 files changed, 48 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index c48ea261f127..8ba93cf3ed76 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -341,6 +341,7 @@
SUBDIR += p5-DBIx-Class-AsFdat
SUBDIR += p5-DBIx-Class-Candy
SUBDIR += p5-DBIx-Class-Cursor-Cached
+ SUBDIR += p5-DBIx-Class-CustomPrefetch
SUBDIR += p5-DBIx-Class-DateTime-Epoch
SUBDIR += p5-DBIx-Class-DeploymentHandler
SUBDIR += p5-DBIx-Class-DigestColumns
diff --git a/databases/p5-DBIx-Class-CustomPrefetch/Makefile b/databases/p5-DBIx-Class-CustomPrefetch/Makefile
new file mode 100644
index 000000000000..dcfc749e820c
--- /dev/null
+++ b/databases/p5-DBIx-Class-CustomPrefetch/Makefile
@@ -0,0 +1,29 @@
+# Created by: Anes Mukhametov <anes@anes.su>
+# $FreeBSD$
+
+PORTNAME= DBIx-Class-CustomPrefetch
+PORTVERSION= 0.09
+CATEGORIES= databases perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= anes@anes.su
+COMMENT= Custom prefetches for DBIx::Class
+
+BUILD_DEPENDS= p5-parent>=0:${PORTSDIR}/devel/p5-parent \
+ p5-Module-Load>=0:${PORTSDIR}/devel/p5-Module-Load \
+ p5-DBIx-Class-VirtualColumns>=0:${PORTSDIR}/databases/p5-DBIx-Class-VirtualColumns \
+ p5-Sub-Name>=0:${PORTSDIR}/devel/p5-Sub-Name \
+ p5-DBIx-Class>=0.081:${PORTSDIR}/databases/p5-DBIx-Class
+RUN_DEPENDS= p5-parent>=0:${PORTSDIR}/devel/p5-parent \
+ p5-Module-Load>=0:${PORTSDIR}/devel/p5-Module-Load \
+ p5-DBIx-Class-VirtualColumns>=0:${PORTSDIR}/databases/p5-DBIx-Class-VirtualColumns \
+ p5-Sub-Name>=0:${PORTSDIR}/devel/p5-Sub-Name \
+ p5-DBIx-Class>=0.081:${PORTSDIR}/databases/p5-DBIx-Class
+
+USES= perl5
+USE_PERL5= configure
+
+MAN3= DBIx::Class::CustomPrefetch.3 DBIx::Class::ResultSet::CustomPrefetch.3
+
+.include <bsd.port.mk>
diff --git a/databases/p5-DBIx-Class-CustomPrefetch/distinfo b/databases/p5-DBIx-Class-CustomPrefetch/distinfo
new file mode 100644
index 000000000000..f8fdd78d2a0b
--- /dev/null
+++ b/databases/p5-DBIx-Class-CustomPrefetch/distinfo
@@ -0,0 +1,2 @@
+SHA256 (DBIx-Class-CustomPrefetch-0.09.tar.gz) = 1374a8225f5cf6c1a9a4c7cdf9553b9acece14cf17da13f544a90c027c670661
+SIZE (DBIx-Class-CustomPrefetch-0.09.tar.gz) = 55709
diff --git a/databases/p5-DBIx-Class-CustomPrefetch/pkg-descr b/databases/p5-DBIx-Class-CustomPrefetch/pkg-descr
new file mode 100644
index 000000000000..259af75116fb
--- /dev/null
+++ b/databases/p5-DBIx-Class-CustomPrefetch/pkg-descr
@@ -0,0 +1,9 @@
+DBIx::Class onle allows joins for prefetches.
+But sometimes you can't use JOIN for prefetch.
+E.g. for prefetching many related objects to resultset with paging.
+
+Also you can use this module to create cross-database prefetches.
+
+This module provides other logic for prefetching data to resultsets.
+
+WWW: http://search.cpan.org/dist/DBIx-Class-CustomPrefetch/
diff --git a/databases/p5-DBIx-Class-CustomPrefetch/pkg-plist b/databases/p5-DBIx-Class-CustomPrefetch/pkg-plist
new file mode 100644
index 000000000000..8e9b9e040d6b
--- /dev/null
+++ b/databases/p5-DBIx-Class-CustomPrefetch/pkg-plist
@@ -0,0 +1,7 @@
+%%SITE_PERL%%/DBIx/Class/CustomPrefetch.pm
+%%SITE_PERL%%/DBIx/Class/ResultSet/CustomPrefetch.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/DBIx/Class/CustomPrefetch/.packlist
+@dirrmtry %%SITE_PERL%%/DBIx/Class/ResultSet
+@dirrmtry %%SITE_PERL%%/DBIx/Class
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/DBIx/Class/CustomPrefetch
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/DBIx/Class