1 |
commit: 749c2aebe946f093d6f4f9a6a36620436c1d9e68 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 7 20:23:03 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 7 20:25:54 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=749c2aeb |
7 |
|
8 |
dev-libs/jemalloc: bump to v5.2.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.71, Repoman-2.3.17 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
dev-libs/jemalloc/Manifest | 1 + |
14 |
dev-libs/jemalloc/jemalloc-5.2.1.ebuild | 61 +++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 62 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/jemalloc/Manifest b/dev-libs/jemalloc/Manifest |
18 |
index ff71053391b..1aaaa316504 100644 |
19 |
--- a/dev-libs/jemalloc/Manifest |
20 |
+++ b/dev-libs/jemalloc/Manifest |
21 |
@@ -4,3 +4,4 @@ DIST jemalloc-4.5.0.tar.bz2 449992 BLAKE2B 6141c71f7f5f9cee91a59eeed9c69b0a69b3c |
22 |
DIST jemalloc-5.0.1.tar.bz2 499300 BLAKE2B 551933fcd93315968cbf89bfadc40313717ff216141af8a131f2333d10090438ddf36fbfdc0ee831cbec6f930ae15aa9cfaafae72ed4f38dd97b00712ca918e8 SHA512 8cb5957a5724eb2bbad120cf0028ea8b2b14b4a416c1751b7c967351a7fd51135058ea0d3c4dc1d127c86f3aa7e9fd5ef101857110aabfdb7789427791c432c3 |
23 |
DIST jemalloc-5.1.0.tar.bz2 515622 BLAKE2B 3c8b35d30fca0018e3e32452e6fa41c7ac59f9f2f7d4bc243237fde95025ab5a7562fb86b5afe2ca9b7bb072f7baf6ac7589a4862d9ebaafddae187d93e20da0 SHA512 d9abebe54d303ca931b8c31c1033f23ff5fb060f2377ec8386f4d79c352e65c78ed34f680c352dac14f7d7115d10245782d553d988bc13df2eb34a2f0942ef6f |
24 |
DIST jemalloc-5.2.0.tar.bz2 543892 BLAKE2B 042dd32452713d0524ae8aedbd3aa96a420037ae3ff0345bbf56a7839ae6ba9e0c700034fab9d5c7b6f4cbb43e2d8199b412901afce16c2785a816d439166e6d SHA512 e3be4d534770126caf10f2684aed9fe4ba1422dd47625fe50343cfb750f26eff869fcc7d1e30a96dd6c73f6614c4bbcd560fd24fc26b55ac731c43e60fd05234 |
25 |
+DIST jemalloc-5.2.1.tar.bz2 554279 BLAKE2B 52cb8cd5e5807a750a7e5e9ee005afd61144d821d7f7029a5eca998fd61787a7271338dee3de586ddf93f5fdbddc2c2ca03ba64375a70096f273a6aa173da431 SHA512 0bbb77564d767cef0c6fe1b97b705d368ddb360d55596945aea8c3ba5889fbce10479d85ad492c91d987caacdbbdccc706aa3688e321460069f00c05814fae02 |
26 |
|
27 |
diff --git a/dev-libs/jemalloc/jemalloc-5.2.1.ebuild b/dev-libs/jemalloc/jemalloc-5.2.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..3e82a451db0 |
30 |
--- /dev/null |
31 |
+++ b/dev-libs/jemalloc/jemalloc-5.2.1.ebuild |
32 |
@@ -0,0 +1,61 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="7" |
37 |
+ |
38 |
+inherit autotools toolchain-funcs multilib-minimal |
39 |
+ |
40 |
+DESCRIPTION="Jemalloc is a general-purpose scalable concurrent allocator" |
41 |
+HOMEPAGE="http://jemalloc.net/ https://github.com/jemalloc/jemalloc" |
42 |
+SRC_URI="https://github.com/jemalloc/jemalloc/releases/download/${PV}/${P}.tar.bz2" |
43 |
+ |
44 |
+LICENSE="BSD" |
45 |
+SLOT="0/2" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris" |
47 |
+IUSE="debug hardened lazy-lock prof static-libs stats xmalloc" |
48 |
+HTML_DOCS=( doc/jemalloc.html ) |
49 |
+PATCHES=( "${FILESDIR}/${PN}-5.2.0-gentoo-fixups.patch" ) |
50 |
+ |
51 |
+MULTILIB_WRAPPED_HEADERS=( /usr/include/jemalloc/jemalloc.h ) |
52 |
+# autotools-utils.eclass auto-adds configure options when static-libs is in IUSE |
53 |
+# but jemalloc doesn't implement them in its configure; need this here to |
54 |
+# supress the warnings until automagic is removed from the eclass |
55 |
+QA_CONFIGURE_OPTIONS="--enable-static --disable-static --enable-shared --disable-shared" |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ default |
59 |
+ eautoreconf |
60 |
+} |
61 |
+ |
62 |
+multilib_src_configure() { |
63 |
+ local myconf=() |
64 |
+ |
65 |
+ if use hardened ; then |
66 |
+ myconf+=( --disable-syscall ) |
67 |
+ fi |
68 |
+ |
69 |
+ ECONF_SOURCE="${S}" \ |
70 |
+ econf \ |
71 |
+ $(use_enable debug) \ |
72 |
+ $(use_enable lazy-lock) \ |
73 |
+ $(use_enable prof) \ |
74 |
+ $(use_enable stats) \ |
75 |
+ $(use_enable xmalloc) \ |
76 |
+ "${myconf[@]}" |
77 |
+} |
78 |
+ |
79 |
+multilib_src_install() { |
80 |
+ # Copy man file which the Makefile looks for |
81 |
+ cp "${S}/doc/jemalloc.3" "${BUILD_DIR}/doc" || die |
82 |
+ emake DESTDIR="${D}" install |
83 |
+} |
84 |
+ |
85 |
+multilib_src_install_all() { |
86 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
87 |
+ # fixup install_name, #437362 |
88 |
+ install_name_tool \ |
89 |
+ -id "${EPREFIX}"/usr/$(get_libdir)/libjemalloc.2.dylib \ |
90 |
+ "${ED}"/usr/$(get_libdir)/libjemalloc.2.dylib || die |
91 |
+ fi |
92 |
+ use static-libs || find "${ED}" -name '*.a' -delete |
93 |
+} |