diff --git a/sysutils/ruby-quota/Makefile b/sysutils/ruby-quota/Makefile index 4bf93f01cb25..f837432a451b 100644 --- a/sysutils/ruby-quota/Makefile +++ b/sysutils/ruby-quota/Makefile @@ -12,23 +12,23 @@ DIST_SUBDIR= ruby MAINTAINER= ruby@FreeBSD.org COMMENT= A Ruby library to manipulate filesystem quotas +OPTIONS_DEFINE= DOCS EXAMPLES USE_RUBY= yes USE_RUBY_EXTCONF= yes WRKSRC= ${WRKDIR}/ruby-${PORTNAME}-${PORTVERSION} +MAKE_ARGS= INSTALL_PROG="${INSTALL_PROGRAM}" \ + INSTALL_DATA="${INSTALL_DATA}" INSTALL_TARGET= site-install DOCS_EN= ChangeLog README README.html -NO_STAGE= yes post-install: -.if !defined(NOPORTDOCS) - ${MKDIR} ${RUBY_MODDOCDIR} + @${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR} .for f in ${DOCS_EN} - ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/ .endfor - ${MKDIR} ${RUBY_MODEXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/test.rb ${RUBY_MODEXAMPLESDIR}/ -.endif + @${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/test.rb ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ .include diff --git a/sysutils/ruby-quota/pkg-plist b/sysutils/ruby-quota/pkg-plist index 1eb963afda22..6cee29e5f0bf 100644 --- a/sysutils/ruby-quota/pkg-plist +++ b/sysutils/ruby-quota/pkg-plist @@ -1,6 +1,6 @@ %%RUBY_SITEARCHLIBDIR%%/quota.so -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/test.rb -%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%% +%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/test.rb +%%PORTEXAMPLES%%@dirrm %%RUBY_MODEXAMPLESDIR%% %%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog %%PORTDOCS%%%%RUBY_MODDOCDIR%%/README %%PORTDOCS%%%%RUBY_MODDOCDIR%%/README.html