svn commit: r452596 - head/biology/iqtree

Joseph Mingrone jrm at FreeBSD.org
Sat Oct 21 17:40:20 UTC 2017


Author: jrm
Date: Sat Oct 21 17:40:18 2017
New Revision: 452596
URL: https://svnweb.freebsd.org/changeset/ports/452596

Log:
  biology/iqtree: Add EXAMPLES option and fix mess with installation of
  example files in first commit

Modified:
  head/biology/iqtree/Makefile

Modified: head/biology/iqtree/Makefile
==============================================================================
--- head/biology/iqtree/Makefile	Sat Oct 21 16:57:53 2017	(r452595)
+++ head/biology/iqtree/Makefile	Sat Oct 21 17:40:18 2017	(r452596)
@@ -3,6 +3,7 @@
 PORTNAME=	iqtree
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.6.beta4
+PORTREVISION=	1
 CATEGORIES=	biology
 
 MAINTAINER=	jrm at FreeBSD.org
@@ -18,7 +19,18 @@ USES=		cmake compiler:openmp
 USE_GITHUB=	yes
 GH_ACCOUNT=	Cibiv
 
-PLIST_FILES=	bin/iqtree example.cf example.nex example.phy models.nex
 WRKSRC=		${WRKDIR}/IQ-TREE-${DISTVERSION}
+
+PLIST_FILES=	bin/iqtree
+PORTEXAMPLES=	example.cf example.nex example.phy models.nex
+
+OPTIONS_DEFINE=	EXAMPLES
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/iqtree ${STAGEDIR}${PREFIX}/bin
+
+do-install-EXAMPLES-on:
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/example/* ${STAGEDIR}${EXAMPLESDIR}
 
 .include <bsd.port.mk>


More information about the svn-ports-all mailing list