Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jun 2014 21:35:22 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r356712 - head/mail/pymsgauth
Message-ID:  <201406052135.s55LZMKQ097595@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Thu Jun  5 21:35:21 2014
New Revision: 356712
URL: http://svnweb.freebsd.org/changeset/ports/356712
QAT: https://qat.redports.org/buildarchive/r356712/

Log:
  - Add staging support
  - Convert to USES=shebangfix, bump PORTREVISION - shebangs changed
  - Convert to new options framework
  - Remove Author from pkg-descr

Modified:
  head/mail/pymsgauth/Makefile
  head/mail/pymsgauth/pkg-descr

Modified: head/mail/pymsgauth/Makefile
==============================================================================
--- head/mail/pymsgauth/Makefile	Thu Jun  5 21:22:29 2014	(r356711)
+++ head/mail/pymsgauth/Makefile	Thu Jun  5 21:35:21 2014	(r356712)
@@ -3,35 +3,35 @@
 
 PORTNAME=	pymsgauth
 PORTVERSION=	2.1.0
+PORTREVISION=	1
 CATEGORIES=	mail python
 MASTER_SITES=	http://pyropus.ca/software/pymsgauth/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Automatically process qsecretary confirmation requests
 
+USES=		shebangfix
+SHEBANG_FILES=	pymsgauth-clean pymsgauth-confirm pymsgauth-mail
 USE_PYTHON=	yes
+NO_BUILD=	yes
 
 SUB_FILES=	pkg-message
 
 DOCS=		BUGS CHANGELOG pymsgauth.txt pymsgauth.html
 EXAMPLES=	pymsgauthrc-example
 
-NO_STAGE=	yes
-do-build:
-	${REINPLACE_CMD} -e 's,#!/usr/bin/python,#!/usr/bin/env python,' \
-	 	${WRKSRC}/pymsgauth-*
-	${RM} ${WRKSRC}/pymsgauth-*.bak
+OPTIONS_DEFINE=	DOCS
 
 do-install:
-	@${MKDIR} ${DATADIR}
-	${INSTALL_SCRIPT} ${WRKSRC}/*.py ${WRKSRC}/pymsgauth-* ${DATADIR}
-	${LN} -sf ${DATADIR}/pymsgauth-* ${PREFIX}/bin
-	@${MKDIR} ${EXAMPLESDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
-.endif
-	@${CAT} ${PKGMESSAGE}
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/*.py ${WRKSRC}/pymsgauth-* \
+		${STAGEDIR}${DATADIR}
+.for f in clean confirm mail
+	${LN} -sf ${DATADIR}/pymsgauth-${f} ${STAGEDIR}${PREFIX}/bin
+.endfor
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/mail/pymsgauth/pkg-descr
==============================================================================
--- head/mail/pymsgauth/pkg-descr	Thu Jun  5 21:22:29 2014	(r356711)
+++ head/mail/pymsgauth/pkg-descr	Thu Jun  5 21:35:21 2014	(r356712)
@@ -2,5 +2,4 @@ pymsgauth is a toolkit for automatically
 confirmation notices (used on mailing lists run by D.J. Bernstein).
 It is written in Python, and licensed under GPL.
 
-Author:	Charles Cazabon
 WWW: http://pyropus.ca/software/pymsgauth/



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