blob: b9e5255c12e850948d50522e33a2cc36efc81b71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
USE_RUBY="ruby21 ruby22 ruby23"
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
# All tests require live database servers
RUBY_FAKEGEM_RECIPE_TEST="none"
# The binary wrappers are already provided by freetds.
RUBY_FAKEGEM_BINWRAP=""
RUBY_FAKEGEM_EXTRAINSTALL="VERSION"
inherit ruby-fakegem
DESCRIPTION="A modern, simple and fast FreeTDS library for Ruby using DB-Library"
HOMEPAGE="https://github.com/rails-sqlserver/tiny_tds"
LICENSE="MIT"
SLOT="1"
KEYWORDS="~amd64"
IUSE=""
RDEPEND+=">=dev-db/freetds-0.95"
DEPEND+=">=dev-db/freetds-0.95"
ruby_add_bdepend "dev-ruby/mini_portile2"
all_ruby_prepare() {
sed -i -e '/bundler/I s:^:#:' test/test_helper.rb || die
}
each_ruby_configure() {
${RUBY} -Cext/tiny_tds extconf.rb || die
}
each_ruby_compile() {
emake V=1 -Cext/tiny_tds
cp ext/tiny_tds/tiny_tds.so lib/tiny_tds/ || die
}
|