diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-04-29 08:06:55 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-04-29 12:36:41 +0000 |
commit | f58e361776f7398d806321ea9d63f59f5fc38b5d (patch) | |
tree | eea648afb288a35c5b1e2bffb3d3b4442578b08b /unmaintained/ruby-redcarpet/APKBUILD | |
parent | b951abfe754edd478b0a17f12cad5fb56e42eee1 (diff) | |
download | aports-f58e361776f7398d806321ea9d63f59f5fc38b5d.tar.bz2 aports-f58e361776f7398d806321ea9d63f59f5fc38b5d.tar.xz |
move community/ruby-* to unmaintained
Diffstat (limited to 'unmaintained/ruby-redcarpet/APKBUILD')
-rw-r--r-- | unmaintained/ruby-redcarpet/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/unmaintained/ruby-redcarpet/APKBUILD b/unmaintained/ruby-redcarpet/APKBUILD new file mode 100644 index 0000000000..93c77b79a9 --- /dev/null +++ b/unmaintained/ruby-redcarpet/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Markus M. May <triplem@javafreedom.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +_gemname=redcarpet +pkgname=ruby-$_gemname +# redmine 3.0.5 needs ~> 3.3.2 +pkgver=3.3.4 +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="ac276e95369ff2647a1e3caf6ffda8c6 redcarpet-3.3.4.gem" +sha256sums="6fbf59f8fa23f84497cfb9bd1601ec35fa32f400d9034bf861c15dbbc02d6813 redcarpet-3.3.4.gem" +sha512sums="8ef78c351d319b193167a5dc7b45fa39c81b02fe5c0d0102cbbeea2af85ed0b3e7a00b16a58596996739c2538ba3d95bc3e85d6614d85fb845c34891b4c407c2 redcarpet-3.3.4.gem" |