From f0aab0e8a3b25875704f796bfed41b9dea8f5f52 Mon Sep 17 00:00:00 2001 From: Oliver Braun Date: Wed, 21 May 2003 15:59:29 +0000 Subject: [PATCH] - Install some documentation - Respect NOPORTDOCS - Use HAS_CONFIGURE and CONFIGURE_ARGS instead of redefining do-configure target PR: ports/52502 Submitted by: Sergei Kolobov Approved by: maintainer --- devel/buildtool/Makefile | 17 +++++++++++++---- devel/buildtool/pkg-plist | 11 ++++++++--- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/devel/buildtool/Makefile b/devel/buildtool/Makefile index ccc5861b7a1b..a6a12920ab7a 100644 --- a/devel/buildtool/Makefile +++ b/devel/buildtool/Makefile @@ -14,10 +14,19 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= jos@catnook.com COMMENT= A set of portable software build utilities -MAN1= buildtool.1 +HAS_CONFIGURE= yes +CONFIGURE_ARGS= -p ${PREFIX} +.if defined(NOPORTDOCS) +CONFIGURE_ARGS+= -n doc +.endif -do-configure: - @cd ${WRKSRC} \ - && ./configure -p ${PREFIX} +MAN1= buildtool.1 +DOCS= CHANGES PEOPLE README TODO + +.if !defined(NOPORTDOCS) +post-install: + @${MKDIR} ${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} +.endif .include diff --git a/devel/buildtool/pkg-plist b/devel/buildtool/pkg-plist index 5cf7c978ef57..1d4c65786ead 100644 --- a/devel/buildtool/pkg-plist +++ b/devel/buildtool/pkg-plist @@ -39,6 +39,11 @@ share/buildtool-0/templates/mk_top @dirrm share/buildtool-0/licenses @dirrm share/buildtool-0/bt_config @dirrm share/buildtool-0 -@unexec install-info --delete %D/info/buildtool.info %D/info/dir -info/buildtool.info -@exec install-info %D/info/buildtool.info %D/info/dir +%%PORTDOCS%%@unexec install-info --delete %D/info/buildtool.info %D/info/dir +%%PORTDOCS%%info/buildtool.info +%%PORTDOCS%%@exec install-info %D/info/buildtool.info %D/info/dir +%%PORTDOCS%%%%DOCSDIR%%/CHANGES +%%PORTDOCS%%%%DOCSDIR%%/PEOPLE +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/TODO +%%PORTDOCS%%@dirrm %%DOCSDIR%%