mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
217b3fa598
while Ruby 1.8.0 is not recommended at all.
56 lines
1.1 KiB
Makefile
56 lines
1.1 KiB
Makefile
# New ports collection makefile for: Ruby/htree
|
|
# Date created: 3 May 2004
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= htree
|
|
PORTVERSION= 0.4.20060326
|
|
CATEGORIES= textproc www ruby
|
|
MASTER_SITES= ftp://ftp.idaemons.org/pub/distfiles/
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
|
DIST_SUBDIR= ruby
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
COMMENT= A Ruby library to manipulate HTML/XML tree data structure
|
|
|
|
USE_RUBY= yes
|
|
USE_RUBY_RD2= yes
|
|
USE_RUBY_RDOC= yes
|
|
|
|
LIB_FILES= htree.rb htree
|
|
|
|
RUBY_RD_FILES= README.rd
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
DOCS= ${RUBY_RD_FILES} \
|
|
${RUBY_RD_HTML_FILES} \
|
|
doc
|
|
|
|
RUBY_REQUIRE= Ruby >= 180
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if !defined(RUBY_PROVIDED)
|
|
IGNORE= only works with Ruby 1.8.0 or later
|
|
.endif
|
|
|
|
do-build:
|
|
.if !defined(NOPORTDOCS)
|
|
cd ${BUILD_WRKSRC}; ${RUBY_RDOC} ${LIB_FILES}
|
|
.endif
|
|
|
|
do-install: doc-install
|
|
cd ${INSTALL_WRKSRC}; ${CP} -R ${LIB_FILES} ${RUBY_SITELIBDIR}/
|
|
|
|
doc-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${RUBY_MODDOCDIR}
|
|
.for f in ${DOCS}
|
|
${CP} -R ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|