diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2003-08-11 19:23:38 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2003-08-11 19:23:38 +0000 |
commit | 17a2b8c800cc0114a1dbf59be950b01249e568d6 (patch) | |
tree | 8b33466f184d70ddece279b1c962222f191f1bc6 /deskutils | |
parent | 6bbe6ce14b81a3271207bbad82824423c3654948 (diff) | |
download | ports-17a2b8c800cc0114a1dbf59be950b01249e568d6.tar.gz ports-17a2b8c800cc0114a1dbf59be950b01249e568d6.zip |
Notes
Diffstat (limited to 'deskutils')
-rw-r--r-- | deskutils/abacus/Makefile | 11 | ||||
-rw-r--r-- | deskutils/abacus/files/patch-tcl_interf-event.cc | 411 | ||||
-rw-r--r-- | deskutils/abacus/files/patch-tcl_interf-tcl_interf.cc | 79 |
3 files changed, 493 insertions, 8 deletions
diff --git a/deskutils/abacus/Makefile b/deskutils/abacus/Makefile index 8055d2f28d23..866ef782f99c 100644 --- a/deskutils/abacus/Makefile +++ b/deskutils/abacus/Makefile @@ -7,6 +7,7 @@ PORTNAME= abacus PORTVERSION= 0.9.13 +PORTREVISION= 1 CATEGORIES= deskutils MASTER_SITES= http://www-cad.eecs.berkeley.edu/HomePages/aml/abacus/ \ http://tahoe.inesc.pt/~aml/abacus/ @@ -24,7 +25,7 @@ LIB_DEPENDS= tcl82.1:${PORTSDIR}/lang/tcl82 \ USE_REINPLACE= yes USE_X_PREFIX= yes USE_GMAKE= yes -MAKE_ENV= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" +MAKE_ENV= CXX="${CXX}" CXXFLAGS="${CXXFLAGS} -Wno-deprecated" ALL_TARGET= dep tcl_interf/nxlc MAN1= abacus.1 @@ -57,10 +58,4 @@ do-install: @${MKDIR} ${PREFIX}/share/examples/abacus ${INSTALL_DATA} ${WRKSRC}/regressive/* ${PREFIX}/share/examples/abacus -.include <bsd.port.pre.mk> - -.if ${OSVERSION} > 501101 -BROKEN= not compatible with gcc33 -.endif - -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/deskutils/abacus/files/patch-tcl_interf-event.cc b/deskutils/abacus/files/patch-tcl_interf-event.cc new file mode 100644 index 000000000000..9c7e8cb85856 --- /dev/null +++ b/deskutils/abacus/files/patch-tcl_interf-event.cc @@ -0,0 +1,411 @@ +--- tcl_interf/event.cc.orig Tue Oct 20 13:20:48 1998 ++++ tcl_interf/event.cc Mon Aug 11 21:12:28 2003 +@@ -41,13 +41,13 @@ + sheet->recalc(aux); + sheet->display(aux); + +- sprintf(command,"unhighlightActiveCell +- unhighlightCurrentRange [canvasFromSheet $activeSheet] +- unhighlightColSelection +- unhighlightRowSelection +- set activeCellCol %d +- set activeCellRow %d +- highlightActiveCell",col,row); ++ sprintf(command,"unhighlightActiveCell \n" ++ "unhighlightCurrentRange [canvasFromSheet $activeSheet] \n" ++ "unhighlightColSelection \n" ++ "unhighlightRowSelection \n" ++ "set activeCellCol %d \n" ++ "set activeCellRow %d \n" ++ "highlightActiveCell",col,row); + sheet->RunScript(command); + } + +@@ -73,12 +73,12 @@ + char command[512]; + + sprintf(command, +- "unhighlightActiveCell +- unhighlightCurrentRange [canvasFromSheet $activeSheet] +- unhighlightColSelection +- unhighlightRowSelection +- DeleteRowOrColumn $activeSheet %d %d %c 0 +- highlightActiveCell", ++ "unhighlightActiveCell\n" ++ "unhighlightCurrentRange [canvasFromSheet $activeSheet]\n" ++ "unhighlightColSelection\n" ++ "unhighlightRowSelection\n" ++ "DeleteRowOrColumn $activeSheet %d %d %c 0\n" ++ "highlightActiveCell", + cr_ind,cr_num,col_or_row); + sheet->RunScript(command); + +@@ -92,31 +92,31 @@ + + if(col_or_row='c') + sprintf(command, +- "unhighlightActiveCell +- unhighlightCurrentRange [canvasFromSheet $activeSheet] +- unhighlightColSelection +- unhighlightRowSelection +- InsertRowOrColumn $activeSheet %d %d c 0 +- redrawCanvas $activeSheet +- set cols_selected [list %d %d] +- highlightColSelection +- set currentRange \ +- [list %d 0 %d [expr [DefSheetHeight] - 1]] +- highlightCurrentRange [canvasFromSheet $activeSheet]", ++ "unhighlightActiveCell\n" ++ "unhighlightCurrentRange [canvasFromSheet $activeSheet]\n" ++ "unhighlightColSelection\n" ++ "unhighlightRowSelection\n" ++ "InsertRowOrColumn $activeSheet %d %d c 0\n" ++ "redrawCanvas $activeSheet\n" ++ "set cols_selected [list %d %d]\n" ++ "highlightColSelection\n" ++ "set currentRange \\\n" ++ " [list %d 0 %d [expr [DefSheetHeight] - 1]]\n" ++ "highlightCurrentRange [canvasFromSheet $activeSheet]", + cr_ind,cr_num,cr_ind,cr_ind+cr_num-1,cr_ind,cr_ind+cr_num-1); + else + sprintf(command, +- "unhighlightActiveCell +- unhighlightCurrentRange [canvasFromSheet $activeSheet] +- unhighlightColSelection +- unhighlightRowSelection +- InsertRowOrColumn $activeSheet %d %d r 0 +- redrawCanvas $activeSheet +- set rows_selected [list %d %d] +- highlightRowSelection +- set currentRange \ +- [list 0 %d [expr [DefSheetWidth] - 1] %d] +- highlightCurrentRange [canvasFromSheet $activeSheet]", ++ "unhighlightActiveCell\n" ++ "unhighlightCurrentRange [canvasFromSheet $activeSheet]\n" ++ "unhighlightColSelection\n" ++ "unhighlightRowSelection\n" ++ "InsertRowOrColumn $activeSheet %d %d r 0\n" ++ "redrawCanvas $activeSheet\n" ++ "set rows_selected [list %d %d]\n" ++ "highlightRowSelection\n" ++ "set currentRange \\\n" ++ " [list 0 %d [expr [DefSheetWidth] - 1] %d]\n" ++ "highlightCurrentRange [canvasFromSheet $activeSheet]", + cr_ind,cr_num,cr_ind,cr_ind+cr_num-1,cr_ind,cr_ind+cr_num-1); + sheet->RunScript(command); + +@@ -206,11 +206,11 @@ + + + sprintf(command, +- "unhighlightActiveCell +- unhighlightCurrentRange [canvasFromSheet $activeSheet] +- unhighlightColSelection +- unhighlightRowSelection +- InsertRowOrColumn $activeSheet %d %d %c 0", ++ "unhighlightActiveCell\n" ++ "unhighlightCurrentRange [canvasFromSheet $activeSheet]\n" ++ "unhighlightColSelection\n" ++ "unhighlightRowSelection\n" ++ "InsertRowOrColumn $activeSheet %d %d %c 0", + cr_ind,cr_num,col_or_row); + sheet->RunScript(command); + if(col_or_row=='c') +@@ -237,21 +237,21 @@ + + if(col_or_row=='c') + sprintf(command, +- "redrawCanvas $activeSheet +- set cols_selected [list %d %d] +- highlightColSelection +- set currentRange \ +- [list %d 0 %d [expr [DefSheetHeight] - 1]] +- highlightCurrentRange [canvasFromSheet $activeSheet]", ++ "redrawCanvas $activeSheet\n" ++ "set cols_selected [list %d %d]\n" ++ "highlightColSelection\n" ++ "set currentRange \\\n" ++ " [list %d 0 %d [expr [DefSheetHeight] - 1]]\n" ++ "highlightCurrentRange [canvasFromSheet $activeSheet]", + cr_ind,cr_ind+cr_num-1,cr_ind,cr_ind+cr_num-1); + else + sprintf(command, +- "redrawCanvas $activeSheet +- set rows_selected [list %d %d] +- highlightRowSelection +- set currentRange \ +- [list 0 %d [expr [DefSheetWidth] - 1] %d] +- highlightCurrentRange [canvasFromSheet $activeSheet]", ++ "redrawCanvas $activeSheet\n" ++ "set rows_selected [list %d %d]\n" ++ "highlightRowSelection\n" ++ "set currentRange \\\n" ++ " [list 0 %d [expr [DefSheetWidth] - 1] %d]\n" ++ "highlightCurrentRange [canvasFromSheet $activeSheet]", + cr_ind,cr_ind+cr_num-1,cr_ind,cr_ind+cr_num-1); + + sheet->RunScript(command); +@@ -263,12 +263,12 @@ + char command[512]; + + sprintf(command, +- "unhighlightActiveCell +- unhighlightCurrentRange [canvasFromSheet $activeSheet] +- unhighlightColSelection +- unhighlightRowSelection +- DeleteRowOrColumn $activeSheet %d %d %c 0 +- highlightActiveCell", ++ "unhighlightActiveCell\n" ++ "unhighlightCurrentRange [canvasFromSheet $activeSheet]\n" ++ "unhighlightColSelection\n" ++ "unhighlightRowSelection\n" ++ "DeleteRowOrColumn $activeSheet %d %d %c 0\n" ++ "highlightActiveCell", + cr_ind,cr_num,col_or_row); + sheet->RunScript(command); + RedoGraph(); +@@ -385,13 +385,13 @@ + sheet->recalc(aux); + + sprintf(command, +- "unhighlightActiveCell +- unhighlightCurrentRange [canvasFromSheet $activeSheet] +- unhighlightColSelection +- unhighlightRowSelection +- set activeCellCol %d +- set activeCellRow %d +- highlightActiveCell",x_start,y_start); ++ "unhighlightActiveCell\n" ++ "unhighlightCurrentRange [canvasFromSheet $activeSheet]\n" ++ "unhighlightColSelection\n" ++ "unhighlightRowSelection\n" ++ "set activeCellCol %d\n" ++ "set activeCellRow %d\n" ++ "highlightActiveCell",x_start,y_start); + } + else + { +@@ -426,12 +426,12 @@ + delete new_savs[i]; + + sprintf(command, +- "unhighlightActiveCell +- unhighlightCurrentRange [canvasFromSheet $activeSheet] +- unhighlightColSelection +- unhighlightRowSelection +- set currentRange [list %d %d %d %d] +- highlightCurrentRange [canvasFromSheet $activeSheet]", ++ "unhighlightActiveCell\n" ++ "unhighlightCurrentRange [canvasFromSheet $activeSheet]\n" ++ "unhighlightColSelection\n" ++ "unhighlightRowSelection\n" ++ "set currentRange [list %d %d %d %d]\n" ++ "highlightCurrentRange [canvasFromSheet $activeSheet]", + x_start,y_start,x_end,y_end); + } + sheet->RunScript(command); +@@ -487,12 +487,12 @@ + to->UndoEvent(); + + sprintf(command, +- "unhighlightActiveCell +- unhighlightCurrentRange [canvasFromSheet $activeSheet] +- unhighlightColSelection +- unhighlightRowSelection +- set currentRange [list %d %d %d %d] +- highlightCurrentRange [canvasFromSheet $activeSheet]", ++ "unhighlightActiveCell\n" ++ "unhighlightCurrentRange [canvasFromSheet $activeSheet]\n" ++ "unhighlightColSelection\n" ++ "unhighlightRowSelection\n" ++ "set currentRange [list %d %d %d %d]\n" ++ "highlightCurrentRange [canvasFromSheet $activeSheet]", + from->GetXStart(),from->GetYStart(), + from->GetXEnd(),from->GetYEnd()); + (to->GetSheet())->RunScript(command); +@@ -506,12 +506,12 @@ + to->UndoEvent(); + + sprintf(command, +- "unhighlightActiveCell +- unhighlightCurrentRange [canvasFromSheet $activeSheet] +- unhighlightColSelection +- unhighlightRowSelection +- set currentRange [list %d %d %d %d] +- highlightCurrentRange [canvasFromSheet $activeSheet]", ++ "unhighlightActiveCell\n" ++ "unhighlightCurrentRange [canvasFromSheet $activeSheet]\n" ++ "unhighlightColSelection\n" ++ "unhighlightRowSelection\n" ++ "set currentRange [list %d %d %d %d]\n" ++ "highlightCurrentRange [canvasFromSheet $activeSheet]", + to->GetXStart(),to->GetYStart(), + to->GetXEnd(),to->GetYEnd()); + (to->GetSheet())->RunScript(command); +@@ -636,15 +636,15 @@ + sheet->display(aux); + num++; + } +- sprintf(command,"unhighlightActiveCell +- unhighlightCurrentRange [canvasFromSheet $activeSheet] +- unhighlightColSelection +- unhighlightRowSelection +- set cols_selected [list %d %d] +- highlightColSelection +- set currentRange \ +- [list %d 0 %d [expr [DefSheetHeight] - 1]] +- highlightCurrentRange [canvasFromSheet $activeSheet]", ++ sprintf(command,"unhighlightActiveCell\n" ++ "unhighlightCurrentRange [canvasFromSheet $activeSheet]\n" ++ "unhighlightColSelection\n" ++ "unhighlightRowSelection\n" ++ "set cols_selected [list %d %d]\n" ++ "highlightColSelection\n" ++ "set currentRange \\\n" ++ " [list %d 0 %d [expr [DefSheetHeight] - 1]]\n" ++ "highlightCurrentRange [canvasFromSheet $activeSheet]", + startcol,endcol,startcol,endcol); + } + else if(startcol==-1) +@@ -660,15 +660,15 @@ + sheet->display(aux); + num++; + } +- sprintf(command,"unhighlightActiveCell +- unhighlightCurrentRange [canvasFromSheet $activeSheet] +- unhighlightColSelection +- unhighlightRowSelection +- set rows_selected [list %d %d] +- highlightRowSelection +- set currentRange \ +- [list 0 %d [expr [DefSheetWidth] - 1] %d] +- highlightCurrentRange [canvasFromSheet $activeSheet]", ++ sprintf(command,"unhighlightActiveCell\n" ++ "unhighlightCurrentRange [canvasFromSheet $activeSheet]\n" ++ "unhighlightColSelection\n" ++ "unhighlightRowSelection\n" ++ "set rows_selected [list %d %d]\n" ++ "highlightRowSelection\n" ++ "set currentRange \\n" ++ " [list 0 %d [expr [DefSheetWidth] - 1] %d]\n" ++ "highlightCurrentRange [canvasFromSheet $activeSheet]", + startrow,endrow,startrow,endrow); + } + else if((endrow==-1)&&(endcol==-1)) // cell - && is not necessary +@@ -680,13 +680,13 @@ + lastformat=swp; + sheet->display(aux); + sprintf(command, +- "unhighlightActiveCell +- unhighlightCurrentRange [canvasFromSheet $activeSheet] +- unhighlightColSelection +- unhighlightRowSelection +- set activeCellCol %d +- set activeCellRow %d +- highlightActiveCell",startcol,startrow); ++ "unhighlightActiveCell\n" ++ "unhighlightCurrentRange [canvasFromSheet $activeSheet]\n" ++ "unhighlightColSelection\n" ++ "unhighlightRowSelection\n" ++ "set activeCellCol %d\n" ++ "set activeCellRow %d\n" ++ "highlightActiveCell",startcol,startrow); + } + } + else +@@ -704,12 +704,12 @@ + } + else + internal_error(); +- sprintf(command,"unhighlightActiveCell +- unhighlightCurrentRange [canvasFromSheet $activeSheet] +- unhighlightColSelection +- unhighlightRowSelection +- set currentRange [list %d %d %d %d] +- highlightCurrentRange [canvasFromSheet $activeSheet]", ++ sprintf(command,"unhighlightActiveCell\n" ++ "unhighlightCurrentRange [canvasFromSheet $activeSheet]\n" ++ "unhighlightColSelection\n" ++ "unhighlightRowSelection\n" ++ "set currentRange [list %d %d %d %d]\n" ++ "highlightCurrentRange [canvasFromSheet $activeSheet]", + startcol,startrow,endcol,endrow); + } + sheet->RunScript(command); +@@ -747,8 +747,8 @@ + } + width=prev_width; + +- sprintf(command,"[canvasFromSheet $activeSheet] yview scroll 1 units +- [canvasFromSheet $activeSheet] yview scroll -1 units"); ++ sprintf(command,"[canvasFromSheet $activeSheet] yview scroll 1 units\n" ++ "[canvasFromSheet $activeSheet] yview scroll -1 units"); + sheet->RunScript(command); + } + +@@ -774,8 +774,8 @@ + sheet->set_row_height(row,height); + height=prev_height; + +- sprintf(command,"[canvasFromSheet $activeSheet] yview scroll 1 units +- [canvasFromSheet $activeSheet] yview scroll -1 units"); ++ sprintf(command,"[canvasFromSheet $activeSheet] yview scroll 1 units\n" ++ "[canvasFromSheet $activeSheet] yview scroll -1 units"); + sheet->RunScript(command); + } + +@@ -797,13 +797,13 @@ + { + char command[512]; + +- sprintf(command,"doDeleteGraph %d +- unhighlightActiveCell +- unhighlightCurrentRange [canvasFromSheet $activeSheet] +- unhighlightColSelection +- unhighlightRowSelection +- set currentRange [list %d %d %d %d] +- highlightCurrentRange [canvasFromSheet $activeSheet]", ++ sprintf(command,"doDeleteGraph %d\n" ++ "unhighlightActiveCell\n" ++ "unhighlightCurrentRange [canvasFromSheet $activeSheet] \n" ++ "unhighlightColSelection\n" ++ "unhighlightRowSelection\n" ++ "set currentRange [list %d %d %d %d]\n" ++ "highlightCurrentRange [canvasFromSheet $activeSheet]", + gr->number, + gr->range.start.col,gr->range.start.row, + gr->range.end.col,gr->range.end.row); +@@ -884,13 +884,13 @@ + { + char command[512]; + +- sprintf(command,"doDeleteGraph %d +- unhighlightActiveCell +- unhighlightCurrentRange [canvasFromSheet $activeSheet] +- unhighlightColSelection +- unhighlightRowSelection +- set currentRange [list %d %d %d %d] +- highlightCurrentRange [canvasFromSheet $activeSheet]", ++ sprintf(command,"doDeleteGraph %d\n" ++ "unhighlightActiveCell\n" ++ "unhighlightCurrentRange [canvasFromSheet $activeSheet] \n" ++ "unhighlightColSelection\n" ++ "unhighlightRowSelection\n" ++ "set currentRange [list %d %d %d %d]\n" ++ "highlightCurrentRange [canvasFromSheet $activeSheet]", + gr->number, + gr->range.start.col,gr->range.start.row, + gr->range.end.col,gr->range.end.row); +@@ -931,9 +931,9 @@ + + sheet->add_graph_deps(sheet->graphs[i]); + +- sprintf(command," [canvasFromSheet $activeSheet] delete graphrect +- [canvasFromSheet $activeSheet] delete graph_%d +- doDrawGraph [GetGraphParams $activeSheet %d] %d ", ++ sprintf(command," [canvasFromSheet $activeSheet] delete graphrect\n" ++ "[canvasFromSheet $activeSheet] delete graph_%d\n" ++ "doDrawGraph [GetGraphParams $activeSheet %d] %d ", + grph->number,grph->number,grph->number); + + delete grph; diff --git a/deskutils/abacus/files/patch-tcl_interf-tcl_interf.cc b/deskutils/abacus/files/patch-tcl_interf-tcl_interf.cc new file mode 100644 index 000000000000..afb11a264231 --- /dev/null +++ b/deskutils/abacus/files/patch-tcl_interf-tcl_interf.cc @@ -0,0 +1,79 @@ +--- tcl_interf/tcl_interf.cc.orig Mon Oct 26 00:38:39 1998 ++++ tcl_interf/tcl_interf.cc Mon Aug 11 21:05:45 2003 +@@ -2471,8 +2471,8 @@ + sheet->add_graph_deps(grp); + + sprintf(command, +- "[canvasFromSheet $activeSheet] delete graph_%d +- doDrawGraph [GetGraphParams $activeSheet %d] %d ", ++ "[canvasFromSheet $activeSheet] delete graph_%d\n" ++ "doDrawGraph [GetGraphParams $activeSheet %d] %d ", + grp->number,grp->number,grp->number); + + sheet->RunScript(command); +@@ -2487,8 +2487,8 @@ + sheet->add_graph_deps(grp); + + sprintf(command, +- "[canvasFromSheet $activeSheet] delete graph_%d +- doDrawGraph [GetGraphParams $activeSheet %d] %d ", ++ "[canvasFromSheet $activeSheet] delete graph_%d\n" ++ "doDrawGraph [GetGraphParams $activeSheet %d] %d ", + grp->number,grp->number,grp->number); + + sheet->RunScript(command); +@@ -2528,8 +2528,8 @@ + sheet->add_graph_deps(grp); + + sprintf(command, +- "[canvasFromSheet $activeSheet] delete graph_%d +- doDrawGraph [GetGraphParams $activeSheet %d] %d ", ++ "[canvasFromSheet $activeSheet] delete graph_%d\n" ++ "doDrawGraph [GetGraphParams $activeSheet %d] %d ", + grp->number,grp->number,grp->number); + + sheet->RunScript(command); +@@ -2544,8 +2544,8 @@ + sheet->add_graph_deps(grp); + + sprintf(command, +- "[canvasFromSheet $activeSheet] delete graph_%d +- doDrawGraph [GetGraphParams $activeSheet %d] %d ", ++ "[canvasFromSheet $activeSheet] delete graph_%d\n" ++ "doDrawGraph [GetGraphParams $activeSheet %d] %d ", + grp->number,grp->number,grp->number); + + sheet->RunScript(command); +@@ -2719,8 +2719,8 @@ + grp->number); + else + sprintf(command, +- "[canvasFromSheet $activeSheet] delete graph_%d +- doDrawGraph [GetGraphParams $activeSheet %d] %d ", ++ "[canvasFromSheet $activeSheet] delete graph_%d\n" ++ "doDrawGraph [GetGraphParams $activeSheet %d] %d ", + grp->number,grp->number,grp->number); + + sheet->RunScript(command); +@@ -2820,8 +2820,8 @@ + grp->number); + else + sprintf(command, +- "[canvasFromSheet $activeSheet] delete graph_%d +- doDrawGraph [GetGraphParams $activeSheet %d] %d ", ++ "[canvasFromSheet $activeSheet] delete graph_%d\n" ++ "doDrawGraph [GetGraphParams $activeSheet %d] %d ", + grp->number,grp->number,grp->number); + + sheet->RunScript(command); +@@ -2868,8 +2868,8 @@ + grp->number); + else + sprintf(command, +- "[canvasFromSheet $activeSheet] delete graph_%d +- doDrawGraph [GetGraphParams $activeSheet %d] %d ", ++ "[canvasFromSheet $activeSheet] delete graph_%d\n" ++ "doDrawGraph [GetGraphParams $activeSheet %d] %d ", + grp->number,grp->number,grp->number); + + sheet->RunScript(command); |