summaryrefslogtreecommitdiffstats
path: root/print/ruby-clibpdf/Makefile
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2000-08-22 15:13:41 +0000
committerknu <knu@FreeBSD.org>2000-08-22 15:13:41 +0000
commit453c1b393069424ae61a233006173c6fb3fdb943 (patch)
tree1490fb30dd37ffa31416f1a0304a4154583dd8f4 /print/ruby-clibpdf/Makefile
parentee960b60c460b8b0a8f869a992f0b151041bdc5b (diff)
downloadFreeBSD-ports-453c1b393069424ae61a233006173c6fb3fdb943.zip
FreeBSD-ports-453c1b393069424ae61a233006173c6fb3fdb943.tar.gz
Add ruby-clibpdf, a Ruby binding for ClibPDF.
Diffstat (limited to 'print/ruby-clibpdf/Makefile')
-rw-r--r--print/ruby-clibpdf/Makefile67
1 files changed, 67 insertions, 0 deletions
diff --git a/print/ruby-clibpdf/Makefile b/print/ruby-clibpdf/Makefile
new file mode 100644
index 0000000..2dcb2ab
--- /dev/null
+++ b/print/ruby-clibpdf/Makefile
@@ -0,0 +1,67 @@
+# New ports collection makefile for: Ruby-ClibPDF
+# Date created: 22 Aug 2000
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= clibpdf
+PORTVERSION= 19991016
+CATEGORIES= print ruby
+MASTER_SITES= http://www2s.biglobe.ne.jp/~Nori/ruby/
+PKGNAMEPREFIX= ruby-
+DISTNAME= ClibPDF-ALPHA-${PORTVERSION}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+LIB_DEPENDS= cpdf.0:${PORTSDIR}/print/clibpdf
+RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+
+INSTALL_TARGET= site-install
+CONFIGURE_ARGS= --with-opt-dir="${LOCALBASE}"
+
+WRKSRC= ${WRKDIR}/ClibPDF-${PORTVERSION}
+PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
+
+RUBY?= ${LOCALBASE}/bin/ruby
+RUBY_VER?= 1.4
+RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
+
+EXAMPLES_EN= Arcs.rb DomainDemo.rb MarkerTest.rb Minimal.rb \
+ beziertest.rb charwidth.rb cover.rb dashtest.rb \
+ filltest.rb fontlist.rb helloworld.rb linkpdfpage.rb \
+ outline.rb textalign.rb textboxfit.rb timeaxis.rb \
+ weather.rb
+EXAMPLES_JA= jpntest.rb
+
+DOCS_EN= README
+DOCS_JA= ChangeLog.ja README.ja TODO.ja
+
+post-extract:
+ ${RM} ${WRKSRC}/examples/*.pdf
+
+do-configure:
+ @cd ${WRKSRC}; \
+ ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/examples/ruby/clibpdf/ja
+.for f in ${EXAMPLES_EN}
+ ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${PREFIX}/share/examples/ruby/clibpdf/
+.endfor
+.for f in ${EXAMPLES_JA}
+ ${INSTALL_DATA} ${WRKSRC}/examples/${f} ${PREFIX}/share/examples/ruby/clibpdf/ja/
+.endfor
+ ${MKDIR} ${PREFIX}/share/doc/ruby/clibpdf/ja
+.for f in ${DOCS_EN}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/clibpdf/
+.endfor
+.for f in ${DOCS_JA}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/clibpdf/ja/
+.endfor
+.endif
+
+.include <bsd.port.mk>
OpenPOWER on IntegriCloud