Bug 169404 - cad/qfsm: Update to version 0.53.0
Summary: cad/qfsm: Update to version 0.53.0
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: Armin Pirkovitsch
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-25 19:10 UTC by tkato432
Modified: 2012-07-19 18:45 UTC (History)
0 users

See Also:


Attachments
file.diff (4.55 KB, patch)
2012-06-25 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 2012-06-25 19:10:06 UTC
- Update to version 0.53.0

New file:
files/patch-CMakeLists.txt
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-06-25 19:10:20 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

miwi@ wants his PRs (via the GNATS Auto Assign Tool)
Comment 2 Armin Pirkovitsch freebsd_committer freebsd_triage 2012-07-17 08:56:20 UTC
Responsible Changed
From-To: miwi->sperber

miwi asked me to take it.
Comment 3 dfilter service freebsd_committer freebsd_triage 2012-07-19 18:24:14 UTC
Author: sperber
Date: Thu Jul 19 17:23:59 2012
New Revision: 301160
URL: http://svn.freebsd.org/changeset/ports/301160

Log:
  - Update to version 0.53.0
  - Switch to optionsng
  
  PR:           ports/169404
  Submitted by: KATO Tsuguru <tkato432 _at_ yahoo.com>
  Approved by:  beat (mentor)

Added:
  head/cad/qfsm/files/
  head/cad/qfsm/files/patch-CMakeLists.txt   (contents, props changed)
Modified:
  head/cad/qfsm/Makefile   (contents, props changed)
  head/cad/qfsm/distinfo   (contents, props changed)
  head/cad/qfsm/pkg-plist   (contents, props changed)

Modified: head/cad/qfsm/Makefile
==============================================================================
--- head/cad/qfsm/Makefile	Thu Jul 19 16:43:50 2012	(r301159)
+++ head/cad/qfsm/Makefile	Thu Jul 19 17:23:59 2012	(r301160)
@@ -7,33 +7,39 @@
 #
 
 PORTNAME=	qfsm
-PORTVERSION=	0.52.0
-PORTREVISION=	2
+PORTVERSION=	0.53.0
+DISTVERSIONSUFFIX=	-Source
 CATEGORIES=	cad
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}
-DISTNAME=	${PORTNAME}-${PORTVERSION}-Source
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	A graphical tool for designing finite state machines
 
+LICENSE=	GPLv3 # (or later)
+
+OPTIONS_DEFINE=	GRAPHVIZ DOCS EXAMPLES
+
 USE_BZIP2=	yes
 USE_XORG=	xi
 USE_QT4=	corelib gui qt3support svg xml \
-		moc_build porting_build qmake_build \
-		uic_build uic3_build rcc_build
+		moc_build qmake_build rcc_build uic_build
 USE_GNOME=	desktopfileutils
 USE_CMAKE=	yes
 INSTALLS_ICONS=	yes
+MAKE_JOBS_SAFE=	yes
+
+.include <bsd.port.options.mk>
 
-.if !defined(WITH_DEBUG)
-CMAKE_ARGS+=	-DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG"
+.if ${PORT_OPTIONS:MGRAPHVIZ}
+BULID_DEPENDS+=	graphviz>=2.22:${PORTSDIR}/graphics/graphviz
+RUN_DEPENDS+=	graphviz>=2.22:${PORTSDIR}/graphics/graphviz
+.else
+CMAKE_ARGS+=	-DQFSM_AVOID_GRAPHVIZ:BOOL=ON
 .endif
 
 post-patch:
-	@${REINPLACE_CMD} -e 's|(/usr/include/.*$$|(|g ; \
-		 /^\/usr\/include/d ; \
-		 /SET.*CMAKE_BUILD_TYPE/d ; \
-		 /SET.*CMAKE_INSTALL_PREFIX/d' ${WRKSRC}/CMakeLists.txt
+	@${REINPLACE_CMD} -e \
+		'/\/usr\//d' ${WRKSRC}/FindGraphViz.cmake
 
 do-install:
 	(cd ${WRKSRC} && ${INSTALL_PROGRAM} qfsm ${PREFIX}/bin)
@@ -53,11 +59,11 @@ do-install:
 		${PREFIX}/share/mimelnk/application)
 	@${MKDIR} ${DATADIR}
 	(cd ${WRKSRC}/po && ${INSTALL_DATA} *.qm ${DATADIR})
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
 	@(cd ${WRKSRC}/doc/user && ${COPYTREE_SHARE} . ${DOCSDIR})
 .endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
 	@${MKDIR} ${EXAMPLESDIR}
 	@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR})
 .endif

