blob: 688f93bf77809f8329769e385bc95a001089f7b6 (
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
|
# $NetBSD: Makefile,v 1.8 2005/03/06 17:15:52 taca Exp $
DISTNAME= instiki-0.9.2
PKGREVISION= 3
CATEGORIES= www
MASTER_SITES= http://rubyforge.org/frs/download.php/2515/
EXTRACT_SUFX= .tgz
MAINTAINER= minskim@NetBSD.org
HOMEPAGE= http://instiki.org/
COMMENT= Wiki clone that focuses on simple installation and running
DEPENDS+= ${RUBY_PKGPREFIX}-digest-[0-9]*:../../security/ruby-digest
DEPENDS+= ${RUBY_PKGPREFIX}-zlib-[0-9]*:../../devel/ruby-zlib
NO_BUILD= # defined
USE_BUILDLINK3= yes
USE_PKGINSTALL= yes
RCD_SCRIPTS= instiki
FILES_SUBST+= RUBY=${RUBY}
RUBY_VERSION_SUPPORTED= 18
REPLACE_RUBY= instiki
INSTIKI_DIR= ${PREFIX}/share/${PKGBASE}
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= "Fixing hardcoded paths."
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= app/controllers/wiki.rb
SUBST_SED.paths= \
-e 's,File.dirname(__FILE__) + "/../../storage,"${VARBASE}/instiki,g'
post-patch:
${MV} ${WRKSRC}/instiki ${WRKSRC}/instiki.tmp
${TR} -d '\015' < ${WRKSRC}/instiki.tmp > ${WRKSRC}/instiki
do-install:
${INSTALL_DATA_DIR} ${INSTIKI_DIR}
.for d in app libraries
cd ${WRKSRC} && ${CP} -R ${d} ${INSTIKI_DIR}
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${INSTIKI_DIR}/${d}
.endfor
${FIND} ${INSTIKI_DIR} -type d -print | ${XARGS} ${CHMOD} ${PKGDIRMODE}
${FIND} ${INSTIKI_DIR} -type f -print | ${XARGS} ${CHMOD} ${SHAREMODE}
${INSTALL_SCRIPT} ${WRKSRC}/instiki ${INSTIKI_DIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${PKGBASE}
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/${PKGBASE}
.include "../../lang/ruby/replace.mk"
.include "../../lang/ruby/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|