Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Jan 2005 02:00:16 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/76283: Update port: misc/qmc to 0.94
Message-ID:  <20050116020016.2ea66129.tkato432@yahoo.com>
Resent-Message-ID: <200501151710.j0FHAWke040133@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         76283
>Category:       ports
>Synopsis:       Update port: misc/qmc to 0.94
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 15 17:10:32 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.10-RELEASE-p5 i386
>Organization:
>Environment:
>Description:
- Update to version 0.94

Remove file:
files/patch-cqmc
files/patch-main.cc
files/patch-msg.cc

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/misc/qmc/Makefile misc/qmc/Makefile
--- /usr/ports/misc/qmc/Makefile	Fri Feb  6 10:14:30 2004
+++ misc/qmc/Makefile	Sat Jan 15 23:48:50 2005
@@ -7,23 +7,34 @@
 #
 
 PORTNAME=	qmc
-PORTVERSION=	0.92b3
+PORTVERSION=	0.94
 CATEGORIES=	misc
 MASTER_SITES=	http://qmc.pollaknet.at/program/
-DISTNAME=	${PORTNAME}-${PORTVERSION:S/b/bbeta/}
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Quine-McClusky process simplification tool
 
-NO_WRKSUBDIR=	yes
+USE_BZIP2=	yes
+USE_REINPLACE=	yes
+
 PLIST_FILES=	bin/qmc
 
+.if !defined(WITHOUT_TCLTK)
+RUN_DEPENDS+=	wish8.4:${PORTSDIR}/x11-toolkits/tk84
+PLIST_FILES+=	bin/qmc-gui
+.endif
+
+post-patch:
+	@${REINPLACE_CMD} -e \
+		's| wish | ${LOCALBASE}/bin/wish8.4 |g' ${WRKSRC}/qmc-gui.tcl
+
 do-build:
-	@cd ${WRKSRC} ; \
-	  ${RM} -f *.o ; \
-	  ${CXX} ${CXXFLAGS} -I. *.cc -o qmc
+	cd ${WRKSRC} && ${CXX} ${CXXFLAGS} -I. *.cc -o qmc
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/qmc ${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/qmc ${PREFIX}/bin/qmc
+.if !defined(WITHOUT_TCLTK)
+	${INSTALL_SCRIPT} ${WRKSRC}/qmc-gui.tcl ${PREFIX}/bin/qmc-gui
+.endif
 
 .include <bsd.port.mk>
diff -urN /usr/ports/misc/qmc/distinfo misc/qmc/distinfo
--- /usr/ports/misc/qmc/distinfo	Fri Jan 30 14:50:54 2004
+++ misc/qmc/distinfo	Sat Jan 15 23:34:05 2005
@@ -1,2 +1,2 @@
-MD5 (qmc-0.92bbeta3.tar.gz) = cd0a8d6e137ca9230984579f1d25c43f
-SIZE (qmc-0.92bbeta3.tar.gz) = 22172
+MD5 (qmc-0.94.tar.bz2) = 97a656564b0490c61251f4497742a337
+SIZE (qmc-0.94.tar.bz2) = 18941
diff -urN /usr/ports/misc/qmc/files/patch-cqmc misc/qmc/files/patch-cqmc
--- /usr/ports/misc/qmc/files/patch-cqmc	Mon Feb 24 08:51:07 2003
+++ misc/qmc/files/patch-cqmc	Thu Jan  1 09:00:00 1970
@@ -1,24 +0,0 @@
-
-$FreeBSD: ports/misc/qmc/files/patch-cqmc,v 1.1 2003/02/23 23:51:07 naddy Exp $
-
---- cqmc.orig	Mon Feb 24 00:31:45 2003
-+++ cqmc	Mon Feb 24 00:32:10 2003
-@@ -18,8 +18,8 @@
- #ifndef cqmc
- #define cqmc
- 
--namespace std
--{
-+//namespace std
-+//{
- 
-   //size of input string
-   #define TERM_GR 128
-@@ -85,6 +85,6 @@
-   extern void tableheadoutput(BOOL *var, unsigned char anz, unsigned char gt);
-   extern void tableoutput(bool value, bool option, unsigned char gt);
-   extern void tabletailoutput(char *minterm);
--}
-+//}
- #endif
- 
diff -urN /usr/ports/misc/qmc/files/patch-main.cc misc/qmc/files/patch-main.cc
--- /usr/ports/misc/qmc/files/patch-main.cc	Mon Feb 24 08:51:07 2003
+++ misc/qmc/files/patch-main.cc	Thu Jan  1 09:00:00 1970
@@ -1,23 +0,0 @@
-
-$FreeBSD: ports/misc/qmc/files/patch-main.cc,v 1.1 2003/02/23 23:51:07 naddy Exp $
-
---- main.cc.orig	Mon Feb 24 00:41:46 2003
-+++ main.cc	Mon Feb 24 00:43:25 2003
-@@ -166,7 +166,7 @@
-     var= new BOOL[anz];
- 
-     //number of possibilities
--    help=pow(2,anz);
-+    help=pow((unsigned short)2,(unsigned short)anz);
- 
-     //create boolean array
-     erg = new bool[help];
-@@ -242,7 +242,7 @@
- 
- 
-   //number of possibilty
--  help=pow(2,anz);
-+  help=pow((unsigned short)2,(unsigned short)anz);
- 
- 
-   //create boolean array
diff -urN /usr/ports/misc/qmc/files/patch-msg.cc misc/qmc/files/patch-msg.cc
--- /usr/ports/misc/qmc/files/patch-msg.cc	Mon Feb 24 08:51:07 2003
+++ misc/qmc/files/patch-msg.cc	Thu Jan  1 09:00:00 1970
@@ -1,14 +0,0 @@
-
-$FreeBSD: ports/misc/qmc/files/patch-msg.cc,v 1.1 2003/02/23 23:51:07 naddy Exp $
-
---- msg.cc.orig	Mon Feb 24 00:21:58 2003
-+++ msg.cc	Mon Feb 24 00:23:12 2003
-@@ -42,6 +42,8 @@
- //Headers
- #include <iostream>
- 
-+using namespace std;
-+
- /************
-  *          *
-  * Errormsg *
>Release-Note:
>Audit-Trail:
>Unformatted:



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