1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Utilize INFO and PORTDOCS.

Use target dependency for running post-install rules.
This commit is contained in:
OKAZAKI Tetsurou 2005-05-01 04:55:18 +00:00
parent b08ee6445f
commit 3a7a219d74
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134429
3 changed files with 11 additions and 12 deletions

View File

@ -30,8 +30,14 @@ EMACS_PORT_NAME= emacs21
# target name for make build
ALL_TARGET?= all
INFO= elib
.include <bsd.port.pre.mk>
.if !defined(NOPORTDOCS)
PORTDOCS= ChangeLog NEWS README
.endif
PLIST_SUB+= EMACS_PACKAGESDIR=${EMACS_PACKAGESDIR} \
PORT_SETUPEL=${PORT_SETUPEL}
MAKE_ARGS+= EMACS="${EMACS_CMD} -q --no-site-file" \
@ -59,13 +65,14 @@ PLIST_SUB+= LOADPATHSETUP:="@comment "
post-build:
@${ECHO_CMD} "(provide 'elib-startup)" >> ${WRKSRC}/${PORT_SETUPEL}
post-install:
.if defined(INSTALL_LOADPATHSETUP)
@${MAKE} setupel-install
POST_INSTALL_SEQ+= setupel-install
.endif
.if !defined(NOPORTDOCS)
@${MAKE} doc-install
POST_INSTALL_SEQ+= doc-install
.endif
post-install: ${POST_INSTALL_SEQ}
.if exists(${PKGMESSAGE})
@${CAT} ${PKGMESSAGE}
.endif
@ -73,7 +80,7 @@ post-install:
doc-install:
${MKDIR} ${DOCSDIR}
cd ${INSTALL_WRKSRC} && \
for i in ChangeLog NEWS README ; do \
for i in ${PORTDOCS} ; do \
${INSTALL_DATA} $${i} ${DOCSDIR} ; \
done

View File

@ -1,4 +1,3 @@
To use elib, put the following setup into your ~/.emacs:
(require 'elib-startup)

View File

@ -24,10 +24,3 @@
%%EMACS_VERSION_SITE_LISPDIR%%/elib/string.elc
@dirrm %%EMACS_VERSION_SITE_LISPDIR%%/elib
%%LOADPATHSETUP:%%%%EMACS_VERSION_SITE_LISPDIR%%/%%PORT_SETUPEL%%
%%PORTDOCS%%share/doc/elib/ChangeLog
%%PORTDOCS%%share/doc/elib/NEWS
%%PORTDOCS%%share/doc/elib/README
%%PORTDOCS%%@dirrm share/doc/elib
@unexec install-info --delete %D/info/elib.info %D/info/dir
info/elib.info
@exec install-info %D/info/elib.info %D/info/dir