diff options
author | okazaki <okazaki@FreeBSD.org> | 2005-05-01 12:55:18 +0800 |
---|---|---|
committer | okazaki <okazaki@FreeBSD.org> | 2005-05-01 12:55:18 +0800 |
commit | 69c6a2ef4d8edd1282517879f4ac218e3d44e47d (patch) | |
tree | 509d34782977063433acbb93771c39c04fbdc116 /devel/elib | |
parent | ab275041d8e893eb712c9f72f1dbf93c10609156 (diff) | |
download | freebsd-ports-gnome-69c6a2ef4d8edd1282517879f4ac218e3d44e47d.tar.gz freebsd-ports-gnome-69c6a2ef4d8edd1282517879f4ac218e3d44e47d.tar.zst freebsd-ports-gnome-69c6a2ef4d8edd1282517879f4ac218e3d44e47d.zip |
Utilize INFO and PORTDOCS.
Use target dependency for running post-install rules.
Diffstat (limited to 'devel/elib')
-rw-r--r-- | devel/elib/Makefile | 15 | ||||
-rw-r--r-- | devel/elib/pkg-message.emacs19 | 1 | ||||
-rw-r--r-- | devel/elib/pkg-plist | 7 |
3 files changed, 11 insertions, 12 deletions
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 <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 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 |