aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-15 13:21:08 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-15 14:22:19 +0000
commit132803842057a81574ad22587853f99fa8419a18 (patch)
tree49a19a065723c352e916276c32c5080690917a4a /main
parent0b6343846b5c569120bc303129ab22f5fafc215a (diff)
downloadaports-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/
Diffstat (limited to 'main')
-rw-r--r--main/ruby-mime-types/APKBUILD35
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"