public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Petr Vaněk" <arkamar@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/hiredis/
Date: Fri, 19 Apr 2024 09:37:13 +0000 (UTC)	[thread overview]
Message-ID: <1713519348.d108c3e245ad060e3f1777ef3b3b97ac25c5b4dd.arkamar@gentoo> (raw)

commit:     d108c3e245ad060e3f1777ef3b3b97ac25c5b4dd
Author:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 19 09:34:15 2024 +0000
Commit:     Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Fri Apr 19 09:35:48 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d108c3e2

dev-libs/hiredis: add 1.2.0

Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>

 dev-libs/hiredis/Manifest             |  1 +
 dev-libs/hiredis/hiredis-1.2.0.ebuild | 96 +++++++++++++++++++++++++++++++++++
 2 files changed, 97 insertions(+)

diff --git a/dev-libs/hiredis/Manifest b/dev-libs/hiredis/Manifest
index 171a4ffec6a0..54d9108948d7 100644
--- a/dev-libs/hiredis/Manifest
+++ b/dev-libs/hiredis/Manifest
@@ -1,2 +1,3 @@
 DIST hiredis-1.0.2.tar.gz 98139 BLAKE2B 86d872cfec3d4e925d5d68e4f4faf1301aa6d706bd0406a8080471e14afc2c25db13b9a0937d29baccd457611af8e46922b5379183c7470c9ae1860aac3af096 SHA512 86497a1c21869bbe535378885eee6dbd594ef96325966511a3513f81e501af0f5ac7fed864f3230372f3ac7a23c05bad477fa5aa90b9747c9fb1408028174f9b
 DIST hiredis-1.1.0.tar.gz 122002 BLAKE2B 74c23816e59ea241c68640f99970ae68536a1cd605ac1a7146bf52e355f5f74b3d39fb81be02741cf776c06b47b9d5acc7ec66bfdcf802dec3ed68fb28a82b1b SHA512 9dad012c144ed24de6aa413a3a10d19a9d0d9ece18dbc388406cd86c5b98cb66c76c586cb559c601ed13a75051d8921dc2882534cc3605513fde47d57276c3bb
+DIST hiredis-1.2.0.tar.gz 126216 BLAKE2B 3f0b74205fb4ceb42fb4c1700a9bf95cf2ad2d9880ee1f2da9cbed6096cde5e918b01465ce9d6ec1b29b5934cfa6ab41000ed344a9983cebe6bd1bf64ac0ede1 SHA512 f8984abb29c09e7e6b56e656616c5155f36c53da4161a2d4c85688486411cadcdf20aa1adb9bda208c500b401c750871be1c8d58ba9df5328634d00e9d1b6589

diff --git a/dev-libs/hiredis/hiredis-1.2.0.ebuild b/dev-libs/hiredis/hiredis-1.2.0.ebuild
new file mode 100644
index 000000000000..270f776b8fb1
--- /dev/null
+++ b/dev-libs/hiredis/hiredis-1.2.0.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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"
+# Always check "Upgrading from ..." in README
+# e.g. https://github.com/redis/hiredis#upgrading-to-110
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-solaris"
+IUSE="examples ssl static-libs test"
+RESTRICT="!test? ( test )"
+
+DEPEND="ssl? ( dev-libs/openssl:= )"
+RDEPEND="${DEPEND}"
+BDEPEND="
+	test? (
+		dev-db/redis
+		dev-libs/libevent
+	)
+"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-1.1.0-disable-network-tests.patch
+)
+
+src_prepare() {
+	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)" \
+		USE_SSL=$(usex ssl 1 0) \
+		TEST_ASYNC=$(usex test 1 0) \
+		DEBUG_FLAGS= \
+		OPTIMIZATION= \
+		"$@"
+}
+
+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{,_ssl}.pc
+}
+
+src_test() {
+	# Compare with https://github.com/redis/hiredis/blob/648763c36e9f6493b13a77da35eb33ef0652b4e2/Makefile#L32
+	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
+
+	"${EPREFIX}"/usr/sbin/redis-server - <<< "${REDIS_TEST_CONFIG}" || die
+	./hiredis-test -h 127.0.0.1 -p ${REDIS_PORT} -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
+		find "${ED}" -name '*.a' -delete || die
+	fi
+
+	insinto /usr/$(get_libdir)/pkgconfig
+	doins ${PN}.pc
+
+	local DOCS=( CHANGELOG.md README.md )
+	use examples && DOCS+=( examples )
+	einstalldocs
+}


             reply	other threads:[~2024-04-19  9:37 UTC|newest]

Thread overview: 75+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-19  9:37 Petr Vaněk [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
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-10-26  9:50 Michał Górny
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=1713519348.d108c3e245ad060e3f1777ef3b3b97ac25c5b4dd.arkamar@gentoo \
    --to=arkamar@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