diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 13:21:08 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-15 14:22:19 +0000 |
commit | 132803842057a81574ad22587853f99fa8419a18 (patch) | |
tree | 49a19a065723c352e916276c32c5080690917a4a | |
parent | 0b6343846b5c569120bc303129ab22f5fafc215a (diff) | |
download | aports-132803842057a81574ad22587853f99fa8419a18.tar.bz2 aports-132803842057a81574ad22587853f99fa8419a18.tar.xz |
main/ruby-mime-types: new aport
Ruby library for identification of a file's likely MIME content type
http://mime-types.rubyforge.org/
-rw-r--r-- | main/ruby-mime-types/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/main/ruby-mime-types/APKBUILD b/main/ruby-mime-types/APKBUILD new file mode 100644 index 0000000000..204feb578d --- /dev/null +++ b/main/ruby-mime-types/APKBUILD @@ -0,0 +1,35 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +_gemname=mime-types +pkgname=ruby-$_gemname +pkgver=1.19 +pkgrel=0 +pkgdesc="Ruby library for identification of a file's likely MIME content type" +url="http://mime-types.rubyforge.org/" +arch="noarch" +license="ruby or Perl Artistic or GPLv2+" +depends="ruby" +depends_dev= +makedepends="$depends_dev ruby-gems" +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 +} + +md5sums="bac5de01159cc2df1199b84e326e66ea mime-types-1.19.gem" |