public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/hiredis/
Date: Fri, 26 Oct 2018 09:50:07 +0000 (UTC)	[thread overview]
Message-ID: <1540547400.35a31490e10134dfacead33b97686749e61c6652.mgorny@gentoo> (raw)

commit:     35a31490e10134dfacead33b97686749e61c6652
Author:     Tomas Mozes <hydrapolic <AT> gmail <DOT> com>
AuthorDate: Thu Oct 25 07:16:54 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Oct 26 09:50:00 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35a31490

dev-libs/hiredis: bump to 0.14.0

Bug: https://bugs.gentoo.org/669484
Closes: https://bugs.gentoo.org/669554
Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Closes: https://github.com/gentoo/gentoo/pull/10223
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-libs/hiredis/Manifest              |  1 +
 dev-libs/hiredis/hiredis-0.14.0.ebuild | 78 ++++++++++++++++++++++++++++++++++
 2 files changed, 79 insertions(+)

diff --git a/dev-libs/hiredis/Manifest b/dev-libs/hiredis/Manifest
index a97852fe607..f34a3040d70 100644
--- a/dev-libs/hiredis/Manifest
+++ b/dev-libs/hiredis/Manifest
@@ -1 +1,2 @@
 DIST hiredis-0.13.3.tar.gz 58291 BLAKE2B 2af5853475a48b1f05c17100197633af61663a23a1259c702545938367b6a5b9fc09b886e12f57d27f23db3f5c636bb42d7e58887cc1481b7016cea405345ddb SHA512 0d8b71d5ee4105e8aaeeee308795afc2c1f60a04b0bfe8ae873d800a0c157882ec307efa04a8d0e63b538fd3fc3f88eedf4d46cb87c8937e2403927aeb7e434c
+DIST hiredis-0.14.0.tar.gz 63061 BLAKE2B 1923a63317f5f4a5bcbc9f8fd35e11fda15c30bb766d377f3be1eaf961cf34339e16b9b7c468b5bf07e513db4913c564e49eb29a2684b945db6c914b07d01905 SHA512 57a81a35b4750f0ca9dba830789483667f8ca1559f13b0ebdc3fab3e34ad16b2809f9734cf88157041263784e11447556b7a748bfb7ef318a60bb5dda3e358a0

diff --git a/dev-libs/hiredis/hiredis-0.14.0.ebuild b/dev-libs/hiredis/hiredis-0.14.0.ebuild
new file mode 100644
index 00000000000..ab120cee20d
--- /dev/null
+++ b/dev-libs/hiredis/hiredis-0.14.0.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit toolchain-funcs
+
+DESCRIPTION="Minimalistic C client library for the Redis database"
+HOMEPAGE="https://github.com/redis/hiredis"
+SRC_URI="https://github.com/redis/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/0.14"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd ~x64-solaris"
+IUSE="examples static-libs test"
+
+DEPEND="test? ( dev-db/redis )"
+
+src_prepare() {
+	local PATCHES=( "${FILESDIR}/${PN}-0.13.3-disable-network-tests.patch" )
+	default
+
+	# use GNU ld syntax on Solaris
+	sed -i -e '/DYLIB_MAKE_CMD=.* -G/d' Makefile || die
+}
+
+_build() {
+	emake \
+		AR="$(tc-getAR)" \
+		CC="$(tc-getCC)" \
+		PREFIX="${EPREFIX%/}/usr" \
+		LIBRARY_PATH="$(get_libdir)" \
+		ARCH= \
+		DEBUG= \
+		OPTIMIZATION="${CPPFLAGS}" \
+		"$@"
+}
+
+src_compile() {
+	# The static lib re-uses the same objects as the shared lib, so
+	# overhead is low w/creating it all the time.  It's also needed
+	# by the tests.
+	_build dynamic static hiredis.pc
+}
+
+src_test() {
+	local REDIS_PID="${T}"/hiredis.pid
+	local REDIS_SOCK="${T}"/hiredis.sock
+	local REDIS_PORT=56379
+	local REDIS_TEST_CONFIG="daemonize yes
+		pidfile ${REDIS_PID}
+		port ${REDIS_PORT}
+		bind 127.0.0.1
+		unixsocket //${REDIS_SOCK}"
+
+	_build hiredis-test
+
+	/usr/sbin/redis-server - <<< "${REDIS_TEST_CONFIG}" || die
+	./hiredis-test -h 127.0.0.1 -p ${REDIS_PID} -s ${REDIS_SOCK}
+	local ret=$?
+
+	kill "$(<"${REDIS_PID}")" || die
+	[ ${ret} != "0" ] && die "tests failed"
+}
+
+src_install() {
+	_build PREFIX="${ED%/}/usr" install
+	if ! use static-libs; then
+		rm "${ED%/}/usr/$(get_libdir)/libhiredis.a" || die
+	fi
+
+	insinto /usr/$(get_libdir)/pkgconfig
+	doins ${PN}.pc
+
+	local DOCS=( CHANGELOG.md README.md )
+	use examples && DOCS+=( examples )
+	einstalldocs
+}


             reply	other threads:[~2018-10-26  9:50 UTC|newest]

