aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--databases/Makefile1
-rw-r--r--databases/p5-Mango/Makefile23
-rw-r--r--databases/p5-Mango/distinfo2
-rw-r--r--databases/p5-Mango/pkg-descr12
-rw-r--r--databases/p5-Mango/pkg-plist34
5 files changed, 72 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index f1de8e5aac97..da91b59fff92 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -415,6 +415,7 @@
SUBDIR += p5-MLDBM
SUBDIR += p5-MLDBM-Sync
SUBDIR += p5-MR-Tarantool
+ SUBDIR += p5-Mango
SUBDIR += p5-Memcached-libmemcached
SUBDIR += p5-Metadata
SUBDIR += p5-Mojo-Pg
diff --git a/databases/p5-Mango/Makefile b/databases/p5-Mango/Makefile
new file mode 100644
index 000000000000..0276e33923e6
--- /dev/null
+++ b/databases/p5-Mango/Makefile
@@ -0,0 +1,23 @@
+# Created by: Adam Weinberger <adamw@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= Mango
+PORTVERSION= 1.17
+CATEGORIES= databases perl5
+MASTER_SITES= CPAN
+MASTER_SITE_SUBDIR= CPAN:ODC
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= perl@FreeBSD.org
+COMMENT= Pure-Perl non-blocking I/O MongoDB driver
+
+LICENSE= ART20
+
+BUILD_DEPENDS= mongo:${PORTSDIR}/databases/mongodb \
+ p5-Mojolicious>=5.40:${PORTSDIR}/www/p5-Mojolicious
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+
+USES= perl5
+USE_PERL5= configure
+
+.include <bsd.port.mk>
diff --git a/databases/p5-Mango/distinfo b/databases/p5-Mango/distinfo
new file mode 100644
index 000000000000..7751ca94e977
--- /dev/null
+++ b/databases/p5-Mango/distinfo
@@ -0,0 +1,2 @@
+SHA256 (Mango-1.17.tar.gz) = 922a1feb68ea88c1141c3683aa836247031288a980030c020adfa34999beae12
+SIZE (Mango-1.17.tar.gz) = 45549
diff --git a/databases/p5-Mango/pkg-descr b/databases/p5-Mango/pkg-descr
new file mode 100644
index 000000000000..2edcfe2d0c20
--- /dev/null
+++ b/databases/p5-Mango/pkg-descr
@@ -0,0 +1,12 @@
+Mango is a pure-Perl non-blocking I/O MongoDB driver, optimized for use with
+the Mojolicious real-time web framework, and with multiple event loop support.
+Since MongoDB is still changing rapidly, only the latest stable version is
+supported.
+
+Many arguments passed to methods as well as values of attributes get serialized
+to BSON with Mango::BSON, which provides many helper functions you can use to
+generate data types that are not available natively in Perl. All connections
+will be reset automatically if a new process has been forked, this allows
+multiple processes to share the same Mango object safely.
+
+WWW: https://metacpan.org/pod/Mango
diff --git a/databases/p5-Mango/pkg-plist b/databases/p5-Mango/pkg-plist
new file mode 100644
index 000000000000..4361e828f828
--- /dev/null
+++ b/databases/p5-Mango/pkg-plist
@@ -0,0 +1,34 @@
+%%SITE_PERL%%/Mango.pm
+%%SITE_PERL%%/Mango/BSON.pm
+%%SITE_PERL%%/Mango/BSON/Binary.pm
+%%SITE_PERL%%/Mango/BSON/Code.pm
+%%SITE_PERL%%/Mango/BSON/Document.pm
+%%SITE_PERL%%/Mango/BSON/ObjectID.pm
+%%SITE_PERL%%/Mango/BSON/Time.pm
+%%SITE_PERL%%/Mango/BSON/Timestamp.pm
+%%SITE_PERL%%/Mango/Bulk.pm
+%%SITE_PERL%%/Mango/Collection.pm
+%%SITE_PERL%%/Mango/Cursor.pm
+%%SITE_PERL%%/Mango/Cursor/Query.pm
+%%SITE_PERL%%/Mango/Database.pm
+%%SITE_PERL%%/Mango/GridFS.pm
+%%SITE_PERL%%/Mango/GridFS/Reader.pm
+%%SITE_PERL%%/Mango/GridFS/Writer.pm
+%%SITE_PERL%%/Mango/Protocol.pm
+%%PERL5_MAN3%%/Mango.3.gz
+%%PERL5_MAN3%%/Mango::BSON.3.gz
+%%PERL5_MAN3%%/Mango::BSON::Binary.3.gz
+%%PERL5_MAN3%%/Mango::BSON::Code.3.gz
+%%PERL5_MAN3%%/Mango::BSON::Document.3.gz
+%%PERL5_MAN3%%/Mango::BSON::ObjectID.3.gz
+%%PERL5_MAN3%%/Mango::BSON::Time.3.gz
+%%PERL5_MAN3%%/Mango::BSON::Timestamp.3.gz
+%%PERL5_MAN3%%/Mango::Bulk.3.gz
+%%PERL5_MAN3%%/Mango::Collection.3.gz
+%%PERL5_MAN3%%/Mango::Cursor.3.gz
+%%PERL5_MAN3%%/Mango::Cursor::Query.3.gz
+%%PERL5_MAN3%%/Mango::Database.3.gz
+%%PERL5_MAN3%%/Mango::GridFS.3.gz
+%%PERL5_MAN3%%/Mango::GridFS::Reader.3.gz
+%%PERL5_MAN3%%/Mango::GridFS::Writer.3.gz
+%%PERL5_MAN3%%/Mango::Protocol.3.gz