aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2013-11-27 13:41:11 +0800
committerdinoex <dinoex@FreeBSD.org>2013-11-27 13:41:11 +0800
commit159c163062b511a200ff53a9f35490aff5b2c4a9 (patch)
treeabe09721d3b68eff16e6a92d29381759497836b3 /devel
parentfed85cf9aba93dd6f7f32ddb0f9c7e2d636e778d (diff)
downloadfreebsd-ports-gnome-159c163062b511a200ff53a9f35490aff5b2c4a9.tar.gz
freebsd-ports-gnome-159c163062b511a200ff53a9f35490aff5b2c4a9.tar.zst
freebsd-ports-gnome-159c163062b511a200ff53a9f35490aff5b2c4a9.zip
- use STAGEDIR
- use option EXAMPLES
Diffstat (limited to 'devel')
-rw-r--r--devel/ruby-locale/Makefile14
-rw-r--r--devel/ruby-locale/pkg-plist4
2 files changed, 10 insertions, 8 deletions
diff --git a/devel/ruby-locale/Makefile b/devel/ruby-locale/Makefile
index b3275fd174c7..30b2406200e9 100644
--- a/devel/ruby-locale/Makefile
+++ b/devel/ruby-locale/Makefile
@@ -21,13 +21,15 @@ USE_RUBY_EXTCONF= yes
INSTALL_TARGET= site-install
-NO_STAGE= yes
+.include <bsd.port.options.mk>
post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${RUBY_MODEXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/test.rb ${RUBY_MODEXAMPLESDIR}/
- ${MKDIR} ${RUBY_MODDOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_MODDOCDIR}/
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${RUBY_MODDOCDIR}/
+.endif
+.if ${PORT_OPTIONS:MEXAMPLES}
+ ${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/test.rb ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/
.endif
.include <bsd.port.mk>
diff --git a/devel/ruby-locale/pkg-plist b/devel/ruby-locale/pkg-plist
index e7d66bb97a20..676df59ccb86 100644
--- a/devel/ruby-locale/pkg-plist
+++ b/devel/ruby-locale/pkg-plist
@@ -1,5 +1,5 @@
%%RUBY_SITEARCHLIBDIR%%/locale.so
-%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/test.rb
-%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%
+%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/test.rb
+%%PORTEXAMPLES%%@dirrm %%RUBY_MODEXAMPLESDIR%%