svn commit: r396588 - head/mail/phpmailer

Dmitry Marakasov amdmi3 at FreeBSD.org
Thu Sep 10 17:38:41 UTC 2015


Author: amdmi3
Date: Thu Sep 10 17:38:40 2015
New Revision: 396588
URL: https://svnweb.freebsd.org/changeset/ports/396588

Log:
  - Add LICENSE
  - Add NO_ARCH
  - Switch to options helpers

Modified:
  head/mail/phpmailer/Makefile

Modified: head/mail/phpmailer/Makefile
==============================================================================
--- head/mail/phpmailer/Makefile	Thu Sep 10 17:11:12 2015	(r396587)
+++ head/mail/phpmailer/Makefile	Thu Sep 10 17:38:40 2015	(r396588)
@@ -9,36 +9,42 @@ CATEGORIES=	mail
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Full Featured Email Transfer Class for PHP
 
-LICENSE=	LGPL3
-
-OPTIONS_DEFINE=	DOCS EXAMPLES
+LICENSE=	LGPL21
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	Synchro
 GH_PROJECT=	PHPMailer
 
 NO_BUILD=	yes
+NO_ARCH=	yes
 USE_PHP=	yes
 USES=		dos2unix
 
 SUB_FILES=	pkg-message
 
+OPTIONS_DEFINE=	DOCS EXAMPLES
+
 do-install:
 	@${MKDIR} ${STAGEDIR}${DATADIR}
 .for f in PHPMailerAutoload.php class.phpmailer.php class.pop3.php \
 	class.smtp.php composer.json
-	@${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DATADIR}
 .endfor
 .for d in extras language test
 	@${MKDIR} ${STAGEDIR}${DATADIR}/$d
-	@${INSTALL_DATA} ${WRKSRC}/$d/* ${STAGEDIR}${DATADIR}/$d
+	${INSTALL_DATA} ${WRKSRC}/$d/* ${STAGEDIR}${DATADIR}/$d
 .endfor
+
+do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for f in changelog.md README.md LICENSE
-	@${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR}
-	@${CP} -R ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR}
 .endfor
+	@cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
+
+do-install-EXAMPLES-on:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
-	@${CP} -R ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
+	@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list