diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:57:42 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:57:42 +0100 |
commit | 1798c4aeca70ac8d0a243684d6a798fbc65735f8 (patch) | |
tree | e48e19cb6fa03de18e1c63e1a93371b7ebc4eb56 /dev-libs/hiredis/hiredis-0.13.3.ebuild | |
parent | d87262dd706fec50cd150aab3e93883b6337466d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-libs/hiredis/hiredis-0.13.3.ebuild')
-rw-r--r-- | dev-libs/hiredis/hiredis-0.13.3.ebuild | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/dev-libs/hiredis/hiredis-0.13.3.ebuild b/dev-libs/hiredis/hiredis-0.13.3.ebuild deleted file mode 100644 index f9c5caf202ac..000000000000 --- a/dev-libs/hiredis/hiredis-0.13.3.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -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.13" -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 -} |