Changeset View
Changeset View
Standalone View
Standalone View
textproc/emacs-wiki/Makefile
# Created by: Dryice Liu <dryice@liu.com.cn> | # Created by: Dryice Liu <dryice@liu.com.cn> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= emacs-wiki | PORTNAME= emacs-wiki | ||||
PORTVERSION= 2.72 | PORTVERSION= 2.72 | ||||
PORTREVISION= 9 | PORTREVISION= 10 | ||||
CATEGORIES= textproc elisp | CATEGORIES= textproc elisp | ||||
MASTER_SITES= http://www.mwolson.org/static/dist/emacs-wiki/ \ | MASTER_SITES= http://www.mwolson.org/static/dist/emacs-wiki/ \ | ||||
http://dryice.name/computer/FreeBSD/distfiles/ | http://dryice.name/computer/FreeBSD/distfiles/ | ||||
PKGNAMESUFFIX= -${EMACS_PORT_NAME} | PKGNAMESUFFIX= ${EMACS_PKGNAMESUFFIX} | ||||
MAINTAINER= dryice@FreeBSD.org | MAINTAINER= dryice@FreeBSD.org | ||||
COMMENT= Create and use hyperlinks and simple formatting in plain text files | COMMENT= Create and use hyperlinks and simple formatting in plain text files | ||||
USES= makeinfo | RUN_DEPENDS= xml-parse.el${EMACS_PKGNAMESUFFIX}>0:textproc/xml-parse.el@${EMACS_FLAVOR} | ||||
USE_EMACS= yes | RUN_DEPENDS= htmlize.el${EMACS_PKGNAMESUFFIX}>0:textproc/htmlize.el@${EMACS_FLAVOR} | ||||
USES= emacs makeinfo | |||||
OPTIONS_DEFINE= CONTRIB | OPTIONS_DEFINE= CONTRIB | ||||
CONTRIB_DESC= Install extra packages. This can shadow versions already there. | CONTRIB_DESC= Install extra packages. This can shadow versions already there. | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
RUN_DEPENDS+= ${LOCALBASE}/${EMACS_SITE_LISPDIR}/xml-parse.el:textproc/xml-parse.el | |||||
RUN_DEPENDS+= ${LOCALBASE}/${EMACS_SITE_LISPDIR}/htmlize.el:textproc/htmlize.el | |||||
INFO= emacs-wiki | INFO= emacs-wiki | ||||
LISPDIR= ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME} | LISPDIR= ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME} | ||||
.include <bsd.port.options.mk> | |||||
do-build: | do-build: | ||||
cd ${WRKSRC}; makeinfo --no-split emacs-wiki.texi | cd ${WRKSRC}; makeinfo --no-split emacs-wiki.texi | ||||
do-install: | do-install: | ||||
${MKDIR} ${STAGEDIR}${LISPDIR} | ${MKDIR} ${STAGEDIR}${LISPDIR} | ||||
.for i in *.el | .for i in *.el | ||||
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${LISPDIR} | ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${LISPDIR} | ||||
.endfor | .endfor | ||||
${INSTALL_DATA} ${WRKSRC}/emacs-wiki.info ${STAGEDIR}${PREFIX}/info | ${INSTALL_DATA} ${WRKSRC}/emacs-wiki.info ${STAGEDIR}${PREFIX}/info | ||||
.if ${PORT_OPTIONS:MCONTRIB} | |||||
do-install-CONTRIB-on: | |||||
${MKDIR} ${STAGEDIR}${LISPDIR}/contrib | ${MKDIR} ${STAGEDIR}${LISPDIR}/contrib | ||||
.for i in *.el | .for i in *.el | ||||
${INSTALL_DATA} ${WRKSRC}/contrib/${i} ${STAGEDIR}${LISPDIR}/contrib | ${INSTALL_DATA} ${WRKSRC}/contrib/${i} ${STAGEDIR}${LISPDIR}/contrib | ||||
.endfor | .endfor | ||||
.endif | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |