From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A30B01381F3 for ; Tue, 2 Jul 2013 12:54:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3521AE0AC1; Tue, 2 Jul 2013 12:54:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 828AAE0AA6 for ; Tue, 2 Jul 2013 12:54:26 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3CAC333E85F for ; Tue, 2 Jul 2013 12:54:24 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 86A9EE5459 for ; Tue, 2 Jul 2013 12:54:23 +0000 (UTC) From: "Tiziano Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Tiziano Müller" Message-ID: <1372769637.8fb451db4efad0f176d2af94567de0c1357f7bc8.dev-zero@gentoo> Subject: [gentoo-commits] dev/dev-zero:master commit in: dev-ruby/charlock_holmes/files/, dev-ruby/charlock_holmes/ X-VCS-Repository: dev/dev-zero X-VCS-Files: dev-ruby/charlock_holmes/Manifest dev-ruby/charlock_holmes/charlock_holmes-0.6.8.ebuild dev-ruby/charlock_holmes/files/extconf.patch X-VCS-Directories: dev-ruby/charlock_holmes/files/ dev-ruby/charlock_holmes/ X-VCS-Committer: dev-zero X-VCS-Committer-Name: Tiziano Müller X-VCS-Revision: 8fb451db4efad0f176d2af94567de0c1357f7bc8 X-VCS-Branch: master Date: Tue, 2 Jul 2013 12:54:23 +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: e5de1d6c-70e4-411b-8cf6-26624306d7d4 X-Archives-Hash: f5122283af655c6b256206115678249d commit: 8fb451db4efad0f176d2af94567de0c1357f7bc8 Author: Tiziano Müller dev-zero ch> AuthorDate: Tue Jul 2 12:53:57 2013 +0000 Commit: Tiziano Müller gentoo org> CommitDate: Tue Jul 2 12:53:57 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/dev-zero.git;a=commit;h=8fb451db Importing ebuild from a3li's overlay (required for github-linguist). --- dev-ruby/charlock_holmes/Manifest | 3 ++ .../charlock_holmes/charlock_holmes-0.6.8.ebuild | 50 ++++++++++++++++++++++ dev-ruby/charlock_holmes/files/extconf.patch | 43 +++++++++++++++++++ 3 files changed, 96 insertions(+) diff --git a/dev-ruby/charlock_holmes/Manifest b/dev-ruby/charlock_holmes/Manifest new file mode 100644 index 0000000..0d3f8d6 --- /dev/null +++ b/dev-ruby/charlock_holmes/Manifest @@ -0,0 +1,3 @@ +AUX extconf.patch 1340 SHA256 138eff2646dd79464fa91d2f2654af16d771bc79b9e078c241911c25c41a8f08 SHA512 507e56ae60c493dca44cf7abee1477b1df025d2ef3983a8c0a404a5606db97c1a808cc09c6946e0634377c167c24f96e76343a8a028c5eba9a08d09db81bb800 WHIRLPOOL 0fb6d1eabfa278041659fdd7d1e62499eda95971cdfe4a690dba715e2bb19015a8751f96230da81b937cf5d66bd9751b9340ada5ad5d090dfbba0d27200f2846 +DIST charlock_holmes-0.6.8.gem 648192 SHA256 1f3af070aa98fe464413cbc29741b6e4cd986f50e3e4e895771ca91e74428361 SHA512 d7eea160fae7167ac95900380c73c5292f2e455950543d9af394b3a3fdd73244b320e29f0cebcb9472ca78219b899edbd22c02f9857839cc1a375ff2b4795d88 WHIRLPOOL a2b0a04aa2aa993c80971e82ff7d278273109e934432e5d35226093f21dcea2cb84ed9ad8f1f673d432788aac29966aa4dcfae9c7892df23b540000e40a8d22d +EBUILD charlock_holmes-0.6.8.ebuild 1140 SHA256 2c1f570fb1cddea5df800ed217a6c637d74cd81df54b5509bad5d23c6525b1c3 SHA512 11338b2b859abaafddd9334085ab1193e4f66b2d1a23bc9af9a18bbc3b47ce5869086a1de6f0dfde53279c62ea1d85bf3eafe8b00acea44648c65ce761d56070 WHIRLPOOL 115bb8e2987d3858a187a30dd2669fc99faedafbe0cfa3fa528a38e43234769ed3971d65b4133242a5652c7d14ac3e67f0a35326e4c48ea436bef2433c4fff8a diff --git a/dev-ruby/charlock_holmes/charlock_holmes-0.6.8.ebuild b/dev-ruby/charlock_holmes/charlock_holmes-0.6.8.ebuild new file mode 100644 index 0000000..9ca6545 --- /dev/null +++ b/dev-ruby/charlock_holmes/charlock_holmes-0.6.8.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/bundler/bundler-1.0.22.ebuild,v 1.3 2012/05/01 18:24:03 armin76 Exp $ + +EAPI=2 + +USE_RUBY="ruby18 ruby19" + +RUBY_FAKEGEM_TASK_TEST="spec" + +# No documentation task +#RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="README.md" + +inherit ruby-fakegem + +DESCRIPTION="Character encoding detection, brought to you by ICU" +HOMEPAGE="https://github.com/brianmario/charlock_holmes" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# Tests fail with obscure file not founds +RESTRICT="test" + +ruby_add_rdepend "dev-ruby/rake-compiler" + +ruby_add_bdepend "test? ( dev-ruby/rspec:2 )" + +RDEPEND="${RDEPEND} + dev-vcs/git + sys-apps/file" +DEPEND="${DEPEND} + test? ( dev-vcs/git )" + +each_ruby_prepare() { + cd ext/charlock_holmes || die + epatch "${FILESDIR}/extconf.patch" || die +} + +each_ruby_configure() { + ${RUBY} -Cext/charlock_holmes extconf.rb || die +} + +each_ruby_compile() { + emake -Cext/charlock_holmes || die + mv ext/charlock_holmes/charlock_holmes$(get_modname) lib/charlock_holmes/ || die +} diff --git a/dev-ruby/charlock_holmes/files/extconf.patch b/dev-ruby/charlock_holmes/files/extconf.patch new file mode 100644 index 0000000..335d193 --- /dev/null +++ b/dev-ruby/charlock_holmes/files/extconf.patch @@ -0,0 +1,43 @@ +Fixes two issues: + - Don't bundle file/libmagic + - Avoid underlinking by linking against libz, libicuuc, and libicudata + +--- extconf.rb.old 2012-05-27 11:17:30.798768657 +0200 ++++ extconf.rb 2012-05-27 11:38:49.561899729 +0200 +@@ -45,31 +45,12 @@ + exit(1) + end + +-## +-# libmagic dependency +-# ++# Fix underlinking ++have_library 'z' or abort 'libz missing' ++have_library 'icuuc' or abort 'libicuuc missing' ++have_library 'icudata' or abort 'libicudata missing' + +-src = File.basename('file-5.08.tar.gz') +-dir = File.basename(src, '.tar.gz') +- +-Dir.chdir("#{CWD}/src") do +- FileUtils.rm_rf(dir) if File.exists?(dir) +- +- sys("tar zxvf #{src}") +- Dir.chdir(dir) do +- sys("./configure --prefix=#{CWD}/dst/ --disable-shared --enable-static --with-pic") +- sys("make -C src install") +- sys("make -C magic install") +- end +-end +- +-FileUtils.cp "#{CWD}/dst/lib/libmagic.a", "#{CWD}/libmagic_ext.a" +- +-$INCFLAGS[0,0] = " -I#{CWD}/dst/include " +-$LDFLAGS << " -L#{CWD} " +- +-dir_config 'magic' +-unless have_library 'magic_ext' and have_header 'magic.h' ++unless have_library 'magic' and have_header 'magic.h' + STDERR.puts "\n\n" + STDERR.puts "***************************************************************************************" + STDERR.puts "********* error compiling and linking libmagic. please report issue on github *********"