From 69c6a2ef4d8edd1282517879f4ac218e3d44e47d Mon Sep 17 00:00:00 2001 From: okazaki Date: Sun, 1 May 2005 04:55:18 +0000 Subject: Utilize INFO and PORTDOCS. Use target dependency for running post-install rules. --- devel/elib/Makefile | 15 +++++++++++---- devel/elib/pkg-message.emacs19 | 1 - devel/elib/pkg-plist | 7 ------- 3 files changed, 11 insertions(+), 12 deletions(-) (limited to 'devel/elib') diff --git a/devel/elib/Makefile b/devel/elib/Makefile index 89a67cd2be00..9396ad1b2162 100644 --- a/devel/elib/Makefile +++ b/devel/elib/Makefile @@ -30,8 +30,14 @@ EMACS_PORT_NAME= emacs21 # target name for make build ALL_TARGET?= all +INFO= elib + .include +.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 diff --git a/devel/elib/pkg-message.emacs19 b/devel/elib/pkg-message.emacs19 index 391bdd3c3b8e..66d98c3b8a75 100644 --- a/devel/elib/pkg-message.emacs19 +++ b/devel/elib/pkg-message.emacs19 @@ -1,4 +1,3 @@ To use elib, put the following setup into your ~/.emacs: (require 'elib-startup) - diff --git a/devel/elib/pkg-plist b/devel/elib/pkg-plist index beb58f2deb7f..7db87a765aba 100644 --- a/devel/elib/pkg-plist +++ b/devel/elib/pkg-plist @@ -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 -- cgit inimist-1.2.2 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines