1 |
commit: e950fd580a7212e3adaf225ceac0c00693dbf2bf |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 1 09:33:13 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 1 10:04:56 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e950fd58 |
7 |
|
8 |
dev-libs/mongo-c-driver: Remove old (python2) |
9 |
|
10 |
Closes: https://bugs.gentoo.org/735300 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
.../mongo-c-driver/files/0.8.1-api-version.diff | 14 ----- |
14 |
.../mongo-c-driver/mongo-c-driver-0.7.1-r1.ebuild | 59 ---------------------- |
15 |
.../mongo-c-driver/mongo-c-driver-0.8.1-r1.ebuild | 53 ------------------- |
16 |
3 files changed, 126 deletions(-) |
17 |
|
18 |
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 |
19 |
deleted file mode 100644 |
20 |
index 2bd52253a17..00000000000 |
21 |
--- a/dev-libs/mongo-c-driver/files/0.8.1-api-version.diff |
22 |
+++ /dev/null |
23 |
@@ -1,14 +0,0 @@ |
24 |
-diff -uNr mongo-c-driver-0.8.1.ORIG/src/mongo.h mongo-c-driver-0.8.1/src/mongo.h |
25 |
---- mongo-c-driver-0.8.1.ORIG/src/mongo.h 2014-03-27 17:00:42.880465606 +0000 |
26 |
-+++ mongo-c-driver-0.8.1/src/mongo.h 2014-03-27 17:01:05.131465940 +0000 |
27 |
-@@ -33,8 +33,8 @@ |
28 |
- #endif |
29 |
- |
30 |
- #define MONGO_MAJOR 0 |
31 |
--#define MONGO_MINOR 7 |
32 |
--#define MONGO_PATCH 0 |
33 |
-+#define MONGO_MINOR 8 |
34 |
-+#define MONGO_PATCH 1 |
35 |
- |
36 |
- #define MONGO_OK 0 |
37 |
- #define MONGO_ERROR -1 |
38 |
|
39 |
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 |
40 |
deleted file mode 100644 |
41 |
index f342b65bf46..00000000000 |
42 |
--- a/dev-libs/mongo-c-driver/mongo-c-driver-0.7.1-r1.ebuild |
43 |
+++ /dev/null |
44 |
@@ -1,59 +0,0 @@ |
45 |
-# Copyright 1999-2020 Gentoo Authors |
46 |
-# Distributed under the terms of the GNU General Public License v2 |
47 |
- |
48 |
-EAPI=5 |
49 |
-PYTHON_COMPAT=( python2_7 ) |
50 |
- |
51 |
-inherit flag-o-matic multilib python-any-r1 toolchain-funcs |
52 |
- |
53 |
-DESCRIPTION="C Driver for MongoDB" |
54 |
-HOMEPAGE="http://www.mongodb.org/ https://github.com/mongodb/mongo-c-driver" |
55 |
-SRC_URI="https://github.com/mongodb/${PN}/tarball/v${PV/_/} -> ${P}.tar.gz" |
56 |
- |
57 |
-LICENSE="Apache-2.0" |
58 |
-SLOT="0" |
59 |
-KEYWORDS="amd64 ~hppa ~s390 x86" |
60 |
-IUSE="doc static-libs" |
61 |
- |
62 |
-# tests fails to build |
63 |
-RESTRICT="test" |
64 |
- |
65 |
-RDEPEND="" |
66 |
-DEPEND="${PYTHON_DEPS} |
67 |
- doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') ) |
68 |
-" |
69 |
- |
70 |
-python_check_deps() { |
71 |
- if use doc; then |
72 |
- has_version "dev-python/sphinx[${PYTHON_USEDEP}]" |
73 |
- fi |
74 |
-} |
75 |
- |
76 |
-src_unpack() { |
77 |
- unpack ${A} |
78 |
- mv *-${PN}-* "${S}" |
79 |
-} |
80 |
- |
81 |
-src_prepare() { |
82 |
- # bug #510722 |
83 |
- sed -e 's/-O3//g' \ |
84 |
- -e 's/-ggdb//g' \ |
85 |
- -e "s/CC:=.*/CC:=$(tc-getCC)/g" \ |
86 |
- -i Makefile || die |
87 |
-} |
88 |
- |
89 |
-src_compile() { |
90 |
- append-cflags -D_POSIX_C_SOURCE=200112L |
91 |
- emake |
92 |
- use doc && make -C docs/source/sphinx html |
93 |
-} |
94 |
- |
95 |
-src_install() { |
96 |
- emake install \ |
97 |
- INSTALL_LIBRARY_PATH="${D}/usr/$(get_libdir)" \ |
98 |
- INSTALL_INCLUDE_PATH="${D}/usr/include" |
99 |
- |
100 |
- use static-libs || find "${ED}" -name '*.a' -exec rm -f {} + |
101 |
- |
102 |
- use doc && dohtml -r docs/source/sphinx/build/html/* |
103 |
-} |
104 |
|
105 |
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 |
106 |
deleted file mode 100644 |
107 |
index 0220abebd22..00000000000 |
108 |
--- a/dev-libs/mongo-c-driver/mongo-c-driver-0.8.1-r1.ebuild |
109 |
+++ /dev/null |
110 |
@@ -1,53 +0,0 @@ |
111 |
-# Copyright 1999-2020 Gentoo Authors |
112 |
-# Distributed under the terms of the GNU General Public License v2 |
113 |
- |
114 |
-EAPI="5" |
115 |
-PYTHON_COMPAT=( python2_7 ) |
116 |
- |
117 |
-inherit base flag-o-matic multilib python-any-r1 toolchain-funcs |
118 |
- |
119 |
-DESCRIPTION="C Driver for MongoDB" |
120 |
-HOMEPAGE="http://www.mongodb.org/ https://github.com/mongodb/mongo-c-driver" |
121 |
-SRC_URI="https://github.com/mongodb/${PN}/tarball/v${PV/_/} -> ${P}.tar.gz" |
122 |
- |
123 |
-LICENSE="Apache-2.0" |
124 |
-SLOT="0" |
125 |
-KEYWORDS="amd64 ~hppa ~s390 x86" |
126 |
-IUSE="doc static-libs" |
127 |
- |
128 |
-# tests fails to build |
129 |
-RESTRICT="test" |
130 |
- |
131 |
-RDEPEND="" |
132 |
-DEPEND="${PYTHON_DEPS} |
133 |
- doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') ) |
134 |
-" |
135 |
-PATCHES=( "${FILESDIR}/${PV}-api-version.diff" ) |
136 |
- |
137 |
-python_check_deps() { |
138 |
- if use doc; then |
139 |
- has_version "dev-python/sphinx[${PYTHON_USEDEP}]" |
140 |
- fi |
141 |
-} |
142 |
- |
143 |
-src_unpack() { |
144 |
- unpack ${A} |
145 |
- mv *-${PN}-* "${S}" |
146 |
-} |
147 |
- |
148 |
-src_compile() { |
149 |
- append-cflags -D_POSIX_C_SOURCE=200112L |
150 |
- tc-export CC |
151 |
- emake |
152 |
- use doc && make -C docs/source/sphinx html |
153 |
-} |
154 |
- |
155 |
-src_install() { |
156 |
- emake install \ |
157 |
- INSTALL_LIBRARY_PATH="${D}/usr/$(get_libdir)" \ |
158 |
- INSTALL_INCLUDE_PATH="${D}/usr/include" |
159 |
- |
160 |
- use static-libs || find "${ED}" -name '*.a' -exec rm -f {} + |
161 |
- |
162 |
- use doc && dohtml -r docs/source/sphinx/build/html/* |
163 |
-} |