[DRE-commits] [ruby-gemoji] 02/02: Create Debian Package
Youhei SASAKI
uwabami-guest at moszumanska.debian.org
Sat Jan 17 16:02:16 UTC 2015
This is an automated email from the git hooks/post-receive script.
uwabami-guest pushed a commit to branch master
in repository ruby-gemoji.
commit 173dd2d8fc1b2fce907c3d4d9c0241c566f2cccb
Author: Youhei SASAKI <uwabami at gfd-dennou.org>
Date: Sun Jan 18 00:54:45 2015 +0900
Create Debian Package
Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
---
debian/changelog | 5 ++
debian/compat | 1 +
debian/control | 19 ++++++++
debian/copyright | 54 ++++++++++++++++++++++
.../0001-Fix-images-and-json-data-path.patch | 28 +++++++++++
debian/patches/series | 1 +
debian/ruby-gemoji.docs | 3 ++
debian/ruby-tests.rake | 5 ++
debian/rules | 22 +++++++++
debian/source/format | 1 +
debian/tests/control | 2 +
debian/watch | 3 ++
12 files changed, 144 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..c999805
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ruby-gemoji (2.1.0-1) UNRELEASED; urgency=medium
+
+ * Initial release (Closes: #nnnn)
+
+ -- Youhei SASAKI <uwabami at gfd-dennou.org> Sun, 18 Jan 2015 00:10:37 +0900
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..7947bca
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,19 @@
+Source: ruby-gemoji
+Section: ruby
+Priority: optional
+Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Uploaders: Youhei SASAKI <uwabami at gfd-dennou.org>
+Build-Depends: debhelper (>= 7.0.50~), gem2deb, rake
+Standards-Version: 3.9.6
+Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-gemoji.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-gemoji.git;a=summary
+Homepage: https://github.com/github/gemoji
+Testsuite: autopkgtest
+XS-Ruby-Versions: all
+
+Package: ruby-gemoji
+Architecture: all
+XB-Ruby-Versions: ${ruby:Versions}
+Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
+Description: Emoji conversion and image assets for Ruby applications
+ This package provides Image assets and character information for emoji.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..b4d0910
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,54 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: gemoji
+Source: https://github.com/github/gemoji
+
+Files: *
+Copyright: 2013 GitHub Inc.
+License: Expat
+
+Files: images/emoji/bowtie.png
+ images/emoji/neckbeard.png
+ images/emoji/fu.png
+Copyright: 2013 37signals
+License: Expat
+
+Files: images/emoji/feelsgood.png
+ images/emoji/finnadie.png
+ images/emoji/goberserk.png
+ images/emoji/godmode.png
+ images/emoji/hurtrealbad.png
+ images/emoji/rage1.png
+ images/emoji/rage2.png
+ images/emoji/rage3.png
+ images/emoji/rage4.png
+ images/emoji/suspect.png
+Copyright: 2013 id Software
+License: Expat
+
+Files: images/emoji/trollface.png
+Copyright: 2013 whynne at deviantart
+License: Expat
+
+Files: debian/*
+Copyright: 2015 Youhei SASAKI <uwabami at gfd-dennou.org>
+License: Expat
+Comment: the Debian packaging is licensed under the same terms as the original package.
+
+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.
diff --git a/debian/patches/0001-Fix-images-and-json-data-path.patch b/debian/patches/0001-Fix-images-and-json-data-path.patch
new file mode 100644
index 0000000..ec9bb66
--- /dev/null
+++ b/debian/patches/0001-Fix-images-and-json-data-path.patch
@@ -0,0 +1,28 @@
+From: Debian Ruby Extras Maintainers
+ <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
+Date: Sun, 18 Jan 2015 00:54:49 +0900
+Subject: Fix images and json data path
+
+Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
+---
+ lib/emoji.rb | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/lib/emoji.rb b/lib/emoji.rb
+index c03e47e..c644c5a 100644
+--- a/lib/emoji.rb
++++ b/lib/emoji.rb
+@@ -5,11 +5,11 @@ module Emoji
+ extend self
+
+ def data_file
+- File.expand_path('../../db/emoji.json', __FILE__)
++ File.expand_path('../../../../share/ruby-gemoji/db/emoji.json', __FILE__)
+ end
+
+ def images_path
+- File.expand_path("../../images", __FILE__)
++ File.expand_path("../../../../share/ruby-gemoji/images", __FILE__)
+ end
+
+ def all
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4b84f1b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Fix-images-and-json-data-path.patch
diff --git a/debian/ruby-gemoji.docs b/debian/ruby-gemoji.docs
new file mode 100644
index 0000000..9fd2667
--- /dev/null
+++ b/debian/ruby-gemoji.docs
@@ -0,0 +1,3 @@
+README.md
+
+CONTRIBUTING.md
diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
new file mode 100644
index 0000000..de00c8f
--- /dev/null
+++ b/debian/ruby-tests.rake
@@ -0,0 +1,5 @@
+require 'gem2deb/rake/testtask'
+Gem2Deb::Rake::TestTask.new do |t|
+ t.libs << "test"
+ t.test_files = FileList["test/*_test.rb"]
+end
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..481ee2e
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,22 @@
+#!/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=ruby2.1 require-rubygems
+#
+# If you need to specify the .gemspec (eg there is more than one)
+#export DH_RUBY_GEMSPEC=gem.gemspec
+PACKAGE=ruby-gemoji
+
+%:
+ dh $@ --buildsystem=ruby --with ruby
+
+override_dh_auto_install:
+ mkdir -p $(CURDIR)/debian/$(PACKAGE)/usr/share/$(PACKAGE)
+ cp -r $(CURDIR)/db $(CURDIR)/debian/$(PACKAGE)/usr/share/$(PACKAGE)
+ cp -r $(CURDIR)/images $(CURDIR)/debian/$(PACKAGE)/usr/share/$(PACKAGE)
+ dh_auto_install
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..e37abf8
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Test-Command: gem2deb-test-runner --autopkgtest 2>&1
+Depends: @, @builddeps@, gem2deb-test-runner
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..335e0fe
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/gemoji-$1\.tar\.gz/ \
+ https://github.com/github/gemoji/tags .*/v?(\d\S*)\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-gemoji.git
More information about the Pkg-ruby-extras-commits
mailing list