summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2018-04-22 06:38:53 +0200
committerHans de Graaff <graaff@gentoo.org>2018-04-22 11:36:47 +0200
commitc3bf67f8251a1bf322154cb0968d59f26cfffb6d (patch)
tree35d5ab2737dae86e6b10a304d5befc3fa6506fe0 /dev-ruby/hiredis
parentsys-apps/ethtool: arm stable wrt bug #653174 (diff)
downloadgentoo-c3bf67f8251a1bf322154cb0968d59f26cfffb6d.tar.gz
gentoo-c3bf67f8251a1bf322154cb0968d59f26cfffb6d.tar.bz2
gentoo-c3bf67f8251a1bf322154cb0968d59f26cfffb6d.zip
dev-ruby/hiredis: use proper tmp directory for tests
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-ruby/hiredis')
-rw-r--r--dev-ruby/hiredis/hiredis-0.6.1.ebuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/dev-ruby/hiredis/hiredis-0.6.1.ebuild b/dev-ruby/hiredis/hiredis-0.6.1.ebuild
index 629b022d9658..c41f5f6a8a25 100644
--- a/dev-ruby/hiredis/hiredis-0.6.1.ebuild
+++ b/dev-ruby/hiredis/hiredis-0.6.1.ebuild
@@ -28,6 +28,10 @@ RUBY_S="${MY_P}"
PATCHES=( "${FILESDIR}/${P}-unvendor-hiredis.patch" )
+all_ruby_prepare() {
+ sed -i -e 's:/tmp/:'${T}'/:' test/connection_test.rb || die
+}
+
each_ruby_configure() {
CC=$(tc-getCC) ${RUBY} -Cext/hiredis_ext extconf.rb || die
}