Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Apr 2014 21:33:48 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r351045 - head/net/empty
Message-ID:  <201404112133.s3BLXmok059103@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Fri Apr 11 21:33:48 2014
New Revision: 351045
URL: http://svnweb.freebsd.org/changeset/ports/351045
QAT: https://qat.redports.org/buildarchive/r351045/

Log:
  - Support staging
  - Define EXAMPLES option
  - Define DOCS option

Modified:
  head/net/empty/Makefile
  head/net/empty/pkg-plist

Modified: head/net/empty/Makefile
==============================================================================
--- head/net/empty/Makefile	Fri Apr 11 21:33:41 2014	(r351044)
+++ head/net/empty/Makefile	Fri Apr 11 21:33:48 2014	(r351045)
@@ -10,7 +10,6 @@ EXTRACT_SUFX=	.tgz
 MAINTAINER=	zmey20000@yahoo.com
 COMMENT=	Expect-like tool for pure shell
 
-MAN1=		empty.1
 DOCS=		CHANGELOG COPYRIGHT README README.CYGWIN
 EXAMPLES=	README em_ssh.sh em_ssh_2.sh em_sh.sh \
 		em_telnet.sh em_telnet_2.sh emsu.sh runtests.sh
@@ -19,17 +18,14 @@ MAKE_ARGS+=	CC=${CC}
 LICENSE=	BSD
 LICENSE_FILE=	${WRKSRC}/COPYRIGHT
 
-NO_STAGE=	yes
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
 do-install:
-	@${INSTALL_PROGRAM} ${WRKSRC}/empty ${PREFIX}/bin/
-	@${INSTALL_MAN} ${MAN1:S,^,${WRKSRC}/,} ${MAN1PREFIX}/man/man1/
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	@${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
-.endif
-.if !defined(NOPORTEXAMPLES)
-	@${MKDIR} ${EXAMPLESDIR}
-	@${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/examples/,} ${EXAMPLESDIR}/
-.endif
+	${INSTALL_PROGRAM} ${WRKSRC}/empty ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/empty.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/examples/,} ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>

Modified: head/net/empty/pkg-plist
==============================================================================
--- head/net/empty/pkg-plist	Fri Apr 11 21:33:41 2014	(r351044)
+++ head/net/empty/pkg-plist	Fri Apr 11 21:33:48 2014	(r351045)
@@ -1,4 +1,5 @@
 bin/empty
+man/man1/empty.1.gz
 %%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
 %%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
 %%PORTDOCS%%%%DOCSDIR%%/README



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