blob: 8eaf092605ee6f1d34d3d06ffa55639fe38d3e8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# 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.8
CATEGORIES= textproc www ruby
MASTER_SITES= http://www.a-k-r.org/htree/
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
DOCS= README \
${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
post-install:
.if !defined(NOPORTDOCS)
@${FIND} -ds ${RUBY_MODDOCDIR} -type f -print | ${SED} -E -e \
's,^${PREFIX}/?,,' >> ${TMPPLIST}
@${FIND} -ds ${RUBY_MODDOCDIR} -type d -print | ${SED} -E -e \
's,^${PREFIX}/?,@dirrm ,' >> ${TMPPLIST}
@${ECHO_CMD} "@unexec rmdir %D/share/doc/${RUBY_NAME} \
2>/dev/null || true" >> ${TMPPLIST}
.endif
.include <bsd.port.post.mk>
|