commit:     6619f02ee869956e506f7fa7174e0fce2691062f
Author:     Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 13 18:13:21 2016 +0000
Commit:     Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Tue Dec 13 18:13:21 2016 +0000
URL:        https://gitweb.gentoo.org/proj/mozilla.git/commit/?id=6619f02e

dev-libs/jemalloc - new features, misc bug fixes

 dev-libs/jemalloc/Manifest                             |  2 +-
 .../{jemalloc-4.2.1.ebuild => jemalloc-4.4.0.ebuild}   | 18 +++++++++++++-----
 2 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/dev-libs/jemalloc/Manifest b/dev-libs/jemalloc/Manifest
index a281dc1..6489b88 100644
--- a/dev-libs/jemalloc/Manifest
+++ b/dev-libs/jemalloc/Manifest
@@ -1 +1 @@
-DIST jemalloc-4.2.1.tar.bz2 431132 SHA256 
5630650d5c1caab95d2f0898de4fe5ab8519dc680b04963b38bb425ef6a42d57 SHA512 
a0bbf2150371bf31b386c668bc636a56e82145a8a81586d0898cdeed707bf1b694e777ea2afba521584998a60663bb4734e8a83697a337ea13e6ade4de737c18
 WHIRLPOOL 
2fd0dd55184eef49329dfff40ef1fc4bce8304e52f0fd0e11fa6bd380a93206d600d8ff3bb1ac442fcab7ecdda2a1ac56cb68f30bb70bc1ced0f54e835ca9bef
+DIST jemalloc-4.4.0.tar.bz2 440144 SHA256 
a7aea63e9718d2f1adf81d87e3df3cb1b58deb86fc77bad5d702c4c59687b033 SHA512 
2f88fb17ede3bf87e334e9c80949870e0dd85b5adcdd89a1750ccf6df5240f35293159ac0a360d3a29cf0b1d17edf86dcc7997c6bf3190ae7da7442d3a3cc14e
 WHIRLPOOL 
1485ce6cf08ee2233117e281d1a61f376d2b6c73f28c68f2cc1956471bcb56a4eef045c0011de141b669d94d7339de5e79860f6b21bfbeffab821d5eb528759c

diff --git a/dev-libs/jemalloc/jemalloc-4.2.1.ebuild 
b/dev-libs/jemalloc/jemalloc-4.4.0.ebuild
similarity index 82%
rename from dev-libs/jemalloc/jemalloc-4.2.1.ebuild
rename to dev-libs/jemalloc/jemalloc-4.4.0.ebuild
index 8c320ea..8e5b179 100644
--- a/dev-libs/jemalloc/jemalloc-4.2.1.ebuild
+++ b/dev-libs/jemalloc/jemalloc-4.4.0.ebuild
@@ -8,12 +8,12 @@ inherit toolchain-funcs multilib-build
 
 DESCRIPTION="Jemalloc is a general-purpose scalable concurrent allocator"
 HOMEPAGE="http://www.canonware.com/jemalloc/";
-SRC_URI="http://www.canonware.com/download/${PN}/${P}.tar.bz2";
+SRC_URI="https://github.com/jemalloc/jemalloc/releases/download/${PV}/${P}.tar.bz2";
 
 LICENSE="BSD"
 SLOT="0/2"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~x86 
~amd64-linux ~x86-linux ~x64-macos"
-IUSE="debug static-libs stats"
+IUSE="debug hardened static-libs stats"
 HTML_DOCS=( doc/jemalloc.html )
 PATCHES=( "${FILESDIR}/${PN}-3.5.1-strip-optimization.patch"
        "${FILESDIR}/${PN}-3.5.1_fix_html_install.patch"
@@ -25,9 +25,17 @@ MULTILIB_WRAPPED_HEADERS=( /usr/include/jemalloc/jemalloc.h )
 QA_CONFIGURE_OPTIONS="--enable-static --disable-static --enable-shared 
--disable-shared"
 
 multilib_src_configure() {
-       ECONF_SOURCE="${S}" econf \
-               $(use_enable debug)
-               $(use_enable stats)
+       local myconf=()
+
+       if use hardened ; then
+               myconf+=( --disable-syscall )
+       fi
+
+       ECONF_SOURCE="${S}" \
+       econf  \
+               $(use_enable debug) \
+               $(use_enable stats) \
+               "${myconf[@]}"
 }
 
 multilib_src_install() {

Reply via email to