summaryrefslogtreecommitdiff
path: root/print/ruby-panda
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2001-04-01 21:43:25 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2001-04-01 21:43:25 +0000
commit8f15e0febd8a2b48774aa4a996dfedafa081d835 (patch)
tree4425a161c851002c1fd5f1ab8eb63ef67b4e215c /print/ruby-panda
parentDo a ${MV} with -f so that the installation process won't stop and ask (diff)
Add ruby-panda, a Ruby extension library to access Panda, a GPL'ed
library for dynamically generating PDF files.
Notes
Notes: svn path=/head/; revision=40702
Diffstat (limited to 'print/ruby-panda')
-rw-r--r--print/ruby-panda/Makefile51
-rw-r--r--print/ruby-panda/distinfo1
-rw-r--r--print/ruby-panda/files/patch-extconf.rb19
-rw-r--r--print/ruby-panda/pkg-comment1
-rw-r--r--print/ruby-panda/pkg-descr5
-rw-r--r--print/ruby-panda/pkg-plist16
6 files changed, 93 insertions, 0 deletions
diff --git a/print/ruby-panda/Makefile b/print/ruby-panda/Makefile
new file mode 100644
index 000000000000..69d3bc015c04
--- /dev/null
+++ b/print/ruby-panda/Makefile
@@ -0,0 +1,51 @@
+# New ports collection makefile for: Ruby/Panda
+# Date created: 28 March 2001
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= panda
+PORTVERSION= 0.0.2
+CATEGORIES= print ruby
+MASTER_SITES= http://www2s.biglobe.ne.jp/~Nori/ruby/dist/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= ruby-${PORTNAME}-${PORTVERSION}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+LIB_DEPENDS= panda.0:${PORTSDIR}/print/panda \
+ jpeg.9:${PORTSDIR}/graphics/jpeg \
+ png.4:${PORTSDIR}/graphics/png \
+ tiff.4:${PORTSDIR}/graphics/tiff
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+CONFIGURE_ARGS= --with-cflags="${PTHREAD_CFLAGS}" \
+ --with-ldflags="${PTHREAD_LIBS}"
+INSTALL_TARGET= site-install
+
+DOCS_EN= README
+DOCS_JA= ChangeLog.ja README.ja TODO.ja
+EXAMPLES_EN= main.rb
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME}
+.for f in ${EXAMPLES_EN}
+ ${INSTALL_DATA} ${WRKSRC}/samples/${f} ${RUBY_EXAMPLESDIR}/${PORTNAME}/
+.endfor
+ cd ${RUBY_EXAMPLESDIR}/${PORTNAME} && ${LN} -sf ../../panda/*.jpg ../../panda/*.png ../../panda/*.tif .
+ ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME}/ja
+.for f in ${DOCS_EN}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/
+.endfor
+.for f in ${DOCS_JA}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ja/
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/print/ruby-panda/distinfo b/print/ruby-panda/distinfo
new file mode 100644
index 000000000000..655b069bd2f7
--- /dev/null
+++ b/print/ruby-panda/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/ruby-panda-0.0.2.tar.gz) = b3d5b3d4f505a38d6a4b547db37d9172
diff --git a/print/ruby-panda/files/patch-extconf.rb b/print/ruby-panda/files/patch-extconf.rb
new file mode 100644
index 000000000000..e2c02d204fd9
--- /dev/null
+++ b/print/ruby-panda/files/patch-extconf.rb
@@ -0,0 +1,19 @@
+--- extconf.rb.orig Sun Feb 18 10:29:04 2001
++++ extconf.rb Wed Mar 28 18:55:31 2001
+@@ -1,7 +1,7 @@
+
+ require "mkmf"
+
+-$LDFLAGS += " -L/usr/local/lib"
++dir_config('panda')
+
+ have_library("m", "floor")
+
+@@ -9,6 +9,6 @@
+ have_library("jpeg", "jpeg_CreateDecompress") &&
+ have_library("tiff", "TIFFOpen") &&
+ have_library("png", "png_init_io") &&
+- have_library("panda", "pdfopen")
++ have_library("panda", "panda_open")
+ create_makefile("panda")
+ end
diff --git a/print/ruby-panda/pkg-comment b/print/ruby-panda/pkg-comment
new file mode 100644
index 000000000000..213485977980
--- /dev/null
+++ b/print/ruby-panda/pkg-comment
@@ -0,0 +1 @@
+A Ruby extension library to access Panda
diff --git a/print/ruby-panda/pkg-descr b/print/ruby-panda/pkg-descr
new file mode 100644
index 000000000000..8b7928e8ac62
--- /dev/null
+++ b/print/ruby-panda/pkg-descr
@@ -0,0 +1,5 @@
+Ruby/Panda is a Ruby extension library to access Panda, a GPL'ed
+library for dynamically generating PDF files.
+
+Author: Noritsugu Nakamura <nnakamur@mxq.mesh.ne.jp>
+WWW: http://www2s.biglobe.ne.jp/~Nori/ruby/
diff --git a/print/ruby-panda/pkg-plist b/print/ruby-panda/pkg-plist
new file mode 100644
index 000000000000..43d46fe0a949
--- /dev/null
+++ b/print/ruby-panda/pkg-plist
@@ -0,0 +1,16 @@
+%%RUBY_SITEARCHLIBDIR%%/panda.so
+%%PORTDOCS%%%%RUBY_DOCDIR%%/panda/README
+%%PORTDOCS%%%%RUBY_DOCDIR%%/panda/ja/ChangeLog.ja
+%%PORTDOCS%%%%RUBY_DOCDIR%%/panda/ja/README.ja
+%%PORTDOCS%%%%RUBY_DOCDIR%%/panda/ja/TODO.ja
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/panda/ja
+%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/panda
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/panda/brave-gnu.png
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/panda/gnu-head.jpg
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/panda/gnu-head.png
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/panda/gnu_box.jpg
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/panda/input-ms.tif
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/panda/input.tif
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/panda/input2.tif
+%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/panda/main.rb
+%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/panda