blob: 5d98f2d5d55d361b9a831ae9ad98b3f3990b6861 (
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
|
# $NetBSD: Makefile,v 1.5 2006/10/08 03:45:45 minskim Exp $
DISTNAME= rake-0.7.1
PKGREVISION= 1
CATEGORIES= devel ruby
MASTER_SITES= http://rubyforge.org/frs/download.php/9499/
EXTRACT_SUFX= .tgz
MAINTAINER= minskim@NetBSD.org
HOMEPAGE= http://rake.rubyforge.org/
COMMENT= Ruby Make
NO_BUILD= yes
USE_RUBY_INSTALL= yes
USE_TOOLS+= gunzip
DOCDIR= ${RUBY_DOCDIR}/rake
EXAMPLESDIR= ${RUBY_EXAMPLESDIR}/rake
DOCS= CHANGES README TODO doc/glossary.rdoc \
doc/jamis.rb doc/proto_rake.rdoc \
doc/rakefile.rdoc doc/rational.rdoc
EXAMPLES= Rakefile1 Rakefile2 a.c b.c main.c
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Fixing hardcoded paths.
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= doc/rake.1
SUBST_SED.paths= -e 's,/usr/share/doc/,${RUBY_DOCDIR}/,g'
.include "../../lang/ruby/modules.mk"
post-extract:
if [ ! -f ${WRKSRC}/doc/rake.1 ]; then \
${GUNZIP_CMD} ${WRKSRC}/doc/rake.1.gz; \
fi
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/rake.1 ${PREFIX}/${PKGMANDIR}/man1
${INSTALL_DATA_DIR} ${DOCDIR}/release_notes
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCDIR}
.endfor
for f in ${WRKSRC}/doc/release_notes/*; do \
${INSTALL_DATA} $$f ${DOCDIR}/release_notes; \
done
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
.for f in ${EXAMPLES}
${INSTALL_DATA} ${WRKSRC}/doc/example/${f} ${EXAMPLESDIR}
.endfor
.include "../../mk/bsd.pkg.mk"
|