1 |
commit: cadb31d625fd6c5a8b6dbd37f04fd2897b934c2b |
2 |
Author: Eray Aslan <eras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 28 05:17:02 2021 +0000 |
4 |
Commit: Eray Aslan <eras <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 28 05:17:02 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cadb31d6 |
7 |
|
8 |
dev-db/lmdb: remove old |
9 |
|
10 |
Package-Manager: Portage-3.0.22, Repoman-3.0.3 |
11 |
Signed-off-by: Eray Aslan <eras <AT> gentoo.org> |
12 |
|
13 |
dev-db/lmdb/Manifest | 4 -- |
14 |
dev-db/lmdb/files/lmdb-fix-cursor-delete.patch | 48 ----------------- |
15 |
dev-db/lmdb/lmdb-0.9.23.ebuild | 72 ------------------------- |
16 |
dev-db/lmdb/lmdb-0.9.24.ebuild | 74 ------------------------- |
17 |
dev-db/lmdb/lmdb-0.9.26.ebuild | 75 -------------------------- |
18 |
dev-db/lmdb/lmdb-0.9.27.ebuild | 75 -------------------------- |
19 |
6 files changed, 348 deletions(-) |
20 |
|
21 |
diff --git a/dev-db/lmdb/Manifest b/dev-db/lmdb/Manifest |
22 |
index 526775f840f..ccab97d2dad 100644 |
23 |
--- a/dev-db/lmdb/Manifest |
24 |
+++ b/dev-db/lmdb/Manifest |
25 |
@@ -1,6 +1,2 @@ |
26 |
-DIST LMDB_0.9.23.tar.gz 143813 BLAKE2B 252acad974a7ed528fe0e52b8332845bc0b6076599bbc79ef2c3f41459acb6ccbe5f6030c6a258fe30633c4c0568fa05fa6d46dc05bab3f93ee3aab16e6faa89 SHA512 47466a96ce288d18d489acf1abf811aa973649848a4cac31f71e1f25ea781a055ebd6616d2d630214b2df2f146f12609c82d65be0196f49d6b46a6c96464e120 |
27 |
-DIST LMDB_0.9.24.tar.gz 143916 BLAKE2B f075ec5f4dfb77685188229e20f12c4febe8295c7d35ed15c3db492b68af68cc7f76741078e9bb524d2c38587839f542e964af1e5d6d984bb28bd602caabbb8d SHA512 c3a96c27f13c072ef5861bcea045d82f0a220dbd938579411ea6c38ac0696b3620c71f1e2cc56d31db5105f3533da95aba1ac34653d8bdcfa4f2f1fb831cccb1 |
28 |
-DIST openldap-LMDB_0.9.26.tar.gz 144029 BLAKE2B 07fe81cdaed7a402aaf485a2aa41d12c2c8cc8813d39d5304d8a1f5c8920f4695021eb586b4366a5f55010284227c7ac16487a8799c60f251ea97cd745b1261a SHA512 d7826f6d1a3144feb71eef65f843e8bcddf6cec384014bab3fc1d32a7f1b9316bcbb5b3a915b166cbdae2ffbd15f14b4eb783acd7eddbd2e321607f750efe94d |
29 |
-DIST openldap-LMDB_0.9.27.tar.gz 144104 BLAKE2B 76b7b66ca455f61f71b7c010de0b5437d02a245a5129184cf45bf5684a745888c88012fb73a219076b6c47adfda0804e6c7f603e4631c98034c01efda99ad3a9 SHA512 a27c0d26c801b172f3c207666940f86ecaae9d223843b72823d064f0ea0629a855150d049cb143981783710d3ca791c7f0f65df9d91732b2709e6107af403854 |
30 |
DIST openldap-LMDB_0.9.28.tar.gz 144520 BLAKE2B 3466da1ffde7350056fb3b16fc0068d78139c578fdf79cd6456ca0d98e2d7b3d899849ae42a7224335a4680e52b5f0feb2c4233eaf00ee3d9ee648ae10c3114a SHA512 0cdf9a2ce35617a3135cde96491fbbb73be9362de2b94d23eda44b65ce48362ff9dbdfe921c3255ed486aceb385fcb62b81f560b1037476f4741291b29ba0dce |
31 |
DIST openldap-LMDB_0.9.29.tar.gz 144545 BLAKE2B b7e55e4fa03e878a95b8f7c583684727a81d51a3acf2ec064d8fe26475bf9ffe4dddf16c2bccbda901b94b7c8d57f41fa63f7c09bcab46401bd000958a5b87b3 SHA512 b41ba5b139375d23617a79f4d322399df55745c5a4a63159ddbe0f1ded4707f0eb7f71acf3d1a4928f8fcab30a7b5db17e3e165441a61ec1dbd29f8d9efa65d1 |
32 |
|
33 |
diff --git a/dev-db/lmdb/files/lmdb-fix-cursor-delete.patch b/dev-db/lmdb/files/lmdb-fix-cursor-delete.patch |
34 |
deleted file mode 100644 |
35 |
index fd76be1bb79..00000000000 |
36 |
--- a/dev-db/lmdb/files/lmdb-fix-cursor-delete.patch |
37 |
+++ /dev/null |
38 |
@@ -1,48 +0,0 @@ |
39 |
-From 40585b483976d9062e6c971df285f911512ecd5e Mon Sep 17 00:00:00 2001 |
40 |
-From: Howard Chu <hyc@××××××××.org> |
41 |
-Date: Tue, 9 Feb 2021 23:38:06 +0000 |
42 |
-Subject: [PATCH] ITS#9461 refix ITS#9376 |
43 |
- |
44 |
-Was setting C_DEL flag gratuitously |
45 |
---- |
46 |
- libraries/liblmdb/mdb.c | 2 +- |
47 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
48 |
- |
49 |
-diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c |
50 |
-index 621cbcfa..e6cae8ed 100644 |
51 |
---- a/mdb.c |
52 |
-+++ b/mdb.c |
53 |
-@@ -8527,10 +8527,10 @@ mdb_cursor_del0(MDB_cursor *mc) |
54 |
- } |
55 |
- m3->mc_xcursor->mx_cursor.mc_flags |= C_DEL; |
56 |
- } |
57 |
-- m3->mc_flags |= C_DEL; |
58 |
- } |
59 |
- } |
60 |
- } |
61 |
-+ m3->mc_flags |= C_DEL; |
62 |
- |
63 |
- fail: |
64 |
- if (rc) |
65 |
-From f9c5b46651c4ecd699643c4d90bb3ab7725a6167 Mon Sep 17 00:00:00 2001 |
66 |
-From: Howard Chu <hyc@××××××××.org> |
67 |
-Date: Thu, 11 Feb 2021 11:34:57 +0000 |
68 |
-Subject: [PATCH] ITS#9461 fix typo |
69 |
- |
70 |
---- |
71 |
- libraries/liblmdb/mdb.c | 2 +- |
72 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
73 |
- |
74 |
-diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c |
75 |
-index e6cae8ed..4062664b 100644 |
76 |
---- a/mdb.c |
77 |
-+++ b/mdb.c |
78 |
-@@ -8530,7 +8530,7 @@ mdb_cursor_del0(MDB_cursor *mc) |
79 |
- } |
80 |
- } |
81 |
- } |
82 |
-- m3->mc_flags |= C_DEL; |
83 |
-+ mc->mc_flags |= C_DEL; |
84 |
- |
85 |
- fail: |
86 |
- if (rc) |
87 |
|
88 |
diff --git a/dev-db/lmdb/lmdb-0.9.23.ebuild b/dev-db/lmdb/lmdb-0.9.23.ebuild |
89 |
deleted file mode 100644 |
90 |
index a3f04ec4d48..00000000000 |
91 |
--- a/dev-db/lmdb/lmdb-0.9.23.ebuild |
92 |
+++ /dev/null |
93 |
@@ -1,72 +0,0 @@ |
94 |
-# Copyright 1999-2021 Gentoo Authors |
95 |
-# Distributed under the terms of the GNU General Public License v2 |
96 |
- |
97 |
-EAPI=7 |
98 |
- |
99 |
-inherit flag-o-matic multilib-minimal toolchain-funcs |
100 |
- |
101 |
-DESCRIPTION="An ultra-fast, ultra-compact key-value embedded data store" |
102 |
-HOMEPAGE="https://symas.com/lmdb/technical/" |
103 |
-SRC_URI="https://github.com/LMDB/lmdb/archive/LMDB_${PV}.tar.gz" |
104 |
- |
105 |
-LICENSE="OPENLDAP" |
106 |
-SLOT="0/${PV}" |
107 |
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" |
108 |
-IUSE="static-libs" |
109 |
- |
110 |
-DEPEND="" |
111 |
-RDEPEND="" |
112 |
- |
113 |
-S="${WORKDIR}/${PN}-LMDB_${PV}/libraries/liblmdb" |
114 |
- |
115 |
-src_prepare() { |
116 |
- eapply_user |
117 |
- if [[ ${CHOST} == *-darwin* && ${CHOST#*-darwin} -lt 10 ]] ; then |
118 |
- # posix_memalign isn't available before 10.6, but on OSX |
119 |
- # malloc is always aligned for any addressable type |
120 |
- sed -i -e '/(__APPLE__)/a#define HAVE_MEMALIGN 1\n#define memalign(X,Y) malloc(X)' mdb.c || die |
121 |
- fi |
122 |
- multilib_copy_sources |
123 |
-} |
124 |
- |
125 |
-multilib_src_configure() { |
126 |
- local soname="-Wl,-soname,liblmdb$(get_libname 0)" |
127 |
- [[ ${CHOST} == *-darwin* ]] && \ |
128 |
- soname="-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/liblmdb$(get_libname 0)" |
129 |
- sed -i -e "s!^CC.*!CC = $(tc-getCC)!" \ |
130 |
- -e "s!^CFLAGS.*!CFLAGS = ${CFLAGS}!" \ |
131 |
- -e "s!^AR.*!AR = $(tc-getAR)!" \ |
132 |
- -e "s!^SOEXT.*!SOEXT = $(get_libname)!" \ |
133 |
- -e "/^prefix/s!/usr/local!${EPREFIX}/usr!" \ |
134 |
- -e "/^libdir/s!lib\$!$(get_libdir)!" \ |
135 |
- -e "s!shared!shared ${soname}!" \ |
136 |
- "Makefile" || die |
137 |
- |
138 |
- if [[ ${CHOST} == *-solaris* ]] ; then |
139 |
- # fdatasync lives in -lrt on Solaris 10 |
140 |
- [[ ${CHOST#*-solaris2.} -le 10 ]] && append-ldflags -lrt |
141 |
- fi |
142 |
-} |
143 |
- |
144 |
-multilib_src_compile() { |
145 |
- emake LDLIBS+=" -pthread" |
146 |
-} |
147 |
- |
148 |
-multilib_src_install() { |
149 |
- emake DESTDIR="${D}" install |
150 |
- |
151 |
- mv "${ED}"/usr/$(get_libdir)/liblmdb$(get_libname) \ |
152 |
- "${ED}"/usr/$(get_libdir)/liblmdb$(get_libname 0) || die |
153 |
- dosym liblmdb$(get_libname 0) /usr/$(get_libdir)/liblmdb$(get_libname) |
154 |
- |
155 |
- insinto /usr/$(get_libdir)/pkgconfig |
156 |
- doins "${FILESDIR}/lmdb.pc" |
157 |
- sed -i -e "s!@PACKAGE_VERSION@!${PV}!" \ |
158 |
- -e "s!@prefix@!${EPREFIX}/usr!g" \ |
159 |
- -e "s!@libdir@!$(get_libdir)!" \ |
160 |
- "${ED}"/usr/$(get_libdir)/pkgconfig/lmdb.pc || die |
161 |
- |
162 |
- if ! use static-libs; then |
163 |
- rm "${ED}"/usr/$(get_libdir)/liblmdb.a || die |
164 |
- fi |
165 |
-} |
166 |
|
167 |
diff --git a/dev-db/lmdb/lmdb-0.9.24.ebuild b/dev-db/lmdb/lmdb-0.9.24.ebuild |
168 |
deleted file mode 100644 |
169 |
index 47e317b2c8a..00000000000 |
170 |
--- a/dev-db/lmdb/lmdb-0.9.24.ebuild |
171 |
+++ /dev/null |
172 |
@@ -1,74 +0,0 @@ |
173 |
-# Copyright 1999-2021 Gentoo Authors |
174 |
-# Distributed under the terms of the GNU General Public License v2 |
175 |
- |
176 |
-EAPI=7 |
177 |
- |
178 |
-inherit flag-o-matic multilib-minimal toolchain-funcs |
179 |
- |
180 |
-MY_P="${PN^^}_${PV}" |
181 |
- |
182 |
-DESCRIPTION="An ultra-fast, ultra-compact key-value embedded data store" |
183 |
-HOMEPAGE="https://symas.com/lmdb/technical/" |
184 |
-SRC_URI="https://github.com/LMDB/lmdb/archive/${MY_P}.tar.gz" |
185 |
- |
186 |
-LICENSE="OPENLDAP" |
187 |
-SLOT="0/${PV}" |
188 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" |
189 |
-IUSE="static-libs" |
190 |
- |
191 |
-DEPEND="" |
192 |
-RDEPEND="" |
193 |
- |
194 |
-S="${WORKDIR}/${PN}-${MY_P}/libraries/liblmdb" |
195 |
- |
196 |
-src_prepare() { |
197 |
- default |
198 |
- if [[ ${CHOST} == *-darwin* && ${CHOST#*-darwin} -lt 10 ]] ; then |
199 |
- # posix_memalign isn't available before 10.6, but on OSX |
200 |
- # malloc is always aligned for any addressable type |
201 |
- sed -i -e '/(__APPLE__)/a#define HAVE_MEMALIGN 1\n#define memalign(X,Y) malloc(X)' mdb.c || die |
202 |
- fi |
203 |
- multilib_copy_sources |
204 |
-} |
205 |
- |
206 |
-multilib_src_configure() { |
207 |
- local soname="-Wl,-soname,liblmdb$(get_libname 0)" |
208 |
- [[ ${CHOST} == *-darwin* ]] && \ |
209 |
- soname="-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/liblmdb$(get_libname 0)" |
210 |
- sed -i -e "s!^CC.*!CC = $(tc-getCC)!" \ |
211 |
- -e "s!^CFLAGS.*!CFLAGS = ${CFLAGS}!" \ |
212 |
- -e "s!^AR.*!AR = $(tc-getAR)!" \ |
213 |
- -e "s!^SOEXT.*!SOEXT = $(get_libname)!" \ |
214 |
- -e "/^prefix/s!/usr/local!${EPREFIX}/usr!" \ |
215 |
- -e "/^libdir/s!lib\$!$(get_libdir)!" \ |
216 |
- -e "s!shared!shared ${soname}!" \ |
217 |
- "Makefile" || die |
218 |
- |
219 |
- if [[ ${CHOST} == *-solaris* ]] ; then |
220 |
- # fdatasync lives in -lrt on Solaris 10 |
221 |
- [[ ${CHOST#*-solaris2.} -le 10 ]] && append-ldflags -lrt |
222 |
- fi |
223 |
-} |
224 |
- |
225 |
-multilib_src_compile() { |
226 |
- emake LDLIBS+=" -pthread" |
227 |
-} |
228 |
- |
229 |
-multilib_src_install() { |
230 |
- emake DESTDIR="${D}" install |
231 |
- |
232 |
- mv "${ED}"/usr/$(get_libdir)/liblmdb$(get_libname) \ |
233 |
- "${ED}"/usr/$(get_libdir)/liblmdb$(get_libname 0) || die |
234 |
- dosym liblmdb$(get_libname 0) /usr/$(get_libdir)/liblmdb$(get_libname) |
235 |
- |
236 |
- insinto /usr/$(get_libdir)/pkgconfig |
237 |
- doins "${FILESDIR}/lmdb.pc" |
238 |
- sed -i -e "s!@PACKAGE_VERSION@!${PV}!" \ |
239 |
- -e "s!@prefix@!${EPREFIX}/usr!g" \ |
240 |
- -e "s!@libdir@!$(get_libdir)!" \ |
241 |
- "${ED}"/usr/$(get_libdir)/pkgconfig/lmdb.pc || die |
242 |
- |
243 |
- if ! use static-libs; then |
244 |
- rm "${ED}"/usr/$(get_libdir)/liblmdb.a || die |
245 |
- fi |
246 |
-} |
247 |
|
248 |
diff --git a/dev-db/lmdb/lmdb-0.9.26.ebuild b/dev-db/lmdb/lmdb-0.9.26.ebuild |
249 |
deleted file mode 100644 |
250 |
index 610df78af69..00000000000 |
251 |
--- a/dev-db/lmdb/lmdb-0.9.26.ebuild |
252 |
+++ /dev/null |
253 |
@@ -1,75 +0,0 @@ |
254 |
-# Copyright 1999-2021 Gentoo Authors |
255 |
-# Distributed under the terms of the GNU General Public License v2 |
256 |
- |
257 |
-EAPI=7 |
258 |
-inherit flag-o-matic multilib-minimal toolchain-funcs |
259 |
- |
260 |
-MY_P="${PN^^}_${PV}" |
261 |
- |
262 |
-DESCRIPTION="An ultra-fast, ultra-compact key-value embedded data store" |
263 |
-HOMEPAGE="https://symas.com/lmdb/technical/" |
264 |
-SRC_URI="https://git.openldap.org/openldap/openldap/-/archive/${MY_P}/openldap-${MY_P}.tar.gz" |
265 |
- |
266 |
-LICENSE="OPENLDAP" |
267 |
-SLOT="0/${PV}" |
268 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" |
269 |
-IUSE="static-libs" |
270 |
- |
271 |
-DEPEND="" |
272 |
-RDEPEND="" |
273 |
- |
274 |
-S="${WORKDIR}/openldap-${MY_P}/libraries/liblmdb" |
275 |
- |
276 |
-src_prepare() { |
277 |
- default |
278 |
- if [[ ${CHOST} == *-darwin* && ${CHOST#*-darwin} -lt 10 ]] ; then |
279 |
- # posix_memalign isn't available before 10.6, but on OSX |
280 |
- # malloc is always aligned for any addressable type |
281 |
- sed -i -e '/(__APPLE__)/a#define HAVE_MEMALIGN 1\n#define memalign(X,Y) malloc(X)' mdb.c || die |
282 |
- fi |
283 |
- multilib_copy_sources |
284 |
-} |
285 |
- |
286 |
-multilib_src_configure() { |
287 |
- local soname="-Wl,-soname,liblmdb$(get_libname 0)" |
288 |
- if [[ ${CHOST} == *-darwin* ]] ; then |
289 |
- soname="-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/liblmdb$(get_libname 0)" |
290 |
- replace-flags -O[123456789] -O1 |
291 |
- fi |
292 |
- sed -i -e "s!^CC.*!CC = $(tc-getCC)!" \ |
293 |
- -e "s!^CFLAGS.*!CFLAGS = ${CFLAGS}!" \ |
294 |
- -e "s!^AR.*!AR = $(tc-getAR)!" \ |
295 |
- -e "s!^SOEXT.*!SOEXT = $(get_libname)!" \ |
296 |
- -e "/^prefix/s!/usr/local!${EPREFIX}/usr!" \ |
297 |
- -e "/^libdir/s!lib\$!$(get_libdir)!" \ |
298 |
- -e "s!shared!shared ${soname}!" \ |
299 |
- "Makefile" || die |
300 |
- |
301 |
- if [[ ${CHOST} == *-solaris* ]] ; then |
302 |
- # fdatasync lives in -lrt on Solaris 10 |
303 |
- [[ ${CHOST#*-solaris2.} -le 10 ]] && append-ldflags -lrt |
304 |
- fi |
305 |
-} |
306 |
- |
307 |
-multilib_src_compile() { |
308 |
- emake LDLIBS+=" -pthread" |
309 |
-} |
310 |
- |
311 |
-multilib_src_install() { |
312 |
- emake DESTDIR="${D}" install |
313 |
- |
314 |
- mv "${ED}"/usr/$(get_libdir)/liblmdb$(get_libname) \ |
315 |
- "${ED}"/usr/$(get_libdir)/liblmdb$(get_libname 0) || die |
316 |
- dosym liblmdb$(get_libname 0) /usr/$(get_libdir)/liblmdb$(get_libname) |
317 |
- |
318 |
- insinto /usr/$(get_libdir)/pkgconfig |
319 |
- doins "${FILESDIR}/lmdb.pc" |
320 |
- sed -i -e "s!@PACKAGE_VERSION@!${PV}!" \ |
321 |
- -e "s!@prefix@!${EPREFIX}/usr!g" \ |
322 |
- -e "s!@libdir@!$(get_libdir)!" \ |
323 |
- "${ED}"/usr/$(get_libdir)/pkgconfig/lmdb.pc || die |
324 |
- |
325 |
- if ! use static-libs; then |
326 |
- rm "${ED}"/usr/$(get_libdir)/liblmdb.a || die |
327 |
- fi |
328 |
-} |
329 |
|
330 |
diff --git a/dev-db/lmdb/lmdb-0.9.27.ebuild b/dev-db/lmdb/lmdb-0.9.27.ebuild |
331 |
deleted file mode 100644 |
332 |
index 610df78af69..00000000000 |
333 |
--- a/dev-db/lmdb/lmdb-0.9.27.ebuild |
334 |
+++ /dev/null |
335 |
@@ -1,75 +0,0 @@ |
336 |
-# Copyright 1999-2021 Gentoo Authors |
337 |
-# Distributed under the terms of the GNU General Public License v2 |
338 |
- |
339 |
-EAPI=7 |
340 |
-inherit flag-o-matic multilib-minimal toolchain-funcs |
341 |
- |
342 |
-MY_P="${PN^^}_${PV}" |
343 |
- |
344 |
-DESCRIPTION="An ultra-fast, ultra-compact key-value embedded data store" |
345 |
-HOMEPAGE="https://symas.com/lmdb/technical/" |
346 |
-SRC_URI="https://git.openldap.org/openldap/openldap/-/archive/${MY_P}/openldap-${MY_P}.tar.gz" |
347 |
- |
348 |
-LICENSE="OPENLDAP" |
349 |
-SLOT="0/${PV}" |
350 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" |
351 |
-IUSE="static-libs" |
352 |
- |
353 |
-DEPEND="" |
354 |
-RDEPEND="" |
355 |
- |
356 |
-S="${WORKDIR}/openldap-${MY_P}/libraries/liblmdb" |
357 |
- |
358 |
-src_prepare() { |
359 |
- default |
360 |
- if [[ ${CHOST} == *-darwin* && ${CHOST#*-darwin} -lt 10 ]] ; then |
361 |
- # posix_memalign isn't available before 10.6, but on OSX |
362 |
- # malloc is always aligned for any addressable type |
363 |
- sed -i -e '/(__APPLE__)/a#define HAVE_MEMALIGN 1\n#define memalign(X,Y) malloc(X)' mdb.c || die |
364 |
- fi |
365 |
- multilib_copy_sources |
366 |
-} |
367 |
- |
368 |
-multilib_src_configure() { |
369 |
- local soname="-Wl,-soname,liblmdb$(get_libname 0)" |
370 |
- if [[ ${CHOST} == *-darwin* ]] ; then |
371 |
- soname="-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/liblmdb$(get_libname 0)" |
372 |
- replace-flags -O[123456789] -O1 |
373 |
- fi |
374 |
- sed -i -e "s!^CC.*!CC = $(tc-getCC)!" \ |
375 |
- -e "s!^CFLAGS.*!CFLAGS = ${CFLAGS}!" \ |
376 |
- -e "s!^AR.*!AR = $(tc-getAR)!" \ |
377 |
- -e "s!^SOEXT.*!SOEXT = $(get_libname)!" \ |
378 |
- -e "/^prefix/s!/usr/local!${EPREFIX}/usr!" \ |
379 |
- -e "/^libdir/s!lib\$!$(get_libdir)!" \ |
380 |
- -e "s!shared!shared ${soname}!" \ |
381 |
- "Makefile" || die |
382 |
- |
383 |
- if [[ ${CHOST} == *-solaris* ]] ; then |
384 |
- # fdatasync lives in -lrt on Solaris 10 |
385 |
- [[ ${CHOST#*-solaris2.} -le 10 ]] && append-ldflags -lrt |
386 |
- fi |
387 |
-} |
388 |
- |
389 |
-multilib_src_compile() { |
390 |
- emake LDLIBS+=" -pthread" |
391 |
-} |
392 |
- |
393 |
-multilib_src_install() { |
394 |
- emake DESTDIR="${D}" install |
395 |
- |
396 |
- mv "${ED}"/usr/$(get_libdir)/liblmdb$(get_libname) \ |
397 |
- "${ED}"/usr/$(get_libdir)/liblmdb$(get_libname 0) || die |
398 |
- dosym liblmdb$(get_libname 0) /usr/$(get_libdir)/liblmdb$(get_libname) |
399 |
- |
400 |
- insinto /usr/$(get_libdir)/pkgconfig |
401 |
- doins "${FILESDIR}/lmdb.pc" |
402 |
- sed -i -e "s!@PACKAGE_VERSION@!${PV}!" \ |
403 |
- -e "s!@prefix@!${EPREFIX}/usr!g" \ |
404 |
- -e "s!@libdir@!$(get_libdir)!" \ |
405 |
- "${ED}"/usr/$(get_libdir)/pkgconfig/lmdb.pc || die |
406 |
- |
407 |
- if ! use static-libs; then |
408 |
- rm "${ED}"/usr/$(get_libdir)/liblmdb.a || die |
409 |
- fi |
410 |
-} |