Modified: head/cad/qfsm/distinfo
==============================================================================
--- head/cad/qfsm/distinfo	Thu Jul 19 16:43:50 2012	(r301159)
+++ head/cad/qfsm/distinfo	Thu Jul 19 17:23:59 2012	(r301160)
@@ -1,2 +1,2 @@
-SHA256 (qfsm-0.52.0-Source.tar.bz2) = 9d2e03901338517b622771c1e4db4c3d7a50c3d8525cab9315d4b7a953e191b0
-SIZE (qfsm-0.52.0-Source.tar.bz2) = 2830833
+SHA256 (qfsm-0.53.0-Source.tar.bz2) = a47f2f85fc15992a41ae06560fdc0ddbd663488821af6a34d2f0a3a87c4ba9bb
+SIZE (qfsm-0.53.0-Source.tar.bz2) = 1498547

Added: head/cad/qfsm/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/qfsm/files/patch-CMakeLists.txt	Thu Jul 19 17:23:59 2012	(r301160)
@@ -0,0 +1,41 @@
+--- CMakeLists.txt.orig	2012-05-30 18:36:12.000000000 +0900
++++ CMakeLists.txt	2012-06-23 18:00:22.000000000 +0900
+@@ -35,6 +35,9 @@
+ ENDIF ( WIN32 )
+ 
+ 
++SET(QFSM_AVOID_GRAPHVIZ "" CACHE BOOL "Avoid linking against GraphViz")
++
++IF(NOT QFSM_AVOID_GRAPHVIZ)
+ FIND_PACKAGE(GraphViz)
+ IF(graphviz_FOUND)
+   MESSAGE("Graphviz library found")
+@@ -45,13 +48,14 @@
+ ELSE(graphviz_FOUND)
+   MESSAGE("WARNING: Graphviz library not found")
+ ENDIF(graphviz_FOUND)
++ENDIF(NOT QFSM_AVOID_GRAPHVIZ)
+ 
+ FIND_PACKAGE(Qt4 REQUIRED)
+ 
+ ADD_DEFINITIONS(-DQT3_SUPPORT -DSVG)
+ 
+ #SET( CMAKE_BUILD_TYPE Debug )
+-SET( CMAKE_BUILD_TYPE Release )
++#SET( CMAKE_BUILD_TYPE Release )
+ 
+ SET( QT_USE_QT3SUPPORT TRUE )
+ SET( QT_USE_QTXML TRUE )
+@@ -405,9 +409,9 @@
+ 
+ 
+ 
+-IF(UNIX AND NOT WIN32)
+-  SET(CMAKE_INSTALL_PREFIX "/usr")
+-ENDIF(UNIX AND NOT WIN32)
++#IF(UNIX AND NOT WIN32)
++#  SET(CMAKE_INSTALL_PREFIX "/usr")
++#ENDIF(UNIX AND NOT WIN32)
+ 
+ IF(UNIX AND NOT WIN32)
+   ADD_DEFINITIONS(-DQFSM_LANGUAGE_DIR="${CMAKE_INSTALL_PREFIX}/share/qfsm/")

Modified: head/cad/qfsm/pkg-plist
==============================================================================
--- head/cad/qfsm/pkg-plist	Thu Jul 19 16:43:50 2012	(r301159)
+++ head/cad/qfsm/pkg-plist	Thu Jul 19 17:23:59 2012	(r301160)
@@ -38,11 +38,14 @@ share/applications/qfsm.desktop
 %%PORTDOCS%%%%DOCSDIR%%/zoom.png
 %%PORTDOCS%%%%DOCSDIR%%/zoomin.png
 %%PORTDOCS%%%%DOCSDIR%%/zoomout.png
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ascii.gv
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/ascii_example.fsm
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/bin.gv
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/bin_example.fsm
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/datum.fsm
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/float.fsm
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/integer.fsm
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/more_complex_nonsense.fsm
 %%PORTEXAMPLES%%%%EXAMPLESDIR%%/text_example.fsm
 share/icons/hicolor/32x32/apps/qfsm.png
 share/icons/hicolor/32x32/mimetypes/x-qfsm.png
_______________________________________________
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 4 Armin Pirkovitsch freebsd_committer freebsd_triage 2012-07-19 18:45:50 UTC
State Changed
From-To: open->closed

Committed. Thanks!