2013-09-20 21:53:09 +02:00
|
|
|
# Created by: Alexander Novitsky <alecn2002@yandex.ru>
|
2007-02-23 01:59:37 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= stdlib
|
|
|
|
PORTVERSION= 0.10.1
|
|
|
|
CATEGORIES= lang ruby
|
|
|
|
MASTER_SITES= http://www.ruby-doc.org/download/stdlib/
|
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}doc-
|
|
|
|
DISTNAME= ruby-doc-${PORTNAME}-${PORTVERSION}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
2011-11-01 23:59:35 +01:00
|
|
|
MAINTAINER= ruby@FreeBSD.org
|
2007-02-23 01:59:37 +01:00
|
|
|
COMMENT= Documentation for the Ruby language standard library
|
|
|
|
|
|
|
|
USE_RUBY= yes
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
2013-09-20 21:53:09 +02:00
|
|
|
NO_STAGE= yes
|
2007-02-23 01:59:37 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${RUBY_DOCDIR}/
|
|
|
|
@(cd ${WRKSRC} && \
|
|
|
|
${RUBY} install.rb --force --doc-base ${RUBY_DOCDIR}/)
|
|
|
|
|
|
|
|
plist:
|
|
|
|
truncate -s0 pkg-plist
|
|
|
|
|
|
|
|
@${FIND} -ds ${RUBY_MODDOCDIR}/ ! -type d | \
|
|
|
|
${SED} 's,^${RUBY_MODDOCDIR},%%RUBY_MODDOCDIR%%,' \
|
|
|
|
>> pkg-plist
|
|
|
|
|
|
|
|
@${FIND} -ds ${RUBY_MODDOCDIR}/ -type d | ${SORT} -r | ${SED} -E -e \
|
|
|
|
's,^${RUBY_MODDOCDIR}(.*),@dirrm %%RUBY_MODDOCDIR%%\1,' \
|
|
|
|
>> pkg-plist
|
|
|
|
|
|
|
|
@${ECHO_CMD} "@dirrmtry %%RUBY_DOCDIR%%" >> pkg-plist
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|