Bug 182800 - science/qcl: Update to version 0.6.3
Summary: science/qcl: Update to version 0.6.3
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pawel Pekala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-07 19:10 UTC by tkato432
Modified: 2013-10-30 18:00 UTC (History)
0 users

See Also:


Attachments
file.diff (8.43 KB, patch)
2013-10-07 19:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2013-10-07 19:10:01 UTC
- Update to version 0.6.3

New file:
files/patch-options.cc

Remove file:
files/patch-aa
files/patch-qc-Makefile
pkg-plist
Comment 1 Pawel Pekala freebsd_committer freebsd_triage 2013-10-30 17:15:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->pawel

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-10-30 17:57:41 UTC
Author: pawel
Date: Wed Oct 30 17:57:33 2013
New Revision: 332159
URL: http://svnweb.freebsd.org/changeset/ports/332159

Log:
  - Update to version 0.6.3
  - Add PLOTUTILS option
  - Support staging
  
  PR:		ports/182800
  Submitted by:	KATO Tsuguru <tkato432@yahoo.com>

Added:
  head/science/qcl/files/patch-options.cc   (contents, props changed)
Deleted:
  head/science/qcl/files/patch-aa
  head/science/qcl/files/patch-qc-Makefile
  head/science/qcl/pkg-plist
Modified:
  head/science/qcl/Makefile
  head/science/qcl/distinfo   (contents, props changed)

Modified: head/science/qcl/Makefile
==============================================================================
--- head/science/qcl/Makefile	Wed Oct 30 17:47:48 2013	(r332158)
+++ head/science/qcl/Makefile	Wed Oct 30 17:57:33 2013	(r332159)
@@ -2,17 +2,51 @@
 # $FreeBSD$
 
 PORTNAME=	qcl
-PORTVERSION=	0.6.1
+PORTVERSION=	0.6.3
 CATEGORIES=	science math
 MASTER_SITES=	http://tph.tuwien.ac.at/~oemer/tgz/
 EXTRACT_SUFX=	.tgz
 
 MAINTAINER=	ports@FreeBSD.org
-COMMENT=	A quantum computer simulator
+COMMENT=	Quantum computer simulator
 
-NO_STAGE=	yes
-do-configure:
-	echo 'PREFIX=${PREFIX}' >>${WRKSRC}/Makefile
-	cd ${WRKSRC} && make dep
+LICENSE=	GPLv2 # (or later)
+
+OPTIONS_DEFINE=	PLOTUTILS
+PLOTUTILS_DESC=	Plotting support via plotutils
+
+USES=		bison gmake readline
+USE_GCC=	any
+
+PLIST_FILES=	bin/qcl \
+		%%DATADIR%%/default.qcl %%DATADIR%%/deutsch.qcl \
+		%%DATADIR%%/dft.qcl %%DATADIR%%/examples.qcl \
+		%%DATADIR%%/grover.qcl %%DATADIR%%/linalg.qcl \
+		%%DATADIR%%/modarith.qcl %%DATADIR%%/primes.qcl \
+		%%DATADIR%%/shor.qcl %%DATADIR%%/test.qcl
+PLIST_DIRS=	%%DATADIR%%
+
+PLOTUTILS_LIB_DEPENDS=	libplotter.so:${PORTSDIR}/graphics/plotutils
+PLOTUTILS_CXXFLAGS=	-I${LOCALBASE}/include -DQCL_PLOT
+PLOTUTILS_LDFLAGS=	-L${LOCALBASE}/lib -lplotter
+
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's|/usr/local|${PREFIX}| ; \
+		 s|lib/qcl|share/qcl| ; \
+		 s|-O2 -g|| ; \
+		 s|^PLOPT|#PLOPT| ; \
+		 s|^PLLIB|#PLLIB| ; \
+		 /^CXXFLAGS/s| =| +=| ; \
+		 /^LDFLAGS/s| =| +=|' ${WRKSRC}/Makefile
+	@${REINPLACE_CMD} -e \
+		's|-g -O2|| ; \
+		 /^CXXFLAGS/s| =| +=| ; \
+		 /^LDFLAGS/s| =| +=|' ${WRKSRC}/qc/Makefile
+
+do-install:
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} qcl ${STAGEDIR}${PREFIX}/bin)
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	(cd ${WRKSRC}/lib && ${INSTALL_DATA} *.qcl ${STAGEDIR}${DATADIR})
 
 .include <bsd.port.mk>

Modified: head/science/qcl/distinfo
==============================================================================
--- head/science/qcl/distinfo	Wed Oct 30 17:47:48 2013	(r332158)
+++ head/science/qcl/distinfo	Wed Oct 30 17:57:33 2013	(r332159)
@@ -1,2 +1,2 @@
-SHA256 (qcl-0.6.1.tgz) = 3e7195fd0a2a65aed5868d40d4dfeccbc0151674682a68d4214332f65ee4338c
-SIZE (qcl-0.6.1.tgz) = 130922
+SHA256 (qcl-0.6.3.tgz) = c9f459b265ca181fdd4023cfb0d41a93a245eb5d47948a4002263384658d7cbb
+SIZE (qcl-0.6.3.tgz) = 133786

Added: head/science/qcl/files/patch-options.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/qcl/files/patch-options.cc	Wed Oct 30 17:57:33 2013	(r332159)
@@ -0,0 +1,14 @@
+--- options.cc.orig
++++ options.cc
+@@ -13,8 +13,9 @@
+ ************************************************************************/
+ 
+ 
+-#include <stdio.h>
+-#include <time.h>
++#include <cstdio>
++#include <cstring>
++#include <ctime>
+ 
+ #include "options.h"
+ #include "error.h"
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Pawel Pekala freebsd_committer freebsd_triage 2013-10-30 17:57:52 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!