aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-03-26 12:08:58 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-03-26 14:21:45 +0000
commit69fb04c4dd7f4b27ea3234e687cb33e4d5fe9e25 (patch)
tree6cf96704c92ba61c2931dc8da24234aa23c59fbc /main
parentf8b65c365b9ff62a6a28239b295f68c25a9eefb0 (diff)
downloadaports-69fb04c4dd7f4b27ea3234e687cb33e4d5fe9e25.tar.bz2
aports-69fb04c4dd7f4b27ea3234e687cb33e4d5fe9e25.tar.xz
main/ruby-redcarpet: new aport (for redmine)
Diffstat (limited to 'main')
-rw-r--r--main/ruby-redcarpet/APKBUILD46
1 files changed, 46 insertions, 0 deletions
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 <ncopa@alpinelinux.org>
+_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"