Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jul 2013 15:19:11 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r322703 - head/lang/yorick
Message-ID:  <201307101519.r6AFJBTw079720@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Wed Jul 10 15:19:11 2013
New Revision: 322703
URL: http://svnweb.freebsd.org/changeset/ports/322703

Log:
  - Cleanup Makefile before making the port make jobs safe
  - Convert NOPORTDOCS to OPTIONS; pet portlint(1)

Modified:
  head/lang/yorick/Makefile

Modified: head/lang/yorick/Makefile
==============================================================================
--- head/lang/yorick/Makefile	Wed Jul 10 15:00:29 2013	(r322702)
+++ head/lang/yorick/Makefile	Wed Jul 10 15:19:11 2013	(r322703)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	Yorick
-# Date created:         26 Oct 97
-# Whom:                 Pedro Giffuni <giffunip@asme.org>
-#
+# Created by: Pedro Giffuni <giffunip@asme.org>
 # $FreeBSD$
-#
 
 PORTNAME=	yorick
 PORTVERSION=	2.1.06
@@ -12,47 +8,47 @@ MASTER_SITES=	SF
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	johans@FreeBSD.org
-COMMENT=	Interpreted language and scientific graphics
-
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
+COMMENT=	Interpreted language for scientific simulations
 
 USE_XORG=	x11
 MAKE_ARGS=	Y_HOME=relocatable Y_DOCDIR=/dev/null
 MAN1=		yorick.1 gist.1
 INFO=		yorick
 
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
+
 PORTDOCS=	FILE_FORMATS README drat.doc graph.doc hex.doc \
 		library.doc math.doc refs.pdf refs.tex std.doc \
 		yorick.pdf yorick.tex
 
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.port.options.mk>
+
 do-configure:
 	@(cd ${CONFIGURE_WRKSRC}; ${SETENV} ${MAKE_ENV} \
 		${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ysite config)
 
 post-build:
-	cd ${WRKSRC}/doc; make yorick.info
+	${MAKE} -C ${WRKSRC}/doc yorick.info
 
 post-install:
 	${INSTALL_DATA} ${WRKSRC}/emacs/yorick.el ${WRKSRC}/relocatable
 	@${RM} -rf ${WRKSRC}/relocatable/doc
 	@${RM} -rf ${PREFIX}/lib/${PORTNAME}
 	@${MV} ${WRKSRC}/relocatable ${PREFIX}/lib/${PORTNAME}
-.for file in gist yorick
-	${INSTALL_MAN} ${WRKSRC}/doc/${file}.1 ${PREFIX}/man/man1
-	@${STRIP_CMD} ${PREFIX}/lib/${PORTNAME}/bin/${file}
-	@${LN} -sf ${PREFIX}/lib/${PORTNAME}/bin/${file} ${PREFIX}/bin/${file}
+.for f in gist yorick
+	${INSTALL_MAN} ${WRKSRC}/doc/${f}.1 ${MANPREFIX}/man/man1
+	@${STRIP_CMD} ${PREFIX}/lib/${PORTNAME}/bin/${f}
+	@${LN} -sf ${PREFIX}/lib/${PORTNAME}/bin/${f} ${PREFIX}/bin/${f}
 .endfor
 	@${STRIP_CMD} ${PREFIX}/lib/${PORTNAME}/lib/codger
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-.for file in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
-.endfor
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR}
 	@${LN} -sf ${DOCSDIR} ${PREFIX}/lib/${PORTNAME}/doc
 .endif
-	for f in ${WRKSRC}/doc/yorick.info*; do \
-	  ${INSTALL_DATA} $$f ${PREFIX}/${INFO_PATH}; \
-	done
+	${INSTALL_DATA} ${WRKSRC}/doc/yorick.info* ${PREFIX}/${INFO_PATH}
 
 # Hidden by default: this requires an X terminal to run all checks
 .ifdef MAINTAINER_MODE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307101519.r6AFJBTw079720>