From 159c163062b511a200ff53a9f35490aff5b2c4a9 Mon Sep 17 00:00:00 2001 From: dinoex Date: Wed, 27 Nov 2013 05:41:11 +0000 Subject: - use STAGEDIR - use option EXAMPLES --- devel/ruby-locale/Makefile | 14 ++++++++------ devel/ruby-locale/pkg-plist | 4 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) (limited to 'devel') 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 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 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%% -- cgit