blob: 1602fa82a9338807f7fcce2f152249c62f566188 (
plain) (
blame)
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
|
# New ports collection makefile for: FormValidator for Ruby
# Date created: 21 February 2003
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= formvalidator
PORTVERSION= 0.1.4
CATEGORIES= textproc www ruby
MASTER_SITES= http://grub.ath.cx/formvalidator/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR= ruby
MAINTAINER= ruby@FreeBSD.org
COMMENT= A Ruby module to validate data coming in from HTML forms
USE_RUBY= yes
USE_RUBY_RDOC= yes
DOCS= AUTHORS \
CHANGELOG \
README \
TODO \
doc
do-build:
.if !defined(NOPORTDOCS)
cd ${BUILD_WRKSRC}; ${RUBY_RDOC} --main README.rdoc formvalidator.rb README.rdoc
.endif
do-install:
cd ${INSTALL_WRKSRC}; ${RUBY} install.rb
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODEXAMPLESDIR}/
${CP} -R ${WRKSRC}/examples/* ${RUBY_MODEXAMPLESDIR}/
${MKDIR} ${RUBY_MODDOCDIR}
@(cd ${WRKSRC}/ && ${COPYTREE_SHARE} ${DOCS} ${RUBY_MODDOCDIR}/)
@${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/ruby18/ 2>/dev/null || true" \
>> ${TMPPLIST}
.endif
.include <bsd.port.mk>
|