summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-10-15 13:28:17 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-10-15 14:22:19 +0000
commitdb7d4225ee98a51604803e704a514c9b9d3831bf (patch)
tree8f12099938536d254b02ae36af8c2e5fd1fff515 /main
parent1a2b3d8b411ac1de6d1904dbbbac108ab0c939bf (diff)
downloadaports-db7d4225ee98a51604803e704a514c9b9d3831bf.tar.bz2
aports-db7d4225ee98a51604803e704a514c9b9d3831bf.tar.xz
main/ruby-mail: new aport
A really Ruby Mail handler http://github.com/mikel/mail
Diffstat (limited to 'main')
-rw-r--r--main/ruby-mail/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/main/ruby-mail/APKBUILD b/main/ruby-mail/APKBUILD
new file mode 100644
index 000000000..75664fe48
--- /dev/null
+++ b/main/ruby-mail/APKBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+_gemname=mail
+pkgname=ruby-$_gemname
+pkgver=2.4.4
+pkgrel=0
+pkgdesc="A really Ruby Mail handler"
+url="http://github.com/mikel/mail"
+arch="noarch"
+license="MIT"
+depends="ruby ruby-i18n ruby-mime-types ruby-treetop"
+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="bacad77f57d123cf58de6c2de47d19b0 mail-2.4.4.gem"