From 69fb04c4dd7f4b27ea3234e687cb33e4d5fe9e25 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 26 Mar 2015 12:08:58 +0000 Subject: main/ruby-redcarpet: new aport (for redmine) --- main/ruby-redcarpet/APKBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 main/ruby-redcarpet/APKBUILD (limited to 'main') diff --git a/main/ruby-redcarpet/APKBUILD b/main/ruby-redcarpet/APKBUILD new file mode 100644 index 0000000000..27e8805fe9 --- /dev/null +++ b/main/ruby-redcarpet/APKBUILD @@ -0,0 +1,46 @@ +# Maintainer: Natanael Copa +_gemname=redcarpet +pkgname=ruby-$_gemname +# redmine 3.0 needs ~> 3.1.2 +pkgver=3.1.2 +pkgrel=0 +pkgdesc="A fast, safe and extensible Markdown to (X)HTML parser" +url="http://github.com/vmg/redcarpet" +arch="all" +license="MIT" +depends="ruby" +depends_dev= +makedepends="$depends_dev ruby-dev" +install="" +subpackages="" +source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem" + +_builddir="$srcdir"/$_realname-$pkgver +build() { + return 0 +} + +package() { + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + local _geminstdir=$_gemdir/gems/$_gemname-$pkgver + mkdir -p "$pkgdir" || return 1 + + gem install --local --install-dir "$pkgdir"/$_gemdir \ + --ignore-dependencies --verbose --no-rdoc --no-ri \ + "$srcdir"/$_gemname-$pkgver.gem || return 1 + rm -rf "$pkgdir"/$_gemdir/cache \ + "$pkgdir"/$_geminstdir/ext \ + "$pkgdir"/$_geminstdir/.require_paths + + cd "$pkgdir" + for i in usr/lib/ruby/gems/*/bin/*; do + if [ -e "$i" ]; then + mkdir -p "$pkgdir"/usr/bin + ln -s /$i "$pkgdir"/usr/bin/ + fi + done +} + +md5sums="b7423381fced7c6a9153f6ab629539a9 redcarpet-3.1.2.gem" +sha256sums="ff5397c2b0d1344f065d07e58ed157f5bc25b49d44e723348620693ba928d71c redcarpet-3.1.2.gem" +sha512sums="ab431d36326a0c4e482885dd00600a50617a57a7150437544ee845ee5225c35b546ed9484032b284d2523b2e4f6a56df448b48026f1a18b09ac9071afa816b31 redcarpet-3.1.2.gem" -- cgit v1.2.3