diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-25 23:50:05 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-25 23:50:05 +0100 |
commit | 94f91d25906569a622b1bdbd61766449230daa27 (patch) | |
tree | ad231ece6ff30fe87381c79cde06d4e583ba61b6 /community | |
parent | 142f971e4cf690164050be47284a6c8cce6353cf (diff) | |
download | aports-94f91d25906569a622b1bdbd61766449230daa27.tar.bz2 aports-94f91d25906569a622b1bdbd61766449230daa27.tar.xz |
community/ruby-diff-lcs: move from testing
Diffstat (limited to 'community')
-rw-r--r-- | community/ruby-diff-lcs/APKBUILD | 49 | ||||
-rw-r--r-- | community/ruby-diff-lcs/gemspec.patch | 16 |
2 files changed, 65 insertions, 0 deletions
diff --git a/community/ruby-diff-lcs/APKBUILD b/community/ruby-diff-lcs/APKBUILD new file mode 100644 index 0000000000..bce350061a --- /dev/null +++ b/community/ruby-diff-lcs/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=ruby-diff-lcs +_gemname=${pkgname#ruby-} +pkgver=1.3 +pkgrel=0 +pkgdesc="Generate difference sets between Ruby sequences" +url="http://halostatue.github.io/diff-lcs/" +arch="noarch" +license="MIT" +depends="ruby" +options="!check" # to avoid cyclic dependency with rspec +subpackages="$pkgname-tools" +source="$pkgname-$pkgver.tar.gz::https://github.com/halostatue/$_gemname/archive/v$pkgver.tar.gz" +builddir="$srcdir/$_gemname-$pkgver" + +build() { + cd "$builddir" + gem build $_gemname.gemspec +} + +package() { + local gemdir="$pkgdir/$(ruby -rubygems -e 'puts Gem.default_dir')" + local geminstdir="$gemdir/gems/$_gemname-$pkgver" + + cd "$builddir" + gem install --local \ + --install-dir "$gemdir" \ + --bindir "$pkgdir/usr/bin" \ + --ignore-dependencies \ + --no-document \ + --verbose \ + $_gemname + + # Remove unnecessary files. + cd "$gemdir" + rm -r cache/ build_info/ doc/ + cd "$geminstdir" + rm -r autotest/ docs/ spec/ Rakefile *.md *.rdoc *.txt +} + +tools() { + pkgdesc="$pkgdesc (CLI tools)" + + mkdir -p "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/* "$subpkgdir"/usr/bin/ +} + +sha512sums="b455f86ab006cbb823c2f8ed7fcde16c432e3783b6408ec305e57b7f4d0cf98bad586786947414ec3dc27e885b1485e534d26df19eaa9972874d78a8829b501e ruby-diff-lcs-1.3.tar.gz" diff --git a/community/ruby-diff-lcs/gemspec.patch b/community/ruby-diff-lcs/gemspec.patch new file mode 100644 index 0000000000..9c0b69ecd4 --- /dev/null +++ b/community/ruby-diff-lcs/gemspec.patch @@ -0,0 +1,16 @@ +--- a/rspec-core.gemspec ++++ b/rspec-core.gemspec +@@ -13,11 +13,10 @@ + s.summary = "rspec-core-#{RSpec::Core::Version::STRING}" + s.description = "BDD for Ruby. RSpec runner and example groups." + +- s.files = `git ls-files -- lib/*`.split("\n") +- s.files += %w[README.md LICENSE.md Changelog.md .yardopts .document] ++ s.files = Dir['lib/**/*'] + s.test_files = [] + s.bindir = 'exe' +- s.executables = `git ls-files -- exe/*`.split("\n").map{ |f| File.basename(f) } ++ s.executables = Dir['exe/*'].map{ |f| File.basename(f) } + s.rdoc_options = ["--charset=UTF-8"] + s.require_path = "lib" + |