[packages/ruby/dev-2.0] ugly hack to disable tk

glen glen at pld-linux.org
Fri Jul 11 07:51:01 CEST 2014


commit 4730786e36cc575206f28a5eb8322ef88ea19352
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Jul 11 08:50:58 2014 +0300

    ugly hack to disable tk

 ruby.spec | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/ruby.spec b/ruby.spec
index 6d3e6d7..7b31d0e 100644
--- a/ruby.spec
+++ b/ruby.spec
@@ -453,6 +453,9 @@ find -type f '(' -name '*.rb' -o -name '*.cgi' -o -name '*.test' \
 	-o -name 'ruby.1' -o -name '*.html' -o -name '*.tcl' ')' \
 	| xargs %{__sed} -i 's,/usr/local/bin/,%{_bindir}/,'
 
+# no configure option to disable, so just rm
+%{!?with_tk:rm -rf ext/tk}
+
 %build
 rubygems_ver=$(awk '/VERSION =/ && $1 == "VERSION" {print $3}' lib/rubygems.rb | xargs)
 if [ $rubygems_ver != %{rubygems_ver} ]; then
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby.git/commitdiff/4730786e36cc575206f28a5eb8322ef88ea19352



More information about the pld-cvs-commit mailing list