1 |
commit: a33db0173c8be4e192c2c136950548c4e358e12c |
2 |
Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Nov 26 21:57:51 2015 +0000 |
4 |
Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 26 21:57:51 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a33db017 |
7 |
|
8 |
dev-libs/jemalloc - version bump 4.0.4, makor bug fixes |
9 |
|
10 |
dev-libs/jemalloc/Manifest | 1 + |
11 |
dev-libs/jemalloc/jemalloc-4.0.4.ebuild | 50 +++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 51 insertions(+) |
13 |
|
14 |
diff --git a/dev-libs/jemalloc/Manifest b/dev-libs/jemalloc/Manifest |
15 |
index 2c6c514..005eea5 100644 |
16 |
--- a/dev-libs/jemalloc/Manifest |
17 |
+++ b/dev-libs/jemalloc/Manifest |
18 |
@@ -1,3 +1,4 @@ |
19 |
DIST jemalloc-2.2.5.tar.bz2 224118 SHA256 efcc9636757bd7f53a0fde084c2988bfe26f2868e435447f2d41ac42c0b3521e SHA512 56a29dc7dca66c41d2934731c4bc756de5b58bf707dc2ebcf8515be400ce25e372af6526035117cad5b1964b9ba040ab7178f4c28c1649e86dcb53c3ec884a9d WHIRLPOOL e88fc56ac9db024483196d62e870fe4981d1d02fbf5e3819da504568cc58c8f246df668bb3dfe70ad2d551671577c18d5e6432e60bb3107296e6faad7cd8595c |
20 |
DIST jemalloc-3.3.1.tar.bz2 252997 SHA256 35c433cc1df5cdf9eb58b7980338552fc1d7aa64f89fe5643a972ccedb7cf20a SHA512 32814e8678af4954e26c0c0a0e5d06aba8f3844205fe212c5e41929dfab6a94ff11127a9238b5c18d72749827c467ecb874b8f3a9bc161cf1afdf4ea84c58690 WHIRLPOOL 35e8948e18ea7111ae830a8245be995b35f44ed2c2f687f706ee6941c78350c2cfaabefba223c4433069de47a9f92d621feaf176ec0c728e513e5f076e5fc874 |
21 |
DIST jemalloc-3.6.0.tar.bz2 338964 SHA256 e16c2159dd3c81ca2dc3b5c9ef0d43e1f2f45b04548f42db12e7c12d7bdf84fe SHA512 ebe7c64558a87a735b5906d5cb7527c241664eeae7328538675a12eabe7a1004be0f8766a3bd2a78e61334b196ca7ffc0ee8b8ff59167922a35f126cd1e76e43 WHIRLPOOL d5452005951b10d9d529349481779d79361ec8d8ac1f36f4b54408b5e0184f35d79fee8378188d98f1b8e41ae13557a2cf41ab849b68856ba69f33870fe6e980 |
22 |
+DIST jemalloc-4.0.4.tar.bz2 391483 SHA256 3fda8d8d7fcd041aa0bebbecd45c46b28873cf37bd36c56bf44961b36d0f42d0 SHA512 93be0551a80d5f5dc3a1044ef3d5f06c5ce65f3c1fd753743ee64340b841fc2d7902178774ab71eaa633f68abad44109870eb84159679fdc8ce6d93db3a53112 WHIRLPOOL c8bc1a81555b30ff519fda90bfbcfcdb6c9e370ba7478bca17058e58e08c36d20a1995ab12d5374d4edb9cdd2469748517a6f1795a24667c5f798c4c0c756a9c |
23 |
|
24 |
diff --git a/dev-libs/jemalloc/jemalloc-4.0.4.ebuild b/dev-libs/jemalloc/jemalloc-4.0.4.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..e287200 |
27 |
--- /dev/null |
28 |
+++ b/dev-libs/jemalloc/jemalloc-4.0.4.ebuild |
29 |
@@ -0,0 +1,50 @@ |
30 |
+# Copyright 1999-2014 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=5 |
35 |
+ |
36 |
+inherit autotools-multilib eutils |
37 |
+ |
38 |
+DESCRIPTION="Jemalloc is a general-purpose scalable concurrent allocator" |
39 |
+HOMEPAGE="http://www.canonware.com/jemalloc/" |
40 |
+SRC_URI="http://www.canonware.com/download/${PN}/${P}.tar.bz2" |
41 |
+ |
42 |
+LICENSE="BSD" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86 ~x64-macos" |
45 |
+IUSE="debug static-libs stats" |
46 |
+HTML_DOCS=( doc/jemalloc.html ) |
47 |
+PATCHES=( "${FILESDIR}/${PN}-3.5.1-strip-optimization.patch" |
48 |
+ "${FILESDIR}/${PN}-3.5.1_fix_html_install.patch" |
49 |
+) |
50 |
+MULTILIB_WRAPPED_HEADERS=( /usr/include/jemalloc/jemalloc.h ) |
51 |
+# autotools-utils.eclass auto-adds configure options when static-libs is in IUSE |
52 |
+# but jemalloc doesn't implement them in its configure; need this here to |
53 |
+# supress the warnings until automagic is removed from the eclass |
54 |
+QA_CONFIGURE_OPTIONS="--enable-static --disable-static --enable-shared --disable-shared" |
55 |
+src_configure() { |
56 |
+ myeconfargs=( |
57 |
+ $(use_enable debug) |
58 |
+ $(use_enable stats) |
59 |
+ ) |
60 |
+ autotools-multilib_src_configure |
61 |
+} |
62 |
+ |
63 |
+multilib_src_install() { |
64 |
+ # Copy man file which the Makefile looks for |
65 |
+ cp "${S}/doc/jemalloc.3" "${BUILD_DIR}/doc" || die |
66 |
+ emake DESTDIR="${D}" install |
67 |
+} |
68 |
+ |
69 |
+src_install() { |
70 |
+ autotools-multilib_src_install |
71 |
+ |
72 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
73 |
+ # fixup install_name, #437362 |
74 |
+ install_name_tool \ |
75 |
+ -id "${EPREFIX}"/usr/$(get_libdir)/libjemalloc.1.dylib \ |
76 |
+ "${ED}"/usr/$(get_libdir)/libjemalloc.1.dylib || die |
77 |
+ fi |
78 |
+ use static-libs || find "${ED}" -name '*.a' -delete |
79 |
+} |