freebsd-ports/devel/ruby-mmap/Makefile

50 lines
1,009 B
Makefile
Raw Normal View History

# New ports collection makefile for: Ruby-Mmap
# Date created: 8 March 2001
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= mmap
2002-08-27 15:30:21 +02:00
PORTVERSION= 0.1.8
CATEGORIES= devel ruby
MASTER_SITES= ftp://moulon.inra.fr/pub/ruby/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
2002-08-27 15:30:21 +02:00
.if !defined(NOPORTDOCS)
BUILD_DEPENDS= rdoc:${PORTSDIR}/textproc/ruby-rdoc
.endif
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
2002-10-06 21:50:45 +02:00
USE_RUBY_RDTOOL= yes
INSTALL_TARGET= site-install
2002-08-27 15:30:21 +02:00
DOCS= Changes README.en mmap.html mmap.rd \
docs/doc
2001-03-15 20:16:03 +01:00
EXAMPLES= b.rb
2002-08-27 15:30:21 +02:00
post-build:
.if !defined(NOPORTDOCS)
2002-10-06 21:50:45 +02:00
cd ${WRKSRC}; ${RUBY_RD2} mmap.rd > mmap.html
2002-08-27 15:30:21 +02:00
cd ${WRKSRC}/docs; ${RUBY} b.rb mmap; rdoc mmap.rb
.endif
post-install:
.if !defined(NOPORTDOCS)
2002-10-06 23:08:30 +02:00
${MKDIR} ${RUBY_MODEXAMPLESDIR}/
.for f in ${EXAMPLES}
2002-10-06 23:08:30 +02:00
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODEXAMPLESDIR}/
.endfor
2002-10-06 23:08:30 +02:00
${MKDIR} ${RUBY_MODDOCDIR}
.for f in ${DOCS}
2002-10-06 23:08:30 +02:00
${CP} -R ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.endif
.include <bsd.port.mk>