aboutsummaryrefslogtreecommitdiffstats
path: root/devel/rubygem-gettext
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 /devel/rubygem-gettext
parent1900d9b4804ade641a7bbef2252af134e5f2ba8f (diff)
downloadfreebsd-ports-graphics-9c46f078394d114e50ad01ff921a88b74dda7eb1.tar.gz
freebsd-ports-graphics-9c46f078394d114e50ad01ff921a88b74dda7eb1.tar.zst
freebsd-ports-graphics-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 'devel/rubygem-gettext')
-rw-r--r--devel/rubygem-gettext/Makefile16
-rw-r--r--devel/rubygem-gettext/pkg-plist4
2 files changed, 10 insertions, 10 deletions
diff --git a/devel/rubygem-gettext/Makefile b/devel/rubygem-gettext/Makefile
index f2e7bcf0ddd..a2512d61131 100644
--- a/devel/rubygem-gettext/Makefile
+++ b/devel/rubygem-gettext/Makefile
@@ -19,24 +19,24 @@ MAINTAINER= knu@FreeBSD.org
BUILD_DEPENDS= msgfmt:${PORTSDIR}/devel/gettext
USE_RUBY= yes
-USE_RUBY_RDTOOL= yes
USE_RUBY_SETUP= yes
RUBY_SETUP= install.rb
+RUBY_RD_FILES= # defined
RUBY_SHEBANG_FILES= ${WRKSRC}/samples/*.rb
-post-build:
+post-install: doc-install
+
+.include <bsd.port.mk>
+
+doc-install:
.if !defined(NOPORTDOCS)
+.if !defined(RUBY_NO_RD_HTML)
cd ${WRKSRC}/docs; ${RUBY} makehtml.rb
- cd ${WRKSRC}/samples; ${RUBY} makemo.rb
.endif
-
-post-install:
-.if !defined(NOPORTDOCS)
+ cd ${WRKSRC}/samples; ${RUBY} makemo.rb
${MKDIR} ${RUBY_MODEXAMPLESDIR}
${CP} -R ${WRKSRC}/samples/* ${RUBY_MODEXAMPLESDIR}/
${MKDIR} ${RUBY_MODDOCDIR}
${CP} -R ${WRKSRC}/docs/* ${RUBY_MODDOCDIR}/
.endif
-
-.include <bsd.port.mk>
diff --git a/devel/rubygem-gettext/pkg-plist b/devel/rubygem-gettext/pkg-plist
index 140b127da44..5f2a7aeda4f 100644
--- a/devel/rubygem-gettext/pkg-plist
+++ b/devel/rubygem-gettext/pkg-plist
@@ -45,8 +45,8 @@ share/locale/ja/LC_MESSAGES/rgettext.mo
%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/config.rb
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/html/en/ruby-gettext.html
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/html/ja/ruby-gettext.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/html/en/ruby-gettext.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/html/ja/ruby-gettext.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/html/style.css
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/makehtml.rb
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/rd/en/LANGUAGE