From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3781F1382C5 for ; Fri, 2 Mar 2018 06:39:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5799AE08F6; Fri, 2 Mar 2018 06:39:32 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 244B7E08F6 for ; Fri, 2 Mar 2018 06:39:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 53729335C34 for ; Fri, 2 Mar 2018 06:39:30 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B132D21C for ; Fri, 2 Mar 2018 06:39:27 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1519972749.9d26e5847f30f90c37ec934a967bbcb02e87d162.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/ruby-odbc/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/ruby-odbc/Manifest dev-ruby/ruby-odbc/ruby-odbc-0.99999.ebuild X-VCS-Directories: dev-ruby/ruby-odbc/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 9d26e5847f30f90c37ec934a967bbcb02e87d162 X-VCS-Branch: master Date: Fri, 2 Mar 2018 06:39:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: bd14598a-042d-4878-969a-b951dbb7f03c X-Archives-Hash: d684f0b40ecf248afafc7047c481c6f4 commit: 9d26e5847f30f90c37ec934a967bbcb02e87d162 Author: Hans de Graaff gentoo org> AuthorDate: Fri Mar 2 06:30:41 2018 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Fri Mar 2 06:39:09 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d26e584 dev-ruby/ruby-odbc: add 0.99999 Package-Manager: Portage-2.3.19, Repoman-2.3.6 dev-ruby/ruby-odbc/Manifest | 1 + dev-ruby/ruby-odbc/ruby-odbc-0.99999.ebuild | 61 +++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/dev-ruby/ruby-odbc/Manifest b/dev-ruby/ruby-odbc/Manifest index df314a08d17..cd930561fb8 100644 --- a/dev-ruby/ruby-odbc/Manifest +++ b/dev-ruby/ruby-odbc/Manifest @@ -1,2 +1,3 @@ DIST ruby-odbc-0.99997.tar.gz 76708 BLAKE2B d122e7f2cccd305731ba598ca684761daab288903e0f3866735b2672f20a9c6b55ed74d768bd4f79a03e0d743b4dff4704f465e58ed331ce37762ba9f7c1e871 SHA512 15ea850efa9f65467ea829c93f7dc9ecbef9409876b19d0a309d085b20e711da2888b918f77fcd26e6a40096358eab836d6bc3000c534da88f4f3c2b60a8662a DIST ruby-odbc-0.99998.tar.gz 76810 BLAKE2B 97422dcd52bafad196fe9ccc7005c1ceae31649231fb62ccb00e45ccecbf46e9c679ff4ef905364b1fa05062aba9054d8c1b89025323b220a0c9893c22fd5fd0 SHA512 c983ca10cd21255d2a927deaac9c4689251f1149cc3c5b0b2a5578d5abdf2eb030a0bd726761eeb07abfb470e611316239de899d4739f4a380a598f4e0881f57 +DIST ruby-odbc-0.99999.tar.gz 76934 BLAKE2B 59de5a544b7eefe8e181f2c6a9a61915361743ef5f7554f778667b50ca0dc57fd0c4f71e406ad6f1d00fb2c6a6509030e61ad34dddecff61896f7bfe383d0a9b SHA512 05e3e67a895406e1a57fbea6f8ecd1c087d836794ea3245bd9eec888eb3c46fa2bf2607cc1b8fdc416d7bc531d783d621c03c9fde004db8c2e431fe838c531af diff --git a/dev-ruby/ruby-odbc/ruby-odbc-0.99999.ebuild b/dev-ruby/ruby-odbc/ruby-odbc-0.99999.ebuild new file mode 100644 index 00000000000..85f714bda62 --- /dev/null +++ b/dev-ruby/ruby-odbc/ruby-odbc-0.99999.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby22 ruby23 ruby24 ruby25" + +RUBY_FAKEGEM_TASK_TEST="" +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="README ChangeLog" + +inherit ruby-fakegem + +DESCRIPTION="RubyODBC - For accessing ODBC data sources from the Ruby language" +HOMEPAGE="http://www.ch-werner.de/rubyodbc/" +SRC_URI="http://www.ch-werner.de/rubyodbc/${P}.tar.gz" + +LICENSE="|| ( GPL-2 Ruby )" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND="${DEPEND} >=dev-db/unixODBC-2.0.6" +RDEPEND="${RDEPEND} >=dev-db/unixODBC-2.0.6" + +# tests require to have an ODBC service enabled, so we can't run them +# for now :( +RESTRICT=test + +all_ruby_prepare() { + # Make sure that it doesn't try to use the absolute-local path for + # the extension as we'd be unable to run it properly otherwise. + sed -i -e 's:\./odbc:odbc:' test/{,utf8/}test.rb || die + + # Since lib should not get installed avoid it entirely… + mv lib contrib || die +} + +each_ruby_configure() { + for dir in ext ext/utf8; do + ${RUBY} -C${dir} extconf.rb --disable-dlopen || die "extconf (${dir}) failed" + done +} + +each_ruby_compile() { + for dir in ext ext/utf8; do + emake V=1 -C${dir} || die "emake (${dir}) failed" + done +} + +each_ruby_install() { + each_fakegem_install + + ruby_fakegem_newins ext/odbc.so lib/odbc.so + ruby_fakegem_newins ext/utf8/odbc_utf8.so lib/odbc_utf8.so +} + +all_ruby_install() { + all_fakegem_install + dohtml doc/*.html || die +}