Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Oct 2017 17:40:19 +0000 (UTC)
From:      Joseph Mingrone <jrm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r452596 - head/biology/iqtree
Message-ID:  <201710211740.v9LHeJp9069896@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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>



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