From 3b3342a73b3d15460b2df053b70bc53c6eee6438 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Mon, 7 Apr 2014 16:18:07 +0000 Subject: [PATCH] support stage --- textproc/ruby-rss/Makefile | 22 +++++++++++----------- textproc/ruby-rss/pkg-plist | 10 +++++----- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/textproc/ruby-rss/Makefile b/textproc/ruby-rss/Makefile index b2ff027aadf6..89f8be1aee6c 100644 --- a/textproc/ruby-rss/Makefile +++ b/textproc/ruby-rss/Makefile @@ -13,6 +13,8 @@ DIST_SUBDIR= ruby MAINTAINER= ruby@FreeBSD.org COMMENT= Ruby library for parsing, creating, downloading, and caching RSS +OPTIONS_DEFINE= DOCS EXAMPLES + RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/xmlparser.so:${PORTSDIR}/textproc/ruby-xmlparser CONFLICTS= ruby-rss.alt-* @@ -25,19 +27,17 @@ INSTALL_TARGET= site-install RUBY_SHEBANG_FILES= ${WRKSRC}/rssdrb.rb ${WRKSRC}/samples/rsstest.rb DOCS= ChangeLog README -NO_STAGE= yes do-install: - ${INSTALL_DATA} ${WRKSRC}/rss*.rb ${RUBY_SITELIBDIR}/ - ${CHMOD} +x ${RUBY_SITELIBDIR}/rssdrb.rb - ${LN} -fs ${RUBY_SITELIBDIR}/rssdrb.rb ${PREFIX}/sbin/ - ${LN} -fs rssdrb.rb ${PREFIX}/sbin/rssdrb -.if !defined(NOPORTDOCS) - ${MKDIR} ${RUBY_MODEXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/samples/* ${RUBY_MODEXAMPLESDIR}/ - ${MKDIR} ${RUBY_MODDOCDIR} + @${MKDIR} ${STAGEDIR}${RUBY_SITELIBDIR} + ${INSTALL_DATA} ${WRKSRC}/rss*.rb ${STAGEDIR}${RUBY_SITELIBDIR}/ + ${CHMOD} +x ${STAGEDIR}${RUBY_SITELIBDIR}/rssdrb.rb + ${LN} -fs ${RUBY_SITELIBDIR}/rssdrb.rb ${STAGEDIR}${PREFIX}/sbin/ + ${LN} -fs rssdrb.rb ${STAGEDIR}${PREFIX}/sbin/rssdrb + @${MKDIR} ${STAGEDIR}${RUBY_MODEXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/samples/* ${STAGEDIR}${RUBY_MODEXAMPLESDIR}/ + @${MKDIR} ${STAGEDIR}${RUBY_MODDOCDIR} .for f in ${DOCS} - ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${RUBY_MODDOCDIR}/ .endfor -.endif .include diff --git a/textproc/ruby-rss/pkg-plist b/textproc/ruby-rss/pkg-plist index 3f6f3ba3650c..a6aac0a9dddd 100644 --- a/textproc/ruby-rss/pkg-plist +++ b/textproc/ruby-rss/pkg-plist @@ -3,11 +3,11 @@ sbin/rssdrb.rb %%RUBY_SITELIBDIR%%/rss.rb %%RUBY_SITELIBDIR%%/rsscache.rb %%RUBY_SITELIBDIR%%/rssdrb.rb -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/create.rb -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/fromfile.rb -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/raa-rss-1.xml -%%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/rsstest.rb -%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%% +%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/create.rb +%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/fromfile.rb +%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/raa-rss-1.xml +%%PORTEXAMPLES%%%%RUBY_MODEXAMPLESDIR%%/rsstest.rb +%%PORTEXAMPLES%%@dirrm %%RUBY_MODEXAMPLESDIR%% %%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog %%PORTDOCS%%%%RUBY_MODDOCDIR%%/README %%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%