summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorBen J Woodcroft <donttrustben@gmail.com>2016-08-01 11:27:00 +1000
committerBen Woodcroft <donttrustben@gmail.com>2016-08-01 21:30:49 +1000
commit7b01f250e406d4112959cb1099da5e73a099fe0f (patch)
tree7af862787e010b944218b61fb39df1394841be54 /gnu/packages
parent2de61e340c286b036d4cb8dea91c0f8709aac0bf (diff)
gnu: ruby-nokogiri: Update to 1.6.8.
* gnu/packages/ruby.scm (ruby-nokogiri): Update to 1.6.8. [arguments]: Remove 'update-dependency' phase. Add 'patch-extconf' phase. [native-inputs]: Remove ruby-rake-compiler. [propagated-inputs]: Add ruby-pkg-config.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/ruby.scm29
1 files changed, 20 insertions, 9 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index bc7afa626c9..0fe2c112aa1 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1909,37 +1909,48 @@ to reproduce user environments.")
1909(define-public ruby-nokogiri 1909(define-public ruby-nokogiri
1910 (package 1910 (package
1911 (name "ruby-nokogiri") 1911 (name "ruby-nokogiri")
1912 (version "1.6.7.2") 1912 (version "1.6.8")
1913 (source (origin 1913 (source (origin
1914 (method url-fetch) 1914 (method url-fetch)
1915 (uri (rubygems-uri "nokogiri" version)) 1915 (uri (rubygems-uri "nokogiri" version))
1916 (sha256 1916 (sha256
1917 (base32 1917 (base32
1918 "11sbmpy60ynak6s3794q32lc99hs448msjy8rkp84ay7mq7zqspv")))) 1918 "17pjhvm4yigriizxbbpx266nnh6nckdm33m3j4ws9dcg99daz91p"))))
1919 (build-system ruby-build-system) 1919 (build-system ruby-build-system)
1920 (arguments 1920 (arguments
1921 ;; Tests fail because Nokogiri can only test with an installed extension, 1921 ;; Tests fail because Nokogiri can only test with an installed extension,
1922 ;; and also because many test framework dependencies are missing. 1922 ;; and also because many test framework dependencies are missing.
1923 '(#:tests? #f 1923 `(#:tests? #f
1924 #:gem-flags (list "--" "--use-system-libraries" 1924 #:gem-flags (list "--" "--use-system-libraries"
1925 (string-append "--with-xml2-include=" 1925 (string-append "--with-xml2-include="
1926 (assoc-ref %build-inputs "libxml2") 1926 (assoc-ref %build-inputs "libxml2")
1927 "/include/libxml2" )) 1927 "/include/libxml2" ))
1928 #:phases 1928 #:phases
1929 (modify-phases %standard-phases 1929 (modify-phases %standard-phases
1930 (add-after 'extract-gemspec 'update-dependency 1930 (add-before 'build 'patch-extconf
1931 (lambda _ 1931 ;; 'pkg-config' is not included in the GEM_PATH during
1932 (substitute* ".gemspec" (("2.0.0.rc2") "2.0")) 1932 ;; installation, so we add it directly to the load path.
1933 (lambda* (#:key inputs #:allow-other-keys)
1934 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config"))
1935 (pkg-config-home (gem-home pkg-config
1936 ,(package-version ruby))))
1937 (substitute* "ext/nokogiri/extconf.rb"
1938 (("gem 'pkg-config'.*")
1939 (string-append "$:.unshift '"
1940 pkg-config-home
1941 "/gems/pkg-config-"
1942 ,(package-version ruby-pkg-config)
1943 "/lib'\n"))))
1933 #t))))) 1944 #t)))))
1934 (native-inputs 1945 (native-inputs
1935 `(("ruby-hoe" ,ruby-hoe) 1946 `(("ruby-hoe" ,ruby-hoe)))
1936 ("ruby-rake-compiler" ,ruby-rake-compiler)))
1937 (inputs 1947 (inputs
1938 `(("zlib" ,zlib) 1948 `(("zlib" ,zlib)
1939 ("libxml2" ,libxml2) 1949 ("libxml2" ,libxml2)
1940 ("libxslt" ,libxslt))) 1950 ("libxslt" ,libxslt)))
1941 (propagated-inputs 1951 (propagated-inputs
1942 `(("ruby-mini-portile" ,ruby-mini-portile-2))) 1952 `(("ruby-mini-portile" ,ruby-mini-portile-2)
1953 ("ruby-pkg-config" ,ruby-pkg-config)))
1943 (synopsis "HTML, XML, SAX, and Reader parser for Ruby") 1954 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
1944 (description "Nokogiri (鋸) parses and searches XML/HTML, and features 1955 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
1945both CSS3 selector and XPath 1.0 support.") 1956both CSS3 selector and XPath 1.0 support.")