debian/0000755000000000000000000000000012263231451007165 5ustar debian/rules0000755000000000000000000000112312263224352010244 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ #dh $@ --buildsystem=ruby --with ruby override_dh_installman: pod2man --center "" --release "" --name MDPRESS --utf8 debian/mdpress.1.pod debian/mdpress.1 dh_installman debian/watch0000644000000000000000000000021312157306000010205 0ustar version=3 opts=dversionmangle=s/\+debian(\d)*// \ http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/mdpress .*/mdpress-(.*).tar.gz debian/source/0000755000000000000000000000000012055174265010475 5ustar debian/source/format0000644000000000000000000000001412055153476011704 0ustar 3.0 (quilt) debian/mdpress.1.pod0000644000000000000000000000137512157301752011517 0ustar =encoding UTF-8 =head1 NAME mdpress - Ruby tool to build impress.js presentation from Markdown files =head1 SYNOPSIS B [I] [I] =head1 DESCRIPTION =head1 OPTIONS =over =item B<--automatic>, B<-a> Keeps running and automatically updates the presentation to reflect changes to markdown file. =item B<--stylesheet>, B<-s> I Specify what stylesheet to use. (Default: default) =item B<--list>, B<-l> List all available stylesheets. =item B<--latex>, B<-t> Provide LaTeX support =item B<--run>, B<-r> Run presentation (automatically compiles to a tmp directory and opens in a browser window) =item B<--verbose>, B<-v> Be verbose. =item B<--help>, B<-h> Show a help message, similar to this manual page. =back debian/clean0000644000000000000000000000002112055200653010162 0ustar debian/mdpress.1 debian/gbp.conf0000644000000000000000000000016612157305553010616 0ustar [git-import-orig] filter = ['lib/js', 'lib/css/highlight_styles', 'lib/css/highlight.css'] filter-pristine-tar = True debian/copyright0000644000000000000000000000305012157410621011116 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: mdpress Source: Comment: the source tarball has been repacked to remove embedded copies of Impress.js (provided by libjs-impress package) and Highlight.js (provided by libjs-highlight). Files: * Copyright: 2012 Aditya Bhargava License: Expat Comment: https://github.com/egonSchiele/mdpress/blob/master/LICENSE Files: debian/* Copyright: 2012 Cédric Boutillier License: Expat License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/control0000644000000000000000000000204312263224177010576 0ustar Source: mdpress Section: text Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Cédric Boutillier Build-Depends: debhelper (>= 7.0.50~) Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/mdpress.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/mdpress.git;a=summary Homepage: https://github.com/egonSchiele/mdpress XS-Ruby-Versions: all Package: mdpress Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-redcarpet, ruby-trollop, libjs-highlight, libjs-impress, libjs-mathjax Recommends: fonts-lato Description: creation of Impress.js slideshows with Markdown mdpress is a commandline tool that converts Markdown files to presentations using Impress.js. . Markdown is an easy-to-read and easy-to-write markup language with readability being emphasized above all else. . mdpress uses the Redcarpet library to process Markdown syntax. debian/mdpress.install0000644000000000000000000000024212200453326012226 0ustar lib/impress_css/*.css usr/share/mdpress/impress_css lib/impress_renderer.rb usr/lib/ruby/vendor_ruby bin/mdpress usr/bin/ lib/css/reset.css usr/share/mdpress/css debian/mdpress.docs0000644000000000000000000000001212263223051011502 0ustar README.md debian/mdpress.manpages0000644000000000000000000000002112055200741012345 0ustar debian/mdpress.1 debian/mdpress.links0000644000000000000000000000024512157261404011710 0ustar /usr/share/javascript/highlight/styles usr/share/mdpress/css/highlight_styles /usr/share/mdpress/css/highlight_styles/github.css usr/share/mdpress/css/highlight.css debian/patches/0000755000000000000000000000000012263227276010626 5ustar debian/patches/replace_launchy.patch0000644000000000000000000000121012263227133014767 0ustar Description: replace for the moment ruby-launchy by xdg-open ruby-launchy is not packaged yet, and it is not critical here. Author: Cédric Boutillier Origin: vendor Forwarded: not-needed Last-Update: 2014-01-08 --- a/bin/mdpress +++ b/bin/mdpress @@ -5,7 +5,7 @@ require 'impress_renderer' require 'trollop' require 'tempfile' -require 'launchy' +#require 'launchy' require 'yaml' THEMES_DIRNAME = './themes/' @@ -177,7 +177,7 @@ end elsif OPTS[:run] log "opening in browser." - Launchy.open(DIRNAME + "/index.html", :application => :browser) + `xdg-open #{DIRNAME + "/index.html"}` else log "done." end debian/patches/series0000644000000000000000000000016412200455544012034 0ustar remove_rubygems.patch replace_launchy.patch change_basedir.patch copy_system_js_libs.patch use_system_mathjax.patch debian/patches/copy_system_js_libs.patch0000644000000000000000000000172612263227250015730 0ustar Description: copy system javascript libraries and css files instead of the embedded ones that are removed from the upstream tarball Origin: vendor Author: Cédric Boutillier Last-Update: 2014-01-08 --- a/bin/mdpress +++ b/bin/mdpress @@ -149,8 +149,15 @@ render OPTS log "copying files" -FileUtils.cp_r(base_dir + "js", DIRNAME) -FileUtils.cp_r(base_dir + "css", DIRNAME) +#FileUtils.cp_r(base_dir + "js", DIRNAME) +# copy JavaScript files from libjs-impress and libjs-highlight +Dir.mkdir(DIRNAME+"/js") unless File.directory?(DIRNAME+"/js") +FileUtils.cp("/usr/share/javascript/impress/impress.js", DIRNAME+"/js/") +FileUtils.cp("/usr/share/javascript/highlight/highlight.min.js", DIRNAME+"/js/highlight.pack.js") +Dir.mkdir(DIRNAME+"/css") unless File.directory?(DIRNAME+"/css") +Dir.glob(base_dir+"css/*").each do |f| + FileUtils.cp_r(f, DIRNAME+"/css", :dereference_root => true) +end FileUtils.cp(STYLESHEET, DIRNAME + "/css/style.css") def auto debian/patches/use_system_mathjax.patch0000644000000000000000000000116112263227276015562 0ustar Description: use system MathJax library instead of cdn.mathjax.org so that we do not rely on distant services Author: Cédric Boutillier Last-Update: 2014-01-08 --- a/lib/impress_renderer.rb +++ b/lib/impress_renderer.rb @@ -45,7 +45,7 @@ MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}}); } end debian/patches/remove_rubygems.patch0000644000000000000000000000050612157302145015051 0ustar Description: do not use rubygems Origin: vendor Author: Cédric Boutillier Forwarded: not-needed Last-Update: 2013-06-16 --- a/bin/mdpress +++ b/bin/mdpress @@ -1,5 +1,5 @@ #!/usr/bin/env ruby -require 'rubygems' +#require 'rubygems' require 'redcarpet' require 'fileutils' require 'impress_renderer' debian/patches/change_basedir.patch0000644000000000000000000000051712263227207014562 0ustar Description: use /usr/share/mdpress as base_dir Origin: vendor Author: Cédric Boutillier Forwarded: not-needed Last-Update: 2014-01-08 --- a/bin/mdpress +++ b/bin/mdpress @@ -15,7 +15,7 @@ end def base_dir - File.dirname(__FILE__) + "/../lib/" + "/usr/share/mdpress/" end def list_available_stylesheets debian/compat0000644000000000000000000000000212055153476010374 0ustar 7 debian/README.source0000644000000000000000000000337212157411573011360 0ustar This package uses the Debian 3.0 (quilt) source package format. The upstream tarball has been repacked to remove files provided by other packages: from libjs-highlight: - lib/css/highlight.css - lib/css/highlight_styles/arta.css - lib/css/highlight.css - lib/css/highlight_styles/arta.css - lib/css/highlight_styles/ascetic.css - lib/css/highlight_styles/brown_paper.css - lib/css/highlight_styles/brown_papersq.png - lib/css/highlight_styles/dark.css - lib/css/highlight_styles/default.css - lib/css/highlight_styles/far.css - lib/css/highlight_styles/github.css - lib/css/highlight_styles/googlecode.css - lib/css/highlight_styles/idea.css - lib/css/highlight_styles/ir_black.css - lib/css/highlight_styles/magula.css - lib/css/highlight_styles/monokai.css - lib/css/highlight_styles/pojoaque.css - lib/css/highlight_styles/pojoaque.jpg - lib/css/highlight_styles/rainbow.css - lib/css/highlight_styles/school_book.css - lib/css/highlight_styles/school_book.png - lib/css/highlight_styles/solarized_dark.css - lib/css/highlight_styles/solarized_light.css - lib/css/highlight_styles/sunburst.css - lib/css/highlight_styles/tomorrow-night-blue.css - lib/css/highlight_styles/tomorrow-night-bright.css - lib/css/highlight_styles/tomorrow-night-eighties.css - lib/css/highlight_styles/tomorrow-night.css - lib/css/highlight_styles/tomorrow.css - lib/css/highlight_styles/vs.css - lib/css/highlight_styles/xcode.css - lib/css/highlight_styles/zenburn.css - lib/js/highlight.pack.js from libjs-impress: - lib/js/impress.js The removal has been done with git-buildpackage, during the import of the upstream tarball via git import-orig command and its filter option (see debian/gbp.conf). Cédric Boutillier Last Update: 2013-06-16 debian/changelog0000644000000000000000000000102412263231451011034 0ustar mdpress (0.0.15+debian-1) unstable; urgency=medium * Imported Upstream version 0.0.15+debian * Install README.md and examples, now shipped by upstream * Change section to from ruby to text (Closes: #733671) * Bump Standards-Version to 3.9.5 (no changes needed) * Refresh patches -- Cédric Boutillier Wed, 08 Jan 2014 11:20:05 +0100 mdpress (0.0.14+debian-1) unstable; urgency=low * Initial release (Closes: #692864) -- Cédric Boutillier Sun, 16 Jun 2013 11:40:39 +0200 debian/mdpress.examples0000644000000000000000000000001312263223022012367 0ustar examples/*