summaryrefslogtreecommitdiff
path: root/graphics/ruby-gd
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-04-04 15:30:00 +0000
committerjlam <jlam@pkgsrc.org>2008-04-04 15:30:00 +0000
commit49044b1ec2caacbe0cd6751700981b592cdb06b1 (patch)
treec080e0fce7907456de3fe1768865d098adfb51fd /graphics/ruby-gd
parentd5b336e4ba6b8a28d7b0778f55c1cbb057689834 (diff)
downloadpkgsrc-49044b1ec2caacbe0cd6751700981b592cdb06b1.tar.gz
Install as a gem using the pkgsrc rubygem.mk framework instead of
directly into site_ruby.
Diffstat (limited to 'graphics/ruby-gd')
-rw-r--r--graphics/ruby-gd/Makefile35
-rw-r--r--graphics/ruby-gd/PLIST36
-rw-r--r--graphics/ruby-gd/distinfo8
3 files changed, 43 insertions, 36 deletions
diff --git a/graphics/ruby-gd/Makefile b/graphics/ruby-gd/Makefile
index ec4d8a66e7a..d851478e088 100644
--- a/graphics/ruby-gd/Makefile
+++ b/graphics/ruby-gd/Makefile
@@ -1,33 +1,30 @@
-# $NetBSD: Makefile,v 1.21 2007/10/28 02:09:36 taca Exp $
+# $NetBSD: Makefile,v 1.22 2008/04/04 15:30:01 jlam Exp $
-DISTNAME= ruby-GD-${VER}-1
-PKGNAME= ${RUBY_PKGPREFIX}-gd-${VER}.1
-PKGREVISION= 6
-CATEGORIES= graphics ruby
-MASTER_SITES= http://raa.ruby-lang.org/cache/ruby-gd/
+DISTNAME= ruby-gd-0.7.4
+PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/ruby-//}.1
+PKGREVISION= 7
+CATEGORIES= graphics
MAINTAINER= pkgsrc-users@NetBSD.org
-HOMEPAGE= # not available
+HOMEPAGE= http://rubyforge.org/projects/ruby-gd/
COMMENT= Ruby extension to drive the GD library
-RUBY_HAS_ARCHLIB= yes
-USE_RUBY_EXTCONF= yes
-WRKSRC= ${WRKDIR}/ruby-GD-${VER}
-VER= 0.7.4
+GEM_BUILD= gemspec
+GEM_CLEANBUILD= Makefile *.o GD.${RUBY_DLEXT} mkmf.log
-CONFIGURE_ARGS+= --with-gd-dir=${PREFIX:Q}
+CONFIGURE_ARGS+= --with-gd-dir=${BUILDLINK_PREFIX.gd:Q}
+CONFIGURE_ARGS+= --with-jpeg
+CONFIGURE_ARGS+= --with-jpeg-dir=${BUILDLINK_PREFIX.jpeg:Q}
CONFIGURE_ARGS+= --with-ttf
-CONFIGURE_ARGS+= --with-ttf-dir=${PREFIX:Q}
+CONFIGURE_ARGS+= --with-ttf-dir=${BUILDLINK_PREFIX.freetype-lib:Q}
CONFIGURE_ARGS+= --with-freetype
-CONFIGURE_ARGS+= --with-freetype-dir=${PREFIX:Q}
+CONFIGURE_ARGS+= --with-freetype-dir=${BUILDLINK_PREFIX.freetype2:Q}
CONFIGURE_ARGS+= --enable-gd2_0
-post-install:
- ${CP} -R ${WRKSRC}/doc ${RUBY_DOCDIR}/gd
- ${CP} -R ${WRKSRC}/sample ${RUBY_EXAMPLESDIR}/gd
+.include "../../misc/rubygems/rubygem.mk"
-.include "../../graphics/gd/buildlink3.mk"
.include "../../graphics/freetype-lib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
-.include "../../lang/ruby/modules.mk"
+.include "../../graphics/jpeg/buildlink3.mk"
+.include "../../graphics/gd/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/ruby-gd/PLIST b/graphics/ruby-gd/PLIST
index 84d1e50f1e1..8fc5b740027 100644
--- a/graphics/ruby-gd/PLIST
+++ b/graphics/ruby-gd/PLIST
@@ -1,13 +1,23 @@
-@comment $NetBSD: PLIST,v 1.4 2006/09/07 15:53:48 taca Exp $
-${RUBY_SITEARCHLIBDIR}/GD.${RUBY_DLEXT}
-${RUBY_EXAMPLESDIR}/gd/example.rb
-${RUBY_EXAMPLESDIR}/gd/gdtestttf.png
-${RUBY_EXAMPLESDIR}/gd/gdtestttf.rb
-${RUBY_EXAMPLESDIR}/gd/webpng.rb
-${RUBY_DOCDIR}/gd/INSTALL.en
-${RUBY_DOCDIR}/gd/INSTALL.ja
-${RUBY_DOCDIR}/gd/manual.html
-${RUBY_DOCDIR}/gd/manual.rd
-${RUBY_DOCDIR}/gd/manual_index.html
-@dirrm ${RUBY_EXAMPLESDIR}/gd
-@dirrm ${RUBY_DOCDIR}/gd
+@comment $NetBSD: PLIST,v 1.5 2008/04/04 15:30:01 jlam Exp $
+${GEM_HOME}/cache/ruby-gd-0.7.4.gem
+${GEM_LIBDIR}/Changes
+${GEM_LIBDIR}/GD.c
+${GEM_LIBDIR}/doc/INSTALL.en
+${GEM_LIBDIR}/doc/INSTALL.ja
+${GEM_LIBDIR}/doc/manual.html
+${GEM_LIBDIR}/doc/manual.rd
+${GEM_LIBDIR}/doc/manual_index.html
+${GEM_LIBDIR}/extconf.rb
+${GEM_LIBDIR}/lib/GD.${RUBY_DLEXT}
+${GEM_LIBDIR}/readme.en
+${GEM_LIBDIR}/readme.ja
+${GEM_LIBDIR}/sample/example.rb
+${GEM_LIBDIR}/sample/gdtestttf.png
+${GEM_LIBDIR}/sample/gdtestttf.rb
+${GEM_LIBDIR}/sample/webpng.rb
+${GEM_HOME}/specifications/ruby-gd-0.7.4.gemspec
+@dirrm ${GEM_LIBDIR}/sample
+@dirrm ${GEM_LIBDIR}/lib
+@dirrm ${GEM_LIBDIR}/doc
+@dirrm ${GEM_LIBDIR}
+@exec ${MKDIR} %D/${GEM_DOCDIR}/rdoc/classes
diff --git a/graphics/ruby-gd/distinfo b/graphics/ruby-gd/distinfo
index dc2dd3abf73..b271930a86d 100644
--- a/graphics/ruby-gd/distinfo
+++ b/graphics/ruby-gd/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.3 2006/01/03 14:25:50 taca Exp $
+$NetBSD: distinfo,v 1.4 2008/04/04 15:30:01 jlam Exp $
-SHA1 (ruby-GD-0.7.4-1.tar.gz) = 87ad45f8b224ab2abb87d289112a245f58b16218
-RMD160 (ruby-GD-0.7.4-1.tar.gz) = a1d941cc44c22f25cff0ee964c8dcb6eb00f9749
-Size (ruby-GD-0.7.4-1.tar.gz) = 38725 bytes
+SHA1 (ruby-gd-0.7.4.gem) = 35f2bd3810f77da1f7bc2ce6bdfdcd50000cad6b
+RMD160 (ruby-gd-0.7.4.gem) = 28db1a6e12c601c0acb2329d1f694b9f0276a189
+Size (ruby-gd-0.7.4.gem) = 41472 bytes