Thread overview: 75+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-26  9:50 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-29  3:51 [gentoo-commits] repo/gentoo:master commit in: dev-libs/hiredis/ Sam James
2024-08-29  3:15 Sam James
2024-05-19 23:10 Ionen Wolkens
2024-05-17 15:05 Arthur Zamarin
2024-04-20 11:23 Michał Górny
2024-04-19 11:43 Sam James
2024-04-19 10:43 Sam James
2024-04-19  9:57 Petr Vaněk
2024-04-19  9:37 Petr Vaněk
2024-04-19  9:37 Petr Vaněk
2023-08-17  6:22 Sam James
2023-03-04  7:51 Arthur Zamarin
2022-11-29 18:06 WANG Xuerui
2022-11-17  1:37 Sam James
2022-11-17  1:16 Sam James
2022-11-17  1:13 Sam James
2022-11-17  1:13 Sam James
2022-03-16  2:23 Sam James
2022-01-01  9:38 Sam James
2021-11-19  6:46 Arthur Zamarin
2021-11-19  6:46 Arthur Zamarin
2021-10-31  9:42 Sam James
2021-10-31  9:42 Sam James
2021-10-31  3:09 Sam James
2021-10-31  3:09 Sam James
2021-10-27  3:36 Sam James
2021-10-26 21:33 Sven Wegener
2021-10-26 13:30 Agostino Sarubbo
2021-10-26 13:28 Agostino Sarubbo
2021-10-26  3:16 Sam James
2021-10-26  3:16 Sam James
2021-10-26  3:16 Sam James
2021-10-05  4:09 Sam James
2021-07-26 15:45 Marek Szuba
2021-06-21 10:37 Sam James
2021-03-23  4:53 Sam James
2021-02-05  6:11 Sam James
2020-12-18 14:23 Sam James
2020-11-25 23:25 Sergei Trofimovich
2020-11-13 23:33 Sam James
2020-11-07 20:56 Sam James
2020-11-07 20:56 Sam James
2020-11-07 20:34 Sergei Trofimovich
2020-11-07 20:22 Sergei Trofimovich
2020-11-07 20:10 Sergei Trofimovich
2020-10-26 16:37 Thomas Deutschmann
2020-10-12 12:39 Joonas Niilola
2020-04-12  6:29 Joonas Niilola
2020-04-10 23:00 Thomas Deutschmann
2020-04-10 22:12 Thomas Deutschmann
2020-04-01 22:35 Mart Raudsepp
2020-03-23 18:07 Sergei Trofimovich
2020-03-23 11:04 Agostino Sarubbo
2020-03-22 10:43 Agostino Sarubbo
2020-03-22 10:37 Agostino Sarubbo
2020-03-22 10:30 Agostino Sarubbo
2020-03-21 16:25 Agostino Sarubbo
2020-03-21 16:20 Agostino Sarubbo
2020-03-21 16:19 Agostino Sarubbo
2020-03-20 20:23 Thomas Deutschmann
2018-06-08 11:10 Mikle Kolyada
2017-03-01 10:43 Michael Weber
2017-02-24 23:57 Michael Palimaka
2017-02-24 17:55 Markus Meier
2017-02-16 17:26 Agostino Sarubbo
2017-02-15 23:14 Michael Weber
2017-01-22  9:30 Tobias Klausmann
2017-01-14 12:26 Jeroen Roovers
2017-01-06  3:29 Aaron Bauman
2017-01-02 16:19 Pacho Ramos
2016-10-03 14:55 Jeroen Roovers
2016-10-03 12:15 Tobias Klausmann
2016-08-11 17:23 Michael Palimaka
2016-08-06 12:47 Pacho Ramos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1540547400.35a31490e10134dfacead33b97686749e61c6652.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox