From owner-svn-ports-all@FreeBSD.ORG Wed Oct 30 17:57:34 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 582BF3E2; Wed, 30 Oct 2013 17:57:34 +0000 (UTC) (envelope-from pawel@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4520B2649; Wed, 30 Oct 2013 17:57:34 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9UHvY5d081622; Wed, 30 Oct 2013 17:57:34 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9UHvX6J081619; Wed, 30 Oct 2013 17:57:33 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201310301757.r9UHvX6J081619@svn.freebsd.org> From: Pawel Pekala Date: Wed, 30 Oct 2013 17:57:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r332159 - in head/science/qcl: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Oct 2013 17:57:34 -0000 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 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 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 +-#include ++#include ++#include ++#include + + #include "options.h" + #include "error.h"