aboutsummaryrefslogtreecommitdiffstats
path: root/irc/infobot/Makefile
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2013-12-09 10:43:37 +0800
committeradamw <adamw@FreeBSD.org>2013-12-09 10:43:37 +0800
commit6c9cb47b9d6b395a51db40848adb1ece710564fa (patch)
treed5319700d81d19bc29543590cd40099e1ebfdf09 /irc/infobot/Makefile
parent2b82ab0cc69d0949237c962adaab70d6b4c3a5be (diff)
downloadfreebsd-ports-gnome-6c9cb47b9d6b395a51db40848adb1ece710564fa.tar.gz
freebsd-ports-gnome-6c9cb47b9d6b395a51db40848adb1ece710564fa.tar.zst
freebsd-ports-gnome-6c9cb47b9d6b395a51db40848adb1ece710564fa.zip
- NOPORTDOCS -> PORT_OPTIONS:MDOCS
- Staging - Use OPTIONS where appropriate - Rename old-style patch files
Diffstat (limited to 'irc/infobot/Makefile')
-rw-r--r--irc/infobot/Makefile29
1 files changed, 16 insertions, 13 deletions
diff --git a/irc/infobot/Makefile b/irc/infobot/Makefile
index 41616525b9e7..bd4f60cca496 100644
--- a/irc/infobot/Makefile
+++ b/irc/infobot/Makefile
@@ -11,24 +11,27 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Bot written in Perl with a rabid AI
USES= perl5
+USE_PERL5= run
NO_BUILD= yes
-NO_STAGE= yes
+post-patch:
+ -@${RM} ${WRKSRC}/src/*.orig
+.for i in config help users
+ @${RM} ${WRKSRC}/conf/infobot.$i
+.endfor
+
do-install:
- ${MKDIR} ${DATADIR}
+ @${MKDIR} ${STAGEDIR}${DATADIR}
${CP} -r ${WRKSRC}/src ${WRKSRC}/extras ${WRKSRC}/files \
- ${WRKSRC}/scripts ${DATADIR}/
- ${RM} ${DATADIR}/src/*.orig
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/LICENSE ${WRKSRC}/README ${WRKSRC}/REVISIONS ${DOCSDIR}
-.endif
- ${MKDIR} ${PREFIX}/etc/infobot
- ${INSTALL_DATA} ${WRKSRC}/conf/* ${PREFIX}/etc/infobot
+ ${WRKSRC}/scripts ${STAGEDIR}${DATADIR}/
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/LICENSE ${WRKSRC}/README ${WRKSRC}/REVISIONS ${STAGEDIR}${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${ETCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/conf/* ${STAGEDIR}${ETCDIR}
${SED} -e 's,$$param{\(.\)basedir\(.\)} = .*,$$param{\1basedir\2} = "${DATADIR}";,' \
- -e 's,$$param{\(.\)confdir\(.\)} = .*,$$param{\1confdir\2} = "${PREFIX}/etc/infobot";,' \
+ -e 's,$$param{\(.\)confdir\(.\)} = .*,$$param{\1confdir\2} = "${ETCDIR}";,' \
${WRKSRC}/infobot > ${WRKDIR}/infobot
- ${INSTALL_SCRIPT} ${WRKDIR}/infobot ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKDIR}/infobot ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>