[DRE-commits] [jekyll] 06/06: removed dependency on launchy and use xdg-open instead
dod at debian.org
dod at debian.org
Wed Apr 9 15:48:01 UTC 2014
This is an automated email from the git hooks/post-receive script.
dod pushed a commit to branch master
in repository jekyll.
commit b938e4fa47146eb747f5ba67a66a423dd9bc4ef5
Author: Dominique Dumont <dod at debian.org>
Date: Wed Apr 9 17:39:45 2014 +0200
removed dependency on launchy and use xdg-open instead
---
debian/control | 4 +--
debian/patches/remove-launchy-dependency | 55 ++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 58 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index 9a12090..2ff14da 100644
--- a/debian/control
+++ b/debian/control
@@ -14,7 +14,6 @@ Build-Depends: cucumber,
ruby-commander,
ruby-jekyll-test-plugin,
ruby-kramdown,
- ruby-launchy,
ruby-liquid,
ruby-listen,
ruby-maruku,
@@ -26,7 +25,8 @@ Build-Depends: cucumber,
ruby-rr,
ruby-safe-yaml,
ruby-shoulda,
- ruby-toml
+ ruby-toml,
+ xdg-utils
Standards-Version: 3.9.5
Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/jekyll.git;a=summary
Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/jekyll.git
diff --git a/debian/patches/remove-launchy-dependency b/debian/patches/remove-launchy-dependency
new file mode 100644
index 0000000..33c364c
--- /dev/null
+++ b/debian/patches/remove-launchy-dependency
@@ -0,0 +1,55 @@
+Description:Remove launchy dependency
+ call to cross platform launchy to launch a web browser
+ is replaced with direct call to xdg-open
+Author:dod at debian.org
+--- a/Rakefile
++++ b/Rakefile
+@@ -137,14 +137,12 @@
+ namespace :site do
+ desc "Generate and view the site locally"
+ task :preview do
+- require "launchy"
+-
+ # Yep, it's a hack! Wait a few seconds for the Jekyll site to generate and
+ # then open it in a browser. Someday we can do better than this, I hope.
+ Thread.new do
+ sleep 4
+ puts "Opening in browser..."
+- Launchy.open("http://localhost:4000")
++ sh "xdg-open http://localhost:4000"
+ end
+
+ # Generate the site in server mode.
+--- a/jekyll.gemspec
++++ b/jekyll.gemspec
+@@ -43,7 +43,6 @@
+ s.add_development_dependency('RedCloth', "~> 4.2")
+ s.add_development_dependency('kramdown', "~> 1.2")
+ s.add_development_dependency('rdiscount', "~> 1.6")
+- s.add_development_dependency('launchy', "~> 2.3")
+ s.add_development_dependency('simplecov', "~> 0.7")
+ s.add_development_dependency('simplecov-gem-adapter', "~> 1.0.1")
+ s.add_development_dependency('coveralls', "~> 0.7.0")
+--- a/metadata.yml
++++ b/metadata.yml
+@@ -277,20 +277,6 @@
+ - !ruby/object:Gem::Version
+ version: '1.6'
+ - !ruby/object:Gem::Dependency
+- name: launchy
+- requirement: !ruby/object:Gem::Requirement
+- requirements:
+- - - ~>
+- - !ruby/object:Gem::Version
+- version: '2.3'
+- type: :development
+- prerelease: false
+- version_requirements: !ruby/object:Gem::Requirement
+- requirements:
+- - - ~>
+- - !ruby/object:Gem::Version
+- version: '2.3'
+-- !ruby/object:Gem::Dependency
+ name: simplecov
+ requirement: !ruby/object:Gem::Requirement
+ requirements:
diff --git a/debian/patches/series b/debian/patches/series
index 6e3be00..bcdd124 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
0002-Drop-rubygems-Depends.patch
0003-use-colored-instead-of-colorator.patch
0004-Downcase-RedCloth.patch
+remove-launchy-dependency
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/jekyll.git
More information about the Pkg-ruby-extras-commits
mailing list