blob: b6b3fcb3bdde4fb5a3a95989fd9a49bd665a7e19 (
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
49
50
51
|
# New ports collection makefile for: RubyObjectTeams
# Date created: 9 November 2002
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= robjectteam
PORTVERSION= 1.0
PORTREVISION= 1
CATEGORIES= devel ruby
MASTER_SITES= SF
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
EXTRACT_SUFX= .tgz
DIST_SUBDIR= ruby
MAINTAINER= stas@FreeBSD.org
COMMENT= Enables the ObjectTeams paradigm to the Ruby language
USE_RUBY= yes
NO_BUILD= yes
PLIST_FILES= %%RUBY_SITELIBDIR%%/objectteam.rb
DOCSDIR= ${RUBY_MODDOCDIR}
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
do-install:
cd ${WRKSRC}; ${RUBY} install.rb
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODDOCDIR}
${MKDIR} ${RUBY_MODEXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/README ${RUBY_MODDOCDIR}/
@(cd ${WRKSRC}/sample && ${COPYTREE_SHARE} \* ${RUBY_MODEXAMPLESDIR})
@${FIND} ${RUBY_MODEXAMPLESDIR} ! -type d | \
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${RUBY_MODEXAMPLESDIR} -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.endif
post-install:
@${FIND} ${RUBY_SITELIBDIR}/objectteam ! -type d | \
${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${RUBY_SITELIBDIR}/objectteam -type d | ${SORT} -r | \
${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
.include <bsd.port.mk>
|