summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-perl/MongoDB
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-perl/MongoDB')
-rw-r--r--dev-perl/MongoDB/Manifest3
-rw-r--r--dev-perl/MongoDB/MongoDB-0.701.4.ebuild30
-rw-r--r--dev-perl/MongoDB/MongoDB-0.708.0.0.ebuild57
-rw-r--r--dev-perl/MongoDB/MongoDB-0.708.3.0.ebuild57
-rw-r--r--dev-perl/MongoDB/files/gridfs-perl-patch.diff39
-rw-r--r--dev-perl/MongoDB/metadata.xml13
6 files changed, 199 insertions, 0 deletions
diff --git a/dev-perl/MongoDB/Manifest b/dev-perl/MongoDB/Manifest
new file mode 100644
index 000000000000..2d1c420db033
--- /dev/null
+++ b/dev-perl/MongoDB/Manifest
@@ -0,0 +1,3 @@
+DIST MongoDB-0.701.4.tar.gz 1465098 SHA256 1cb5e77449aab787abdb69df2dd98a721e243ca80500b88815090f44e9320813 SHA512 329da2bddecf33bb02fc04e3e2d62d7c3ca106fdcba01a2b604d3e5319ca57a03a20229764245e152d5dc6aa2e187459ae7fa96b564a975461c56545e71267c9 WHIRLPOOL c9547405da0896dbbadc803603b40138c7d4d72ed9df88bfbdb108038c9c61b4b1539c3fe4f93742e791d519a16ea836b192b8108c8b1419a96d4b841d665ec7
+DIST MongoDB-v0.708.0.0.tar.gz 1625892 SHA256 ec7d9a3d5b50b99a7249ee3744cf9ce0ec587e5664dfaed6db33001c5acc7f20 SHA512 1bc623d45e885953d51fcefda8efe2e1fa20b507ef3fda77dac40aa3009f7bd0290c75413dc9ef1f026776dbb1c06b77950842bc2d05d310aad694403130be72 WHIRLPOOL 392ca5dfaef7fedc545b89f578caecfd3e57e69beb041d088aafe4dcd4ea7417106415b5ca23948223b97ded35f284f910496c2b2010db85cabf9f60b8c76812
+DIST MongoDB-v0.708.3.0.tar.gz 1627550 SHA256 03c4b885f327de7a8c0d9f449306d849d43e7fea4a6331da8a970710934378f0 SHA512 01bd174504cfb172f9ba179a97dffa4d3c1acbeee93ecb4d6a898928c9a6139f8199baa764eb6cdfcf121fd278b0eff899d774e1549a46c3bc5af7d9534f75f1 WHIRLPOOL 6b259e8391dcb883160eff7de0d9ad6c06479dfe7a3285251d9e2d954d2b1bd75c40b649cefe897bcda0cf38a2712c70e7f6297686426a5be30edea33b5d2604
diff --git a/dev-perl/MongoDB/MongoDB-0.701.4.ebuild b/dev-perl/MongoDB/MongoDB-0.701.4.ebuild
new file mode 100644
index 000000000000..e4a44ba55b15
--- /dev/null
+++ b/dev-perl/MongoDB/MongoDB-0.701.4.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+MODULE_AUTHOR="FRIEDO"
+
+inherit perl-module
+
+DESCRIPTION="A Mongo Driver for Perl"
+
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="dev-perl/DateTime
+ dev-perl/Tie-IxHash
+ dev-perl/Data-Types
+ dev-perl/DateTime-Tiny
+ dev-perl/Class-Method-Modifiers
+ dev-perl/boolean
+ dev-perl/Moose
+ dev-perl/File-Slurp
+ dev-perl/Try-Tiny
+ dev-perl/Module-Install
+ dev-perl/JSON
+ virtual/perl-ExtUtils-MakeMaker"
+
+src_prepare() {
+ epatch "${FILESDIR}"/gridfs-perl-patch.diff
+}
diff --git a/dev-perl/MongoDB/MongoDB-0.708.0.0.ebuild b/dev-perl/MongoDB/MongoDB-0.708.0.0.ebuild
new file mode 100644
index 000000000000..6b6a2b2586e4
--- /dev/null
+++ b/dev-perl/MongoDB/MongoDB-0.708.0.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+MODULE_AUTHOR=MONGODB
+MODULE_VERSION=v0.708.0.0
+
+inherit perl-module
+
+DESCRIPTION="Official MongoDB Driver for Perl"
+SLOT="0"
+
+KEYWORDS="~amd64"
+
+LICENSE="Apache-2.0"
+IUSE=test
+
+RDEPEND="
+ dev-perl/Authen-SCRAM
+ virtual/perl-Carp
+ dev-perl/Moose
+ >=dev-perl/DateTime-0.780.0
+ virtual/perl-Digest-MD5
+ virtual/perl-Encode
+ >=virtual/perl-Exporter-5.570.0
+ virtual/perl-IO
+ virtual/perl-MIME-Base64
+ dev-perl/Safe-Isa
+ virtual/perl-Scalar-List-Utils
+ dev-perl/Syntax-Keyword-Junction
+ dev-perl/Throwable
+ dev-perl/Tie-IxHash
+ virtual/perl-Time-HiRes
+ dev-perl/Try-Tiny
+ virtual/perl-XSLoader
+ dev-perl/boolean
+ virtual/perl-if
+ dev-perl/namespace-clean
+"
+DEPEND="${RDEPEND}
+ >=dev-perl/Config-AutoConf-0.220.0
+ virtual/perl-ExtUtils-MakeMaker
+ >=dev-perl/Path-Tiny-0.52.0
+ test? (
+ virtual/perl-Data-Dumper
+ dev-perl/DateTime-Tiny
+ virtual/perl-File-Spec
+ virtual/perl-File-Temp
+ dev-perl/JSON
+ >=dev-perl/Test-Deep-0.111.0
+ dev-perl/Test-Fatal
+ >=virtual/perl-Test-Simple-0.960.0
+ dev-perl/Test-Warn
+ virtual/perl-bignum
+ )
+"
diff --git a/dev-perl/MongoDB/MongoDB-0.708.3.0.ebuild b/dev-perl/MongoDB/MongoDB-0.708.3.0.ebuild
new file mode 100644
index 000000000000..6aedad76fb0f
--- /dev/null
+++ b/dev-perl/MongoDB/MongoDB-0.708.3.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+MODULE_AUTHOR=MONGODB
+MODULE_VERSION="v${PV}"
+
+inherit perl-module
+
+DESCRIPTION="Official MongoDB Driver for Perl"
+SLOT="0"
+
+KEYWORDS="~amd64"
+
+LICENSE="Apache-2.0"
+IUSE=test
+
+RDEPEND="
+ dev-perl/Authen-SCRAM
+ virtual/perl-Carp
+ dev-perl/Moose
+ >=dev-perl/DateTime-0.780.0
+ virtual/perl-Digest-MD5
+ virtual/perl-Encode
+ >=virtual/perl-Exporter-5.570.0
+ virtual/perl-IO
+ virtual/perl-MIME-Base64
+ dev-perl/Safe-Isa
+ virtual/perl-Scalar-List-Utils
+ dev-perl/Syntax-Keyword-Junction
+ dev-perl/Throwable
+ dev-perl/Tie-IxHash
+ virtual/perl-Time-HiRes
+ dev-perl/Try-Tiny
+ virtual/perl-XSLoader
+ dev-perl/boolean
+ virtual/perl-if
+ dev-perl/namespace-clean
+"
+DEPEND="${RDEPEND}
+ >=dev-perl/Config-AutoConf-0.220.0
+ virtual/perl-ExtUtils-MakeMaker
+ >=dev-perl/Path-Tiny-0.52.0
+ test? (
+ virtual/perl-Data-Dumper
+ dev-perl/DateTime-Tiny
+ virtual/perl-File-Spec
+ virtual/perl-File-Temp
+ dev-perl/JSON
+ >=dev-perl/Test-Deep-0.111.0
+ dev-perl/Test-Fatal
+ >=virtual/perl-Test-Simple-0.960.0
+ dev-perl/Test-Warn
+ virtual/perl-bignum
+ )
+"
diff --git a/dev-perl/MongoDB/files/gridfs-perl-patch.diff b/dev-perl/MongoDB/files/gridfs-perl-patch.diff
new file mode 100644
index 000000000000..3e9c6c9c4d83
--- /dev/null
+++ b/dev-perl/MongoDB/files/gridfs-perl-patch.diff
@@ -0,0 +1,39 @@
+diff --git a/lib/MongoDB/GridFS.pm b/lib/MongoDB/GridFS.pm
+index f9a2421..8a9c4a7 100644
+--- a/lib/MongoDB/GridFS.pm
++++ b/lib/MongoDB/GridFS.pm
+@@ -119,13 +119,19 @@ sub BUILD {
+ my ($self) = @_;
+
+ # check for the required indexs in the system.indexes colleciton
+- my $count = $self->_database->get_collection('system.indexes')->count({filename => 1});
+- $count += $self->_database->get_collection('system.indexes')->count({files_id => 1, n => 1});
+-
+- # if we dont have the required indexes, create them now.
+- if ($count < 2){
+- $self->_ensure_indexes();
++ my @files_idx = $self->files->get_indexes;
++ my @matches = grep { $_->{key}->{filename} } @files_idx;
++ if (scalar @matches == 0) {
++ $self->files->ensure_index(Tie::IxHash->new(filename => 1), {"safe" => 1});
++ }
++
++ my @chunks_idx = $self->chunks->get_indexes;
++ @matches = grep { (defined $_->{key}->{files_id} && defined $_->{key}->{i} &&
++ $_->{key}->{files_id} == 1 && $_->{key}->{i} == 1)} @chunks_idx;
++ if (scalar @matches == 0) {
++ $self->chunks->ensure_index(Tie::IxHash->new(files_id => 1, n => 1), {"safe" => 1});
+ }
++
+ }
+
+
+@@ -134,7 +140,7 @@ sub _ensure_indexes {
+
+ # ensure the necessary index is present (this may be first usage)
+ $self->files->ensure_index(Tie::IxHash->new(filename => 1), {"safe" => 1});
+- $self->chunks->ensure_index(Tie::IxHash->new(files_id => 1, n => 1), {"safe" => 1, "unique" => 1});
++ $self->chunks->ensure_index(Tie::IxHash->new(files_id => 1, n => 1), {"safe" => 1});
+ }
+
+ =head1 METHODS
diff --git a/dev-perl/MongoDB/metadata.xml b/dev-perl/MongoDB/metadata.xml
new file mode 100644
index 000000000000..07a6575ced26
--- /dev/null
+++ b/dev-perl/MongoDB/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>perl</herd>
+ <maintainer>
+ <email>chainsaw@gentoo.org</email>
+ <name>Tony Vroon</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="cpan">MongoDB</remote-id>
+ <remote-id type="cpan-module">MongoDB</remote-id>
+ </upstream>
+</pkgmetadata>