diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-libs/mongo-c-driver | |
download | gentoo-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-libs/mongo-c-driver')
-rw-r--r-- | dev-libs/mongo-c-driver/Manifest | 4 | ||||
-rw-r--r-- | dev-libs/mongo-c-driver/files/0.8.1-api-version.diff | 14 | ||||
-rw-r--r-- | dev-libs/mongo-c-driver/metadata.xml | 18 | ||||
-rw-r--r-- | dev-libs/mongo-c-driver/mongo-c-driver-0.7.1-r1.ebuild | 51 | ||||
-rw-r--r-- | dev-libs/mongo-c-driver/mongo-c-driver-0.8.1-r1.ebuild | 51 | ||||
-rw-r--r-- | dev-libs/mongo-c-driver/mongo-c-driver-0.98.2.ebuild | 64 | ||||
-rw-r--r-- | dev-libs/mongo-c-driver/mongo-c-driver-1.1.2-r1.ebuild | 68 |
7 files changed, 270 insertions, 0 deletions
diff --git a/dev-libs/mongo-c-driver/Manifest b/dev-libs/mongo-c-driver/Manifest new file mode 100644 index 000000000000..7aacf268930a --- /dev/null +++ b/dev-libs/mongo-c-driver/Manifest @@ -0,0 +1,4 @@ +DIST mongo-c-driver-0.7.1.tar.gz 108537 SHA256 6670b50bb4232cc617a114d1320ea97abc55f9570b4ebf53e1e6c22671ffc328 SHA512 5c6996dc47ecbe4d77971e3aa983a877e7de736bf358c467808eceba8b1a5eea342376249cdc682a034fc7ec39290d234527cec3c3732686f184281a72aec724 WHIRLPOOL c3aadbb61bd7bd295398b4510708f95c0a05383e80baba510609870aa39f5442d4bbfb6441889f605578e07e2c97d44d2e2d75b5a2ec6950a362825c6110fbd3 +DIST mongo-c-driver-0.8.1.tar.gz 124053 SHA256 9575f05fa87fe1f7c6562b1ec9202fd4b8a98950a4d65ea44c1c62fadc2b48b0 SHA512 7b61ac4b1b154ee1f518eddb2bbc0cdafe0da8786eed4475e5703c2a735ec5a09efde59f5bfa45fb226cbce24d8c0ba0de403d8fc3e561c0e48507dfb07962b1 WHIRLPOOL 1474a7b5fced35b511cedd97f558f284d70135c591bd6d671c34519f68097a1e2e6a32a6323acfa4ea3d0146529d3be79f2f91d1187ba3d01a7da6aaacaabf2d +DIST mongo-c-driver-0.98.2.tar.gz 5342760 SHA256 ac0edebd6ee55ac5c63047addc67d1801440586e6a9388cb3938c5bb0319afc5 SHA512 6e3abc31b1e0e02d3bb864882444a95aa01ec4a85ee77abdc52675a730790be7f1924f3c6ea36405ff0f2066e332302ca567bbfa35ba7b918bce81fb409600eb WHIRLPOOL 931a20b916778fcff0d419a73e1263b72b3293ce320254b050ed2211b56449e5e8dcd608459dcce8af98922e64a4aefc2908883f12a590d9e3e754573aed17c1 +DIST mongo-c-driver-1.1.2.tar.gz 5443153 SHA256 ba97f4304883abf6d57ac96751260c4b413b871b0779c12e67136320bee5f118 SHA512 d420fc407f6a04c06a959b8971dc2643c987df5c3d82f2b13bfdf6a44e96bc377478c4d0e385abf67f21b56892c915c79675fe9ebf6efa9aab51fe452c5e6f95 WHIRLPOOL d72bdd7e449e8437bc9742e5f0330e6f6c47d40e3fc07a17d95a9967ecb2ae5961f5c7c155e2d8a12e733139ffbf30091dfa283f6f6a694e05c9c9fb7a03bd2b diff --git a/dev-libs/mongo-c-driver/files/0.8.1-api-version.diff b/dev-libs/mongo-c-driver/files/0.8.1-api-version.diff new file mode 100644 index 000000000000..2bd52253a17b --- /dev/null +++ b/dev-libs/mongo-c-driver/files/0.8.1-api-version.diff @@ -0,0 +1,14 @@ +diff -uNr mongo-c-driver-0.8.1.ORIG/src/mongo.h mongo-c-driver-0.8.1/src/mongo.h +--- mongo-c-driver-0.8.1.ORIG/src/mongo.h 2014-03-27 17:00:42.880465606 +0000 ++++ mongo-c-driver-0.8.1/src/mongo.h 2014-03-27 17:01:05.131465940 +0000 +@@ -33,8 +33,8 @@ + #endif + + #define MONGO_MAJOR 0 +-#define MONGO_MINOR 7 +-#define MONGO_PATCH 0 ++#define MONGO_MINOR 8 ++#define MONGO_PATCH 1 + + #define MONGO_OK 0 + #define MONGO_ERROR -1 diff --git a/dev-libs/mongo-c-driver/metadata.xml b/dev-libs/mongo-c-driver/metadata.xml new file mode 100644 index 000000000000..a1f0f88321d3 --- /dev/null +++ b/dev-libs/mongo-c-driver/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>proxy-maintainers</herd> + <maintainer> + <email>ultrabug@gentoo.org</email> + <name>Alexys Jacob</name> + </maintainer> + <maintainer> + <email>bugs@bergstroem.nu</email> + <name>Johan Bergström</name> + </maintainer> + <longdescription lang="en"> + </longdescription> + <upstream> + <remote-id type="github">mongodb/mongo-c-driver</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-0.7.1-r1.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-0.7.1-r1.ebuild new file mode 100644 index 000000000000..1e82bc029468 --- /dev/null +++ b/dev-libs/mongo-c-driver/mongo-c-driver-0.7.1-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=(python2_7) + +inherit multilib python-r1 toolchain-funcs + +DESCRIPTION="C Driver for MongoDB" +HOMEPAGE="http://www.mongodb.org/ https://github.com/mongodb/mongo-c-driver" +SRC_URI="https://github.com/mongodb/${PN}/tarball/v${PV/_/} -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 ~hppa ppc x86" +IUSE="doc static-libs" + +# tests fails to build +RESTRICT="test" + +RDEPEND="" +DEPEND="doc? ( dev-python/sphinx )" + +src_unpack() { + unpack ${A} + mv *-${PN}-* "${S}" +} + +src_prepare() { + # bug #510722 + sed -e 's/-O3//g' \ + -e 's/-ggdb//g' \ + -e "s/CC:=.*/CC:=$(tc-getCC)/g" \ + -i Makefile || die +} + +src_compile() { + emake + use doc && make -C docs/source/sphinx html +} + +src_install() { + emake install \ + INSTALL_LIBRARY_PATH="${D}/usr/$(get_libdir)" \ + INSTALL_INCLUDE_PATH="${D}/usr/include" + + use static-libs || find "${ED}" -name '*.a' -exec rm -f {} + + + use doc && dohtml -r docs/source/sphinx/build/html/* +} diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-0.8.1-r1.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-0.8.1-r1.ebuild new file mode 100644 index 000000000000..736185ee3c18 --- /dev/null +++ b/dev-libs/mongo-c-driver/mongo-c-driver-0.8.1-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +PYTHON_COMPAT=( python2_7 ) + +inherit base multilib python-any-r1 toolchain-funcs + +DESCRIPTION="C Driver for MongoDB" +HOMEPAGE="http://www.mongodb.org/ https://github.com/mongodb/mongo-c-driver" +SRC_URI="https://github.com/mongodb/${PN}/tarball/v${PV/_/} -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~x86" +IUSE="doc static-libs" + +# tests fails to build +RESTRICT="test" + +RDEPEND="" +DEPEND="${PYTHON_DEPS} + doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') ) +" +PATCHES=( "${FILESDIR}/${PV}-api-version.diff" ) + +python_check_deps() { + use !doc || has_version "dev-python/sphinx[${PYTHON_USEDEP}]" +} + +src_unpack() { + unpack ${A} + mv *-${PN}-* "${S}" +} + +src_compile() { + tc-export CC + emake + use doc && make -C docs/source/sphinx html +} + +src_install() { + emake install \ + INSTALL_LIBRARY_PATH="${D}/usr/$(get_libdir)" \ + INSTALL_INCLUDE_PATH="${D}/usr/include" + + use static-libs || find "${ED}" -name '*.a' -exec rm -f {} + + + use doc && dohtml -r docs/source/sphinx/build/html/* +} diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-0.98.2.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-0.98.2.ebuild new file mode 100644 index 000000000000..0bb5f3ecb4eb --- /dev/null +++ b/dev-libs/mongo-c-driver/mongo-c-driver-0.98.2.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils + +DESCRIPTION="A high-performance MongoDB driver for C" +HOMEPAGE="https://github.com/mongodb/mongo-c-driver" +SRC_URI="https://github.com/mongodb/${PN}/releases/download/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +IUSE="debug examples sasl ssl static-libs test" + +RDEPEND=">=dev-libs/libbson-0.98.0 + sasl? ( dev-libs/cyrus-sasl ) + ssl? ( dev-libs/openssl:= )" +DEPEND="${RDEPEND} + test? ( dev-db/mongodb )" + +DOCS=( NEWS README.rst TUTORIAL.md ) + +src_prepare() { + # https://github.com/mongodb/mongo-c-driver/issues/54 + sed -i -e "s/PTHREAD_LIBS/PTHREAD_CFLAGS/g" src/Makefile.am \ + tests/Makefile.am || die + eautoreconf +} + +src_configure() { + econf --disable-hardening \ + --disable-optimizations \ + --disable-examples \ + $(use_enable sasl) \ + $(use_enable ssl) \ + $(use_enable debug) \ + $(use_enable static-libs static) +} + +src_install() { + emake DESTDIR="${D}" install + doman doc/*.3 + + use static-libs || find "${D}" -name '*.la' -delete + + if use examples; then + insinto /usr/share/${PF}/examples + doins -r examples/*.c examples/aggregation examples/bulk + fi +} + +src_test() { + # Avoid allocating too much disk space by using server.smallFiles = 1 + echo -e "storage:\n smallFiles: true" > "${T}/mongod.conf" + local PORT=27099 + mongod --port ${PORT} --bind_ip 127.0.0.1 --nounixsocket --fork \ + -f "${T}/mongod.conf" --dbpath="${T}" \ + --logpath="${T}/mongod.log" || die + MONGOC_TEST_HOST="127.0.0.1:${PORT}" emake test + kill `cat "${T}/mongod.lock"` +} diff --git a/dev-libs/mongo-c-driver/mongo-c-driver-1.1.2-r1.ebuild b/dev-libs/mongo-c-driver/mongo-c-driver-1.1.2-r1.ebuild new file mode 100644 index 000000000000..65f19c5a2e2d --- /dev/null +++ b/dev-libs/mongo-c-driver/mongo-c-driver-1.1.2-r1.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils + +DESCRIPTION="A high-performance MongoDB driver for C" +HOMEPAGE="https://github.com/mongodb/mongo-c-driver" +SRC_URI="https://github.com/mongodb/${PN}/releases/download/${PV}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +IUSE="debug examples sasl ssl static-libs test" + +RDEPEND=">=dev-libs/libbson-1.0 + sasl? ( dev-libs/cyrus-sasl ) + ssl? ( dev-libs/openssl:= )" +DEPEND="${RDEPEND} + test? ( dev-db/mongodb )" + +DOCS=( NEWS README.rst TUTORIAL.md ) + +src_prepare() { + rm -r src/libbson || die + sed -i -e '/SUBDIRS/s:src/libbson::g' Makefile.am || die + + # https://github.com/mongodb/mongo-c-driver/issues/54 + sed -i -e "s/PTHREAD_LIBS/PTHREAD_CFLAGS/g" src/Makefile.am \ + tests/Makefile.am || die + eautoreconf +} + +src_configure() { + econf --with-libbson=system \ + --disable-hardening \ + --disable-optimizations \ + --disable-examples \ + $(use_enable sasl) \ + $(use_enable ssl) \ + $(use_enable debug) \ + $(use_enable static-libs static) +} + +src_install() { + emake DESTDIR="${D}" install + doman doc/*.3 + + use static-libs || find "${D}" -name '*.la' -delete + + if use examples; then + insinto /usr/share/${PF}/examples + doins -r examples/*.c examples/aggregation examples/bulk + fi +} + +src_test() { + # Avoid allocating too much disk space by using server.smallFiles = 1 + echo -e "storage:\n smallFiles: true" > "${T}/mongod.conf" + local PORT=27099 + mongod --port ${PORT} --bind_ip 127.0.0.1 --nounixsocket --fork \ + -f "${T}/mongod.conf" --dbpath="${T}" \ + --logpath="${T}/mongod.log" || die + MONGOC_TEST_HOST="127.0.0.1:${PORT}" emake test + kill `cat "${T}/mongod.lock"` +} |