aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2020-01-06 19:32:42 +0100
committerJakub Jirutka <jakub@jirutka.cz>2020-01-06 19:32:18 +0100
commit62b01f05e4a79dd1603ba69d2ea6688e5ff3ac56 (patch)
tree9c1d3ef30da9560dec0e19b40f7a72f96cfab035 /testing
parent17b1a3d420e9a5a805c9fd520ed0f7e85a5dbd80 (diff)
downloadaports-62b01f05e4a79dd1603ba69d2ea6688e5ff3ac56.tar.gz
aports-62b01f05e4a79dd1603ba69d2ea6688e5ff3ac56.tar.bz2
aports-62b01f05e4a79dd1603ba69d2ea6688e5ff3ac56.tar.xz
testing/ruby-net-ldap: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/ruby-net-ldap/APKBUILD46
-rw-r--r--testing/ruby-net-ldap/gemspec.patch19
2 files changed, 65 insertions, 0 deletions
diff --git a/testing/ruby-net-ldap/APKBUILD b/testing/ruby-net-ldap/APKBUILD
new file mode 100644
index 0000000000..c4e80759dd
--- /dev/null
+++ b/testing/ruby-net-ldap/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=ruby-net-ldap
+_gemname=net-ldap
+pkgver=0.16.2
+pkgrel=0
+pkgdesc="Pure Ruby LDAP library"
+url="https://github.com/ruby-ldap/ruby-net-ldap"
+arch="noarch"
+license="MIT"
+depends="ruby"
+checkdepends="ruby-bundler"
+source="https://github.com/ruby-ldap/$pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz
+ gemspec.patch
+ "
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ gem build $_gemname.gemspec
+}
+
+check() {
+ # TODO: Install from aports after we create aport for flexmock.
+ export GEM_HOME="$(pwd)/.gems"
+ bundle install
+
+ "$GEM_HOME"/bin/rake test
+}
+
+package() {
+ local gemdir="$pkgdir/$(ruby -e 'puts Gem.default_dir')"
+
+ gem install --local \
+ --install-dir "$gemdir" \
+ --ignore-dependencies \
+ --no-document \
+ --verbose \
+ $_gemname
+
+ # Remove unnecessary files and empty directories.
+ cd "$gemdir"
+ rm -r cache build_info doc
+}
+
+sha512sums="fc32ec6ec7e5819ac116450cf4ab3a55fea2dc3ae144c3a3b7293b70169b9a9ddfb554002e38b2da4ab1d8be698552cd1eae61d916d623aced353701f43d8c2c ruby-net-ldap-0.16.2.tar.gz
+b1fbdfac461cd765bc20731f835873570c57be1188cc26099e5b26d74abd6a3e9a2848cf180825f1715897808bc77e1c7ac1b62a7980eee597b88e2b6d68168f gemspec.patch"
diff --git a/testing/ruby-net-ldap/gemspec.patch b/testing/ruby-net-ldap/gemspec.patch
new file mode 100644
index 0000000000..8ace2bf3b7
--- /dev/null
+++ b/testing/ruby-net-ldap/gemspec.patch
@@ -0,0 +1,19 @@
+--- a/net-ldap.gemspec
++++ b/net-ldap.gemspec
+@@ -20,9 +20,7 @@
+ Our roadmap for Net::LDAP 1.0 is to gain full <em>client</em> compliance with
+ the most recent LDAP RFCs (4510-4519, plutions of 4520-4532).}
+ s.email = ["blackhedd@rubyforge.org", "gemiel@gmail.com", "rory.ocon@gmail.com", "kaspar.schiess@absurd.li", "austin@rubyforge.org"]
+- s.extra_rdoc_files = ["Contributors.rdoc", "Hacking.rdoc", "History.rdoc", "License.rdoc", "README.rdoc"]
+- s.files = `git ls-files`.split $/
+- s.test_files = s.files.grep(%r{^test})
++ s.files = Dir["lib/**/*.rb"]
+ s.homepage = %q{http://github.com/ruby-ldap/ruby-net-ldap}
+ s.rdoc_options = ["--main", "README.rdoc"]
+ s.require_paths = ["lib"]
+@@ -33,5 +31,4 @@
+ s.add_development_dependency("rake", "~> 10.0")
+ s.add_development_dependency("rubocop", "~> 0.42.0")
+ s.add_development_dependency("test-unit")
+- s.add_development_dependency("byebug")
+ end