From fd488d264467fc81f44a3e879d67c8eaf6c762a0 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Mon, 7 Apr 2014 14:28:09 +0000 Subject: [PATCH] Support stage --- graphics/ruby-svg/Makefile | 25 ++++++++++++++----------- graphics/ruby-svg/pkg-plist | 13 ------------- 2 files changed, 14 insertions(+), 24 deletions(-) diff --git a/graphics/ruby-svg/Makefile b/graphics/ruby-svg/Makefile index 4ee0a8bb6315..e0686271d16e 100644 --- a/graphics/ruby-svg/Makefile +++ b/graphics/ruby-svg/Makefile @@ -10,7 +10,9 @@ DISTNAME= ruby-${PORTNAME}-${PORTVERSION} DIST_SUBDIR= ruby MAINTAINER= ruby@FreeBSD.org -COMMENT= A Ruby library for generating SVG files +COMMENT= Ruby library for generating SVG files + +OPTIONS_DEFINE= DOCS EXAMPLES USE_RUBY= yes USE_RUBY_FEATURES= zlib @@ -19,21 +21,22 @@ NO_BUILD= yes DOCS_EN= README.en.rd DOCS_JA= README.ja.rd +DOCSDIR= ${RUBY_MODDOCDIR} +EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR} +PORTDOCS= * +PORTEXAMPLES= * -NO_STAGE= yes do-install: - ${MKDIR} ${RUBY_SITELIBDIR}/svg - ${INSTALL_DATA} ${WRKSRC}/lib/svg/*.rb ${RUBY_SITELIBDIR}/svg/ -.if !defined(NOPORTDOCS) - ${MKDIR} ${RUBY_MODEXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/sample/*.rb ${RUBY_MODEXAMPLESDIR}/ - ${MKDIR} ${RUBY_MODDOCDIR}/ja + @${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR}/svg + ${INSTALL_DATA} ${WRKSRC}/lib/svg/*.rb ${STAGEDIR}${RUBY_SITELIBDIR}/svg/ + @${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/sample/*.rb ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ + @${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR}/ja .for f in ${DOCS_EN} - ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/ .endfor .for f in ${DOCS_JA} - ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/ja/ .endfor -.endif .include diff --git a/graphics/ruby-svg/pkg-plist b/graphics/ruby-svg/pkg-plist index 178dd43c7969..d0f4adac0e1a 100644 --- a/graphics/ruby-svg/pkg-plist +++ b/graphics/ruby-svg/pkg-plist @@ -4,16 +4,3 @@ %%RUBY_SITELIBDIR%%/svg/style.rb %%RUBY_SITELIBDIR%%/svg/svg.rb @dirrm %%RUBY_SITELIBDIR%%/svg -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/sample1.rb -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/sample2.rb -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/sample3.rb -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/sample4.rb -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/sample5.rb -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/sample6.rb -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/sample7.rb -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/sample8.rb -%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%% -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README.en.rd -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/README.ja.rd -%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/ja -%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%