aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-rbpdf-font/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-04-29 08:06:55 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-04-29 12:36:41 +0000
commitf58e361776f7398d806321ea9d63f59f5fc38b5d (patch)
treeeea648afb288a35c5b1e2bffb3d3b4442578b08b /unmaintained/ruby-rbpdf-font/APKBUILD
parentb951abfe754edd478b0a17f12cad5fb56e42eee1 (diff)
downloadaports-f58e361776f7398d806321ea9d63f59f5fc38b5d.tar.bz2
aports-f58e361776f7398d806321ea9d63f59f5fc38b5d.tar.xz
move community/ruby-* to unmaintained
Diffstat (limited to 'unmaintained/ruby-rbpdf-font/APKBUILD')
-rw-r--r--unmaintained/ruby-rbpdf-font/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/unmaintained/ruby-rbpdf-font/APKBUILD b/unmaintained/ruby-rbpdf-font/APKBUILD
new file mode 100644
index 0000000000..0699a07b1e
--- /dev/null
+++ b/unmaintained/ruby-rbpdf-font/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=ruby-rbpdf-font
+_gemname=rbpdf-font
+pkgver=1.19.0
+pkgrel=0
+pkgdesc="RBPDF font files"
+url="https://github.com/naitoh/rbpdf"
+arch="noarch"
+license="GPL"
+depends="ruby ttf2ufm"
+depends_dev=""
+makedepends="$depends_dev ruby-dev"
+install=""
+subpackages=""
+source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem"
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+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
+ # do not use the included ttf2ufm but use system one.
+ ln -sf /usr/bin/ttf2ufm \
+ $pkgdir/$_geminstdir/lib/fonts/ttf2ufm/ttf2ufm || return 1
+}
+md5sums="547e75d0a21e02e68c85484456086743 rbpdf-font-1.19.0.gem"
+sha256sums="2304ff2605dd7bce2334aacee8526a9c865bb4c28e9ec8338a60f5d62017e89b rbpdf-font-1.19.0.gem"
+sha512sums="215a2c99f90ba76a4b1da93a59787557bd326fe8a3e41bfe31bd8c9d7e9b763667f70e781b3bc47b2ae2c2d463836d034315bf2583cc8a6da48cbcde461322ec rbpdf-font-1.19.0.gem"