freebsd-ports/lang/ruby-doc-stdlib/Makefile
Stanislav Sedov 59e75c4a46 Add ruby-doc-stdlib 0.10.1, documentation for the Ruby language standard
library.

Submitter doesn't respond, thus I'll maintain the port.

PR:		ports/101423 (based on)
Submitted by:	Alexander Novitsky <alecn2002 at yandex.ru>
2007-02-23 00:59:37 +00:00

43 lines
1 KiB
Makefile

# New ports collection makefile for: ruby-doc-stdlib
# Date created: 2006-08-04
# Whom: Alexander Novitsky <alecn2002@yandex.ru>
#
# $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
MAINTAINER= stas@FreeBSD.org
COMMENT= Documentation for the Ruby language standard library
USE_RUBY= yes
NO_BUILD= yes
.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>