From 805e1104ac63c4ef3522c7676cc208f210c2ecfa Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Tue, 17 Mar 2015 16:03:31 +0000 Subject: [PATCH] Add devel/p5-Minion, an asynchronous job queue for Mojolicious. Minion is a job queue for the Mojolicious real-time web framework with support for multiple backends, such as DBM::Deep and PostgreSQL. A job queue allows you to process time and/or computationally intensive tasks in background processes, outside of the request/response lifecycle. Among those tasks you'll commonly find image resizing, spam filtering, HTTP downloads, building tarballs, warming caches and basically everything else you can imagine that's not super fast. WWW: https://metacpan.org/pod/Minion --- devel/Makefile | 1 + devel/p5-Minion/Makefile | 28 ++++++++++++++++++++++++++++ devel/p5-Minion/distinfo | 2 ++ devel/p5-Minion/pkg-descr | 10 ++++++++++ devel/p5-Minion/pkg-plist | 20 ++++++++++++++++++++ 5 files changed, 61 insertions(+) create mode 100644 devel/p5-Minion/Makefile create mode 100644 devel/p5-Minion/distinfo create mode 100644 devel/p5-Minion/pkg-descr create mode 100644 devel/p5-Minion/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index 7409ee69f913..c323a17463f9 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -2399,6 +2399,7 @@ SUBDIR += p5-Metabase-Fact SUBDIR += p5-Method-Alias SUBDIR += p5-Method-Signatures-Simple + SUBDIR += p5-Minion SUBDIR += p5-Mixin-Linewise SUBDIR += p5-Mknod SUBDIR += p5-Mo diff --git a/devel/p5-Minion/Makefile b/devel/p5-Minion/Makefile new file mode 100644 index 000000000000..af19f89d022f --- /dev/null +++ b/devel/p5-Minion/Makefile @@ -0,0 +1,28 @@ +# Created by: Adam Weinberger +# $FreeBSD$ + +PORTNAME= Minion +PORTVERSION= 1.12 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:SRI +PKGNAMEPREFIX= p5- + +MAINTAINER= perl@FreeBSD.org +COMMENT= Asynchronous job queue for Mojolicious + +LICENSE= ART20 + +BUILD_DEPENDS= p5-DBM-Deep>=2.0011:${PORTSDIR}/databases/p5-DBM-Deep \ + p5-Mojolicious>=6.0:${PORTSDIR}/www/p5-Mojolicious +RUN_DEPENDS:= ${BUILD_DEPENDS} + +USES= perl5 +USE_PERL5= configure + +OPTIONS_DEFINE= PGSQL + +PGSQL_BUILD_DEPENDS= p5-Mojo-Pg>=0:${PORTSDIR}/databases/p5-Mojo-Pg +PGSQL_RUN_DEPENDS= ${PGSQL_BUILD_DEPENDS} + +.include diff --git a/devel/p5-Minion/distinfo b/devel/p5-Minion/distinfo new file mode 100644 index 000000000000..9f7fe9b594a6 --- /dev/null +++ b/devel/p5-Minion/distinfo @@ -0,0 +1,2 @@ +SHA256 (Minion-1.12.tar.gz) = 1dccfeb9ae17bc6030f82fcb13780f548b4ecacfb805cdf9f59b34c6f798e659 +SIZE (Minion-1.12.tar.gz) = 24308 diff --git a/devel/p5-Minion/pkg-descr b/devel/p5-Minion/pkg-descr new file mode 100644 index 000000000000..edb9e816a31d --- /dev/null +++ b/devel/p5-Minion/pkg-descr @@ -0,0 +1,10 @@ +Minion is a job queue for the Mojolicious real-time web framework with support +for multiple backends, such as DBM::Deep and PostgreSQL. + +A job queue allows you to process time and/or computationally intensive tasks +in background processes, outside of the request/response lifecycle. Among those +tasks you'll commonly find image resizing, spam filtering, HTTP downloads, +building tarballs, warming caches and basically everything else you can imagine +that's not super fast. + +WWW: https://metacpan.org/pod/Minion diff --git a/devel/p5-Minion/pkg-plist b/devel/p5-Minion/pkg-plist new file mode 100644 index 000000000000..292689cefc65 --- /dev/null +++ b/devel/p5-Minion/pkg-plist @@ -0,0 +1,20 @@ +%%SITE_PERL%%/Minion.pm +%%SITE_PERL%%/Minion/Backend.pm +%%SITE_PERL%%/Minion/Backend/File.pm +%%SITE_PERL%%/Minion/Backend/Pg.pm +%%SITE_PERL%%/Minion/Command/minion.pm +%%SITE_PERL%%/Minion/Command/minion/job.pm +%%SITE_PERL%%/Minion/Command/minion/worker.pm +%%SITE_PERL%%/Minion/Job.pm +%%SITE_PERL%%/Minion/Worker.pm +%%SITE_PERL%%/Mojolicious/Plugin/Minion.pm +%%PERL5_MAN3%%/Minion.3.gz +%%PERL5_MAN3%%/Minion::Backend.3.gz +%%PERL5_MAN3%%/Minion::Backend::File.3.gz +%%PERL5_MAN3%%/Minion::Backend::Pg.3.gz +%%PERL5_MAN3%%/Minion::Command::minion.3.gz +%%PERL5_MAN3%%/Minion::Command::minion::job.3.gz +%%PERL5_MAN3%%/Minion::Command::minion::worker.3.gz +%%PERL5_MAN3%%/Minion::Job.3.gz +%%PERL5_MAN3%%/Minion::Worker.3.gz +%%PERL5_MAN3%%/Mojolicious::Plugin::Minion.3.gz