aboutsummaryrefslogtreecommitdiffstats
path: root/print/ruby-pdflib
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2002-12-07 01:17:38 +0800
committerknu <knu@FreeBSD.org>2002-12-07 01:17:38 +0800
commit9c46f078394d114e50ad01ff921a88b74dda7eb1 (patch)
tree4810246f6e2ebdc6787c76cd4552ffabb88ae682 /print/ruby-pdflib
parent1900d9b4804ade641a7bbef2252af134e5f2ba8f (diff)
downloadfreebsd-ports-gnome-9c46f078394d114e50ad01ff921a88b74dda7eb1.tar.gz
freebsd-ports-gnome-9c46f078394d114e50ad01ff921a88b74dda7eb1.tar.zst
freebsd-ports-gnome-9c46f078394d114e50ad01ff921a88b74dda7eb1.zip
Introduce a knob RUBY_NO_RD_HTML and enable it by default on alpha. This
replaces the non-working NOPORTDOCS workaround and fixes build on the alpha, where rd2 coredumps. Tested on: the axp cluster Approved by: kris
Diffstat (limited to 'print/ruby-pdflib')
-rw-r--r--print/ruby-pdflib/Makefile26
-rw-r--r--print/ruby-pdflib/pkg-plist4
2 files changed, 13 insertions, 17 deletions
diff --git a/print/ruby-pdflib/Makefile b/print/ruby-pdflib/Makefile
index 1655da5e68ab..59a8a344de99 100644
--- a/print/ruby-pdflib/Makefile
+++ b/print/ruby-pdflib/Makefile
@@ -22,30 +22,28 @@ LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
-USE_RUBY_RDTOOL= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
INSTALL_TARGET= site-install
+RUBY_RD_FILES= pdflib-api.rd pdflib-api-jp.rd
+
DOCS_EN= ChangeLog README \
- ${RD_DOCS_EN} ${RD_DOCS_EN:S/.rd/.html/}
+ ${RUBY_RD_FILES:N*-jp.rd} \
+ ${RUBY_RD_HTML_FILES:N*-jp.html}
DOCS_JA= ChangeLog.jp README.jp \
- ${RD_DOCS_JA} ${RD_DOCS_JA:S/.rd/.html/}
-RD_DOCS_EN= pdflib-api.rd
-RD_DOCS_JA= pdflib-api-jp.rd
+ ${RUBY_RD_FILES:M*-jp.rd} \
+ ${RUBY_RD_HTML_FILES:M*-jp.html}
+
EXAMPLES_EN= hello.rb pdfclock.rb pdfgraph.rb \
pdfimage.rb text2pdf.rb
EXAMPLES_JA= jtext2pdf.rb
-post-build:
-.if !defined(NOPORTDOCS)
-.for f in ${RD_DOCS_EN} ${RD_DOCS_JA}
- cd ${WRKSRC}; \
- ${RUBY_RD2} ${f} > ${f:S/.rd/.html/}
-.endfor
-.endif
+post-install: doc-install
-post-install:
+.include <bsd.port.mk>
+
+doc-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODEXAMPLESDIR}/ja
.for f in ${EXAMPLES_EN}
@@ -62,5 +60,3 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
.endfor
.endif
-
-.include <bsd.port.mk>
diff --git a/print/ruby-pdflib/pkg-plist b/print/ruby-pdflib/pkg-plist
index 29020613836a..d8a6805009fc 100644
--- a/print/ruby-pdflib/pkg-plist
+++ b/print/ruby-pdflib/pkg-plist
@@ -1,11 +1,11 @@
%%RUBY_SITEARCHLIBDIR%%/pdflib.so
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/pdflib-api.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/pdflib-api.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/pdflib-api.rd
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/ChangeLog.jp
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/README.jp
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/pdflib-api-jp.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/ja/pdflib-api-jp.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/pdflib-api-jp.rd
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/ja
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%