debian/0000775000000000000000000000000012257206353007175 5ustar debian/source/0000775000000000000000000000000012133020061010454 5ustar debian/source/format0000664000000000000000000000001412133020061011662 0ustar 3.0 (quilt) debian/copyright0000664000000000000000000000251012133020061011105 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: charlock_holmes Source: http://github.com/brianmario/charlock_holmes Files: * Copyright: 2011 Brian Lopez License: Expat Files: debian/* Copyright: 2013 Ondřej Surý 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/changelog0000664000000000000000000000072712257206353011055 0ustar ruby-charlock-holmes (0.6.9.4.dfsg1-1build1) trusty; urgency=medium * No change rebuild against libicu52 -- Dimitri John Ledkov Fri, 27 Dec 2013 05:15:23 +0000 ruby-charlock-holmes (0.6.9.4.dfsg1-1) unstable; urgency=low * Initial release (Closes: #705482) * Imported Upstream version 0.6.9.4.dfsg1 * Add dversionmangling to debian/watch * Try without ruby-chardet -- Ondřej Surý Mon, 15 Apr 2013 17:14:24 +0200 debian/repack.sh0000775000000000000000000000151612133020061010763 0ustar #!/bin/sh # # Repackage upstream source to exclude non-distributable files. # Should be called as "repack sh --upstream-source # (for example, via uscan). set -e set -u if [ $# -ne 3 ]; then echo "Usage: $0 --upstream-source " exit 1 fi OPT_VERSION=$2 OPT_FILE=$3 TMPDIR=`mktemp -d` trap "rm -rf $TMPDIR" QUIT INT EXIT echo "Repackaging $OPT_FILE" orig_file_path=$(readlink --canonicalize $OPT_FILE) package_name=$(dpkg-parsechangelog | sed -n 's/^Source: //p') dfsg_directory=${package_name}_${OPT_VERSION}.dfsg1 dfsg_file_path=$(dirname ${orig_file_path})/${dfsg_directory}.orig.tar.gz zcat "${orig_file_path}" | \ tar --wildcards \ --delete '*/src/file-*' \ --delete '*/laholator.py' | \ gzip -c > $dfsg_file_path echo "File $OPT_FILE repackaged successfully to $dfsg_file_path" debian/control0000664000000000000000000000212112257206353010574 0ustar Source: ruby-charlock-holmes Section: ruby Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Ruby Extras Maintainers Uploaders: Ondřej Surý DM-Upload-Allowed: yes Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), libicu-dev, libmagic-dev, rake-compiler (>= 0.7.5), ruby-minitest, # ruby-chardet Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/pkg-ruby-extras/ruby-charlock-holmes.git Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/ruby-charlock-holmes.git;a=summary Homepage: http://github.com/brianmario/charlock_holmes XS-Ruby-Versions: all Package: ruby-charlock-holmes Architecture: any XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter Description: Ruby character encoding detection library Character encoding detecting library for Ruby using ICU library. This library provides character encoding detection and transcoding. debian/rules0000775000000000000000000000070112133020061010232 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 $@ --buildsystem=ruby --with ruby debian/watch0000664000000000000000000000023012133020061010200 0ustar version=3 opts=dversionmangle=s/\.dfsg\d+$// \ http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/charlock_holmes .*/charlock_holmes-(.*).tar.gz debian/patches/0000775000000000000000000000000012133020061010603 5ustar debian/patches/use-system-libmagic.patch0000664000000000000000000000236212133020061015512 0ustar --- a/ext/charlock_holmes/extconf.rb +++ b/ext/charlock_holmes/extconf.rb @@ -45,39 +45,6 @@ unless have_library 'icui18n' and have_h exit(1) end -## -# libmagic dependency -# - -src = File.basename('file-5.08.tar.gz') -dir = File.basename(src, '.tar.gz') - -Dir.chdir("#{CWD}/src") do - FileUtils.rm_rf(dir) if File.exists?(dir) - - sys("tar zxvf #{src}") - Dir.chdir(dir) do - sys("./configure --prefix=#{CWD}/dst/ --disable-shared --enable-static --with-pic") - sys("patch -p0 < ../file-soft-check.patch") - sys("make -C src install") - sys("make -C magic install") - end -end - -FileUtils.cp "#{CWD}/dst/lib/libmagic.a", "#{CWD}/libmagic_ext.a" - -$INCFLAGS[0,0] = " -I#{CWD}/dst/include " -$LDFLAGS << " -L#{CWD} " - -dir_config 'magic' -unless have_library 'magic_ext' and have_header 'magic.h' - STDERR.puts "\n\n" - STDERR.puts "***************************************************************************************" - STDERR.puts "********* error compiling and linking libmagic. please report issue on github *********" - STDERR.puts "***************************************************************************************" - exit(1) -end - $CFLAGS << ' -Wall -funroll-loops' $CFLAGS << ' -Wextra -O0 -ggdb3' if ENV['DEBUG'] debian/patches/series0000664000000000000000000000003212133020061012013 0ustar use-system-libmagic.patch debian/compat0000664000000000000000000000000212133020061010352 0ustar 7 debian/ruby-charlock-holmes.docs0000664000000000000000000000004312133020061014055 0ustar # FIXME: READMEs found # README.md debian/ruby-tests.rb0000664000000000000000000000073512133020061011627 0ustar # FIXME # there's a spec/ or a test/ directory in the upstream source, but # no test suite was defined in the Gem specification. It would be # a good idea to define it here so the package gets tested at build time. # Examples: # $: << 'lib' << '.' # Dir['{spec,test}/**/*.rb'].each { |f| require f } # # require 'test/ts_foo.rb' # # require 'rbconfig' # ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name']) # exec("#{ruby} -I. test/runtests.rb")