freebsd-ports/textproc/ruby-rss/Makefile
Baptiste Daroussin 3b3342a73b support stage
2014-04-07 16:18:07 +00:00

43 lines
1.2 KiB
Makefile

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= rss
PORTVERSION= 0.9.1
PORTREVISION= 1
CATEGORIES= textproc ruby
MASTER_SITES= http://www.chadfowler.com/ruby/rss/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ${PORTNAME}-ruby-${PORTVERSION}
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-*
USE_RUBY= yes
NO_BUILD= yes
INSTALL_TARGET= site-install
RUBY_SHEBANG_FILES= ${WRKSRC}/rssdrb.rb ${WRKSRC}/samples/rsstest.rb
DOCS= ChangeLog README
do-install:
@${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} ${STAGEDIR}${RUBY_MODDOCDIR}/
.endfor
.include <bsd.port.mk>