anystyle: init at 1.3.10

This commit is contained in:
SCOTT-HAMILTON 2021-02-22 12:38:26 +01:00
parent 11cd34cd59
commit ed53b269cc
6 changed files with 1803 additions and 0 deletions

View file

@ -0,0 +1,37 @@
source 'https://rubygems.org'
gemspec
group :development, :test do
#gem 'anystyle-data', github: 'inukshuk/anystyle-data'
#gem 'wapiti', github: 'inukshuk/wapiti-ruby'
gem 'bibtex-ruby'
gem 'rake'
gem 'rspec', '~>3.0'
gem 'language_detector', github: 'feedbackmine/language_detector'
gem 'unicode-scripts'
gem 'edtf'
gem 'citeproc'
gem 'unicode_utils' if RUBY_VERSION < '2.4'
end
group :coverage do
gem 'simplecov', require: false
gem 'coveralls', require: false if ENV['CI']
end
group :debug do
gem 'byebug', require: false
end
group :profile do
gem 'ruby-prof', require: false
gem 'gnuplot', require: false
end
group :extra do
gem 'lmdb'
gem 'redis'
gem 'redis-namespace'
gem 'yard'
end

View file

@ -0,0 +1,99 @@
GIT
remote: https://github.com/feedbackmine/language_detector.git
revision: 89102790194150b3a8110ce691f9989b8ce70f8d
specs:
language_detector (0.1.2)
PATH
remote: .
specs:
anystyle (1.3.10)
anystyle-data (~> 1.2)
bibtex-ruby (~> 5.0)
gli (~> 2.17)
namae (~> 1.0)
wapiti (~> 1.0, >= 1.0.2)
GEM
remote: https://rubygems.org/
specs:
activesupport (6.0.3.2)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2, >= 2.2.2)
anystyle-data (1.2.0)
bibtex-ruby (5.1.4)
latex-decode (~> 0.0)
builder (3.2.4)
byebug (11.1.3)
citeproc (1.0.10)
namae (~> 1.0)
concurrent-ruby (1.1.7)
diff-lcs (1.4.4)
docile (1.3.2)
edtf (3.0.5)
activesupport (>= 3.0, < 7.0)
gli (2.19.2)
gnuplot (2.6.2)
i18n (1.8.5)
concurrent-ruby (~> 1.0)
latex-decode (0.3.1)
lmdb (0.5.3)
minitest (5.14.1)
namae (1.0.1)
rake (13.0.1)
redis (4.2.1)
redis-namespace (1.8.0)
redis (>= 3.0.4)
rspec (3.9.0)
rspec-core (~> 3.9.0)
rspec-expectations (~> 3.9.0)
rspec-mocks (~> 3.9.0)
rspec-core (3.9.2)
rspec-support (~> 3.9.3)
rspec-expectations (3.9.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-mocks (3.9.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.9.0)
rspec-support (3.9.3)
ruby-prof (1.4.1)
simplecov (0.19.0)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov-html (0.12.2)
thread_safe (0.3.6)
tzinfo (1.2.7)
thread_safe (~> 0.1)
unicode-scripts (1.6.0)
wapiti (1.0.7)
builder (~> 3.2)
yard (0.9.25)
zeitwerk (2.4.0)
PLATFORMS
ruby
DEPENDENCIES
anystyle!
bibtex-ruby
byebug
citeproc
edtf
gnuplot
language_detector!
lmdb
rake
redis
redis-namespace
rspec (~> 3.0)
ruby-prof
simplecov
unicode-scripts
yard
BUNDLED WITH
2.1.4

View file

@ -0,0 +1,52 @@
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)
require 'anystyle/version'
Gem::Specification.new do |s|
s.name = 'anystyle'
s.version = AnyStyle::VERSION.dup
s.platform = Gem::Platform::RUBY
s.authors = ['Sylvester Keil']
s.email = ['http://sylvester.keil.or.at']
s.homepage = 'http://anystyle.io'
s.summary = 'Smart and fast bibliography parser.'
s.description = 'A sophisticated parser for academic reference lists and bibliographies based on machine learning algorithms using conditional random fields.'
s.license = 'BSD-2-Clause'
s.executables = []
s.require_path = 'lib'
s.required_ruby_version = '>= 2.2'
s.add_runtime_dependency('bibtex-ruby', '~>5.0')
s.add_runtime_dependency('anystyle-data', '~>1.2')
s.add_runtime_dependency('gli', '~>2.17')
s.add_runtime_dependency('wapiti', '~>1.0', '>=1.0.2')
s.add_runtime_dependency('namae', '~>1.0')
s.files =
`git ls-files`.split("\n") - `git ls-files spec`.split("\n") - %w{
.coveralls.yml
.gitignore
.rspec
.simplecov
.travis.yml
Gemfile
Rakefile
appveyor.yml
anystyle.gemspec
res/core.xml
}
s.rdoc_options = %w{
--line-numbers
--inline-source
--title "AnyStyle"
--main README.md
}
s.extra_rdoc_files = %w{README.md LICENSE}
end
# vim: syntax=ruby

View file

@ -0,0 +1,43 @@
{ lib
, buildRubyGem
, bundlerEnv
, ruby
, poppler_utils
}:
let
deps = bundlerEnv rec {
name = "anystyle-cli-${version}";
source.sha256 = lib.fakeSha256;
version = "1.3.1";
inherit ruby;
gemdir = ./.;
gemset = lib.recursiveUpdate (import ./gemset.nix) {
anystyle.source = {
remotes = ["https://rubygems.org"];
sha256 = "1w79zcia60nnnyrmyvpd10pmxrpk5c7lj9gmmblhwi8x5mfq9k0n";
type = "gem";
};
};
};
in
buildRubyGem rec {
inherit ruby;
gemName = "anystyle-cli";
pname = gemName;
version = "1.3.1";
source.sha256 = "1a3ifwxwqkp5dnfk9r8qq8kgfb8k1pl7jjdghbb8ixbxz9ac7awy";
propagatedBuildInputs = [ deps ];
preFixup = ''
wrapProgram $out/bin/anystyle --prefix PATH ${poppler_utils}/bin
'';
meta = with lib; {
description = "Command line interface to the AnyStyle Parser and Finder";
homepage = "https://anystyle.io/";
license = licenses.bsd2;
maintainers = with maintainers; [ shamilton ];
platforms = platforms.unix;
};
}

File diff suppressed because it is too large Load diff

View file

@ -3068,6 +3068,8 @@ in
anydesk = callPackage ../applications/networking/remote/anydesk { };
anystyle-cli = callPackage ../tools/misc/anystyle-cli { };
atool = callPackage ../tools/archivers/atool { };
bash_unit = callPackage ../tools/misc/bash_unit { };