svn commit: r356712 - head/mail/pymsgauth

Pawel Pekala pawel at FreeBSD.org
Thu Jun 5 21:35:22 UTC 2014


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 at 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/


More information about the svn-ports-head mailing list