Update to 0.5.1 snapshot 20100824
For the story when moved to google code the project released a version 0.5 which was newer than the 0.5.1 from earlier hosting To be consistent named it 0.5.1s20100824 (following what debian did) Switch treeviewx to use unicode version of wx Add a patch from Ubuntu to fix loading trees.
This commit is contained in:
parent
28775aff66
commit
2afa67184c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356372
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
40
biology/treeviewx/files/patch-fix-load-trees
Normal file
40
biology/treeviewx/files/patch-fix-load-trees
Normal file
@ -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();
|
||||
}
|
||||
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user