aboutsummaryrefslogtreecommitdiff
path: root/biology/treeviewx
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-06-03 14:51:29 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-06-03 14:51:29 +0000
commit2afa67184c81c9b2a0beca4a41d5e94c199252b1 (patch)
tree9b8d1b67cc445b9f909f8652fb1b5739de561bbd /biology/treeviewx
parent28775aff66e7f9f73fe928a287738158b5e68182 (diff)
downloadports-2afa67184c81c9b2a0beca4a41d5e94c199252b1.tar.gz
ports-2afa67184c81c9b2a0beca4a41d5e94c199252b1.zip
Notes
Diffstat (limited to 'biology/treeviewx')
-rw-r--r--biology/treeviewx/Makefile11
-rw-r--r--biology/treeviewx/distinfo4
-rw-r--r--biology/treeviewx/files/patch-fix-load-trees40
-rw-r--r--biology/treeviewx/pkg-descr2
4 files changed, 49 insertions, 8 deletions
diff --git a/biology/treeviewx/Makefile b/biology/treeviewx/Makefile
index d850b71b63eb..6bb5eab9dc27 100644
--- a/biology/treeviewx/Makefile
+++ b/biology/treeviewx/Makefile
@@ -2,17 +2,18 @@
# $FreeBSD$
PORTNAME= treeviewx
-PORTVERSION= 0.5.1
-PORTREVISION= 8
+PORTVERSION= ${DISTVERSION}.1s20100823
+DISTVERSION= 0.5
CATEGORIES= biology
-MASTER_SITES= http://darwin.zoology.gla.ac.uk/~rpage/treeviewx/download/${PORTVERSION:S/.1//}/
-DISTNAME= tv-${PORTVERSION}
+MASTER_SITES= GOOGLE_CODE
+DISTNAME= tv-${DISTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Phylogenetic tree viewer
USE_WX= 2.8
-WX_COMPS= wx contrib
+WX_COMP= wx contrib
+WX_UNICODE= yes
USES= gmake
GNU_CONFIGURE= yes
diff --git a/biology/treeviewx/distinfo b/biology/treeviewx/distinfo
index 8eb97930fa2a..ef369aeba4c3 100644
--- a/biology/treeviewx/distinfo
+++ b/biology/treeviewx/distinfo
@@ -1,2 +1,2 @@
-SHA256 (tv-0.5.1.tar.gz) = 118bdbefb3f21636b1ba9da92e1b2029cb4d7d9944f4d02d2deace4ebb14c2d1
-SIZE (tv-0.5.1.tar.gz) = 426745
+SHA256 (tv-0.5.tar.gz) = 2c0f41cb398a183155bed658c9e7e8ac880b2b75554901feddb2ea3ca97ff2eb
+SIZE (tv-0.5.tar.gz) = 441422
diff --git a/biology/treeviewx/files/patch-fix-load-trees b/biology/treeviewx/files/patch-fix-load-trees
new file mode 100644
index 000000000000..4f9392f44331
--- /dev/null
+++ b/biology/treeviewx/files/patch-fix-load-trees
@@ -0,0 +1,40 @@
+Bug: http://code.google.com/p/treeviewx/issues/detail?id=1
+Description: fix crash on loading tree file.
+Author: Tim Booth
+--- tview.cpp
++++ tview.cpp
+@@ -278,7 +278,7 @@
+ char buf[256];
+ strcpy (buf, p->GetLabel().c_str());
+ wchar_t wbuf[256];
+- mbstowcs (wbuf, buf, size_t(wbuf));
++ mbstowcs (wbuf, buf, 256);
+ s << wbuf;
+ #else
+ s << p->GetLabel().c_str();
+@@ -563,7 +563,7 @@
+ char buf[256];
+ strcpy (buf, t.GetName().c_str());
+ wchar_t wbuf[256];
+- mbstowcs (wbuf, buf, size_t(wbuf));
++ mbstowcs (wbuf, buf, 256);
+ txt << wbuf;
+ #else
+ txt << t.GetName().c_str();
+@@ -712,7 +712,7 @@
+ char buf[256];
+ strcpy (buf, p.GetIthTreeName(i).c_str());
+ wchar_t wbuf[256];
+- mbstowcs (wbuf, buf, size_t(wbuf));
++ mbstowcs (wbuf, buf, 256);
+
+ std::wstring tname = wbuf;
+
+@@ -1046,6 +1046,7 @@
+ void MyCanvas::OnSize(wxSizeEvent& event)
+ {
+ Resize ();
++ Refresh();
+ event.Skip();
+ }
+
diff --git a/biology/treeviewx/pkg-descr b/biology/treeviewx/pkg-descr
index 78c99d59b41c..aa2a8b72a973 100644
--- a/biology/treeviewx/pkg-descr
+++ b/biology/treeviewx/pkg-descr
@@ -5,4 +5,4 @@ subset of the functionality of the version of TreeView available for the
Mac Classic and Windows (it is roughly equivalent to version 0.95 of
TreeView).
-WWW: http://darwin.zoology.gla.ac.uk/~rpage/treeviewx/
+WWW: https://code.google.com/p/treeviewx/