Add bytecode build and change install dir to ${EMACS_SITE_LISPDIR}

This commit is contained in:
Andrey Slusar 2006-05-29 22:44:09 +00:00
parent aad320a860
commit 7fd7ac00cd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=163903

View file

@ -7,28 +7,32 @@
PORTNAME= xml-lite.el
PORTVERSION= 1.1
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= textproc elisp
MASTER_SITES= http://dogbiscuit.org/mdub/software/
DISTNAME= ${PORTNAME}
EXTRACT_SUFX= # empty
EXTRACT_ONLY= # empty
MAINTAINER= ports@FreeBSD.org
COMMENT= A simple XML-editing for GNU Emacs
USE_EMACS= yes
EMACS_PORT_NAME?= emacs21
EMACS_NO_BUILD_DEPENDS= YES
NO_BUILD= yes
NO_WRKSUBDIR= yes
EXTRACT_CMD= ${CP}
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS=${WRKSRC}/${PORTNAME}
LISPDIR= ${EMACS_VERSION_SITE_LISPDIR}
PLIST_FILES= %%EMACS_VERSION_SITE_LISPDIR%%/xml-lite.el
PLIST_FILES= ${EMACS_SITE_LISPDIR}/${PORTNAME} \
${EMACS_SITE_LISPDIR}/${PORTNAME}c
do-build:
cd ${WRKSRC}; ${EMACS_CMD} -batch -q -f batch-byte-compile ${PORTNAME}
do-install:
${INSTALL_DATA} ${DISTDIR}/${DISTNAME} ${PREFIX}/${LISPDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME} ${PREFIX}/${EMACS_SITE_LISPDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}c ${PREFIX}/${EMACS_SITE_LISPDIR}
post-install:
@${CAT} ${PKGMESSAGE}