git: cd876745538d - main - editors/picpas: remove BROKEN

Jose Alonso Cardenas Marquez acm at FreeBSD.org
Sun Aug 1 07:06:16 UTC 2021


The branch main has been updated by acm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=cd876745538da60f59c7f23c552211af9b63c069

commit cd876745538da60f59c7f23c552211af9b63c069
Author:     Jose Alonso Cardenas Marquez <acm at FreeBSD.org>
AuthorDate: 2021-08-01 07:03:45 +0000
Commit:     Jose Alonso Cardenas Marquez <acm at FreeBSD.org>
CommitDate: 2021-08-01 07:05:24 +0000

    editors/picpas: remove BROKEN
    
    * Re-generate patch files
    * Bump PORTREVISION
---
 editors/picpas/Makefile                            |  9 +--
 editors/picpas/distinfo                            | 10 +--
 .../picpas/files/patch-Source_FrameEditView.pas    | 20 +++++
 .../picpas/files/patch-Source_FramePICDiagram.pas  | 86 +++++++++++++++++++---
 editors/picpas/files/patch-Source_Globales.pas     | 30 ++++----
 editors/picpas/files/patch-Source_PicPas.lpi       | 10 +--
 .../picpas/files/patch-miconfig_MiConfigXML.pas    |  8 +-
 7 files changed, 129 insertions(+), 44 deletions(-)

diff --git a/editors/picpas/Makefile b/editors/picpas/Makefile
index f4bf77a90b46..331cc39714f3 100644
--- a/editors/picpas/Makefile
+++ b/editors/picpas/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	picpas
 PORTVERSION=	0.9.0
-PORTREVISION=	2
+PORTREVISION=	3
 DISTVERSIONPREFIX=	v
 CATEGORIES=	editors
 PKGNAMESUFFIX=	${LAZARUS_PKGNAMESUFFIX}
@@ -10,8 +10,6 @@ COMMENT=	Multi-platform Pascal for Microchip PIC16F microcontrollers
 
 LICENSE=	GPLv2
 
-BROKEN=		fails to build
-
 gtk2_CONFLICTS_INSTALL=	${PORTNAME}-qt5
 qt5_CONFLICTS_INSTALL=	${PORTNAME}-gtk2
 
@@ -23,11 +21,11 @@ DOS2UNIX_REGEX=	.*\.([txt]|pas|lpi|txt|lfm)
 USE_GITHUB=	yes
 GH_ACCOUNT=	t-edson
 GH_PROJECT=	PicPas
-GH_TAGNAME=	520e196
+GH_TAGNAME=	7940bc3
 GH_TUPLE=	t-edson:MiConfig:a4a988a:miconfig/miconfig \
 		t-edson:MisUtils:742eff3:misutils/misutils  \
 		t-edson:PicUtils:5f89bdf:picutils/picutils \
-		t-edson:SynFacilUtils:2909899:syncfacilutils/syncfacilutils \
+		t-edson:SynFacilUtils:8725237:syncfacilutils/syncfacilutils \
 		t-edson:UtilsGrilla:07744b9:utilsgrilla/utilsgrilla \
 		t-edson:ogEditGraf:a19b68a:ogeditgraf/ogeeditgraf \
 		t-edson:t-Xpres:6665922:txpres/txpres
@@ -42,6 +40,7 @@ LAZBUILD_ARGS=		-d
 
 post-patch:
 	${REINPLACE_CMD} 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/Source/Globales.pas
+	${REINPLACE_CMD} 's|0.8.7|${PORTVERSION}|g' ${WRKSRC}/version.txt
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/PicPas-freebsd ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
diff --git a/editors/picpas/distinfo b/editors/picpas/distinfo
index cff08542437d..31469355c90d 100644
--- a/editors/picpas/distinfo
+++ b/editors/picpas/distinfo
@@ -1,14 +1,14 @@
-TIMESTAMP = 1589399120
-SHA256 (t-edson-PicPas-v0.9.0-520e196_GH0.tar.gz) = 0c47225abbb99f397435571b8f57757f43e5a96c3b4ab3db14dd3339f78f43fd
-SIZE (t-edson-PicPas-v0.9.0-520e196_GH0.tar.gz) = 19051230
+TIMESTAMP = 1627797955
+SHA256 (t-edson-PicPas-v0.9.0-7940bc3_GH0.tar.gz) = 33e149399c7bcb64a3f410d368e9cab610d5411df20035a768713df72f8d8542
+SIZE (t-edson-PicPas-v0.9.0-7940bc3_GH0.tar.gz) = 23122693
 SHA256 (t-edson-MiConfig-a4a988a_GH0.tar.gz) = de54af664dc96f510393309454fe033e822ffae9f79ed56c715691713edaa65d
 SIZE (t-edson-MiConfig-a4a988a_GH0.tar.gz) = 34117
 SHA256 (t-edson-MisUtils-742eff3_GH0.tar.gz) = 9b45ca7f6e3870f21abef8f670a54cd111b2cafae3149263399302cdccf973da
 SIZE (t-edson-MisUtils-742eff3_GH0.tar.gz) = 272412
 SHA256 (t-edson-PicUtils-5f89bdf_GH0.tar.gz) = 28abdab6c5b553012cf9d474208e6e9c8d84c0499e48bb49305026bd506616d8
 SIZE (t-edson-PicUtils-5f89bdf_GH0.tar.gz) = 328197
-SHA256 (t-edson-SynFacilUtils-2909899_GH0.tar.gz) = 8bf153428dbfddfd63e023175551f35bee464337cd5d10f5132534bf0c9181dc
-SIZE (t-edson-SynFacilUtils-2909899_GH0.tar.gz) = 259715
+SHA256 (t-edson-SynFacilUtils-8725237_GH0.tar.gz) = 3b8fb86ef403557df6dc7287db0251ed169d2b5caeacc3b70bed9f2eefd1881b
+SIZE (t-edson-SynFacilUtils-8725237_GH0.tar.gz) = 264089
 SHA256 (t-edson-UtilsGrilla-07744b9_GH0.tar.gz) = 7f5ec2e53a9a58a296fa5d08eebbfe54e4040bf15952ff4720ae8e92d4fd3933
 SIZE (t-edson-UtilsGrilla-07744b9_GH0.tar.gz) = 49776
 SHA256 (t-edson-ogEditGraf-a19b68a_GH0.tar.gz) = 99ca2c8c76034983fb90349db2dd73a4fee2a3b7a8ec348bd151ebc18f4ef571
diff --git a/editors/picpas/files/patch-Source_FrameEditView.pas b/editors/picpas/files/patch-Source_FrameEditView.pas
new file mode 100644
index 000000000000..f804a4439f9a
--- /dev/null
+++ b/editors/picpas/files/patch-Source_FrameEditView.pas
@@ -0,0 +1,20 @@
+--- Source/FrameEditView.pas.orig	2021-08-01 06:56:07 UTC
++++ Source/FrameEditView.pas
+@@ -438,9 +438,6 @@ begin
+   ed.OnCommandProcessed:=@edCommandProcessed;  //necesita para actualizar el cursor
+ //  RecentFiles := TStringList.Create;
+   MaxRecents := 1;   //Inicia con 1
+-  //guarda parámetros
+-  nomDef := nomDef0;
+-  extDef := extDef0;
+   NewFile;   //Inicia editor con archivo vacío
+   ///////////////////////////////////////////////////////////////
+   tabWidth := 30;  //valor por defecto
+@@ -848,7 +845,6 @@ begin
+   ed.OnChangeEditorState := @ChangeEditorState;
+   ed.OnChangeFileInform := @editChangeFileInform;
+   ed.hl.IconList := ImgCompletion;
+-  ed.SetLanguage(curLanguage);
+   //Configura PageControl
+   ed.SynEdit.Parent := self;
+   ed.SynEdit.Align := alClient;
diff --git a/editors/picpas/files/patch-Source_FramePICDiagram.pas b/editors/picpas/files/patch-Source_FramePICDiagram.pas
index 6a0bf7519df9..b7b9410fbff2 100644
--- a/editors/picpas/files/patch-Source_FramePICDiagram.pas
+++ b/editors/picpas/files/patch-Source_FramePICDiagram.pas
@@ -1,6 +1,72 @@
---- Source/FramePICDiagram.pas	2020-05-13 15:24:28.472849000 -0500
-+++ Source/FramePICDiagram.pas	2020-05-13 15:21:41.106017000 -0500
-@@ -1135,7 +1135,7 @@
+--- Source/FramePICDiagram.pas.orig	2021-08-01 06:56:07 UTC
++++ Source/FramePICDiagram.pas
+@@ -573,13 +573,13 @@ begin
+   //Cuerpo
+   col := GetThevCol(nodParent.vt, nodParent.rt);  //Se supone que el nodo padre ya está actualizado
+   v2d.SetPen(psSolid, 1, col);
+-  v2d.Linea(pcBEGIN.x, pcBEGIN.y, pcEND.x, pcEND.y);
++  v2d.Line(pcBEGIN.x, pcBEGIN.y, pcEND.x, pcEND.y);
+   //Implementamos nosotros el remarcado y selección, para personalizar mejor
+   //---------------Draw mark --------------
+   if Marked and Highlight then begin
+     //Resaltado
+     v2d.SetPen(psSolid, 2, clBlue);   //RGB(128, 128, 255)
+-    v2d.Linea(pcBEGIN.x, pcBEGIN.y, pcEND.x, pcEND.y);
++    v2d.Line(pcBEGIN.x, pcBEGIN.y, pcEND.x, pcEND.y);
+     //Marcador de Voltaje
+     v2d.SetPen(psSolid, 1, clBlack);   //RGB(128, 128, 255)
+     v2d.SetBrush(clYellow);
+@@ -824,8 +824,8 @@ begin
+   //Dibuja cuerpo
+   v2d.SetPen(psSolid, 2, COL_GND);
+   //Línea vertioal y conexión a tierra
+-  v2d.Linea(x+12, y, x+12, y2);
+-  v2d.Linea(x+5, y2, x+19, y2);
++  v2d.Line(x+12, y, x+12, y2);
++  v2d.Line(x+5, y2, x+19, y2);
+   //Resistencia
+   v2d.SetPen(psSolid, 1, COL_GND);
+   v2d.SetBrush(COL_RES);
+@@ -932,15 +932,15 @@ begin
+   //conexión a tierra
+   v2d.SetPen(psSolid, 1, COL_GND);
+   y2 := y + height + 10;
+-  v2d.Linea(x+30, y+height, x+30, y2);
+-  v2d.Linea(x+24, y2, x+36, y2);
++  v2d.Line(x+30, y+height, x+30, y2);
++  v2d.Line(x+24, y2, x+36, y2);
+   //Dibuja los pines
+   v2d.SetPen(psSolid, 1, COL_GND);
+   for pCnx in PtosConex do begin
+     pin := TPinGraph(pCnx);
+     //En el PIC, los pines se pintan con el color del modelo interno
+     v2d.SetBrush(clWhite);  //Rellena de acuerdo al estado
+-    v2d.Linea(pin.x, pin.y, pin.x+7, pin.y);
++    v2d.Line(pin.x, pin.y, pin.x+7, pin.y);
+     v2d.Texto(x+pin.xLbl, y+pin.yLbl, pin.lbl);
+   end;
+   inherited;
+@@ -999,8 +999,8 @@ begin
+ 
+   //Línea vertioal y conexión a tierra
+   v2d.SetPen(psSolid, 2, COL_GND);
+-  v2d.Linea(x+12, y, x+12, y2);
+-  v2d.Linea(x+5, y2, x+19, y2);
++  v2d.Line(x+12, y, x+12, y2);
++  v2d.Line(x+5, y2, x+19, y2);
+   //Resistencia
+   v2d.SetPen(psSolid, 1, COL_GND);
+   v2d.SetBrush(COL_RES);
+@@ -1044,7 +1044,7 @@ begin
+       nod.UpdateModel;
+     end;
+   end; //Protección
+-  motEdi.Refrescar;
++  motEdi.Refresh;
+ end;
+ procedure TfraPICDiagram.SetCompiler(cxp0: TCompilerBase);
+ begin
+@@ -1135,7 +1135,7 @@ var
  begin
    nodeList.Clear;
    //Explora objetos gráfiocs
@@ -9,7 +75,7 @@
      if og is TOgConector then begin
        ogCon := TOgConector(og);
        AddConnectorToNodes(ogCon);
-@@ -1151,7 +1151,7 @@
+@@ -1151,7 +1151,7 @@ function TfraPICDiagram.ExistsName(AName: string): boo
  var
    og: TObjGraf;
  begin
@@ -18,7 +84,7 @@
      if og.Name = AName then exit(true);
    end;
    exit(false);
-@@ -1174,7 +1174,7 @@
+@@ -1174,7 +1174,7 @@ function TfraPICDiagram.ExistsRef(ARef: string): TOgCo
  var
    og: TObjGraf;
  begin
@@ -27,7 +93,7 @@
      if not(og is TOgComponent) then continue;
      if TOgComponent(og).Ref = ARef then exit(TOgComponent(og));
    end;
-@@ -1201,7 +1201,7 @@
+@@ -1201,7 +1201,7 @@ var
    //oc: TOgConector;
    //xv, yv: Single;
  begin
@@ -36,7 +102,7 @@
      //Hay uno seleccionado
      if motEdi.Selected.IsSelectedBy(X,Y) then begin
        //Click sobre un objeto seleccionado
-@@ -1240,7 +1240,7 @@
+@@ -1240,7 +1240,7 @@ procedure TfraPICDiagram.motEdi_MouseUp(Sender: TObjec
  var
    LogInp: TOgLogicState;
  begin
@@ -45,7 +111,7 @@
      //Hay un componente seleccionado
      if motEdi.Selected.IsSelectedBy(X,Y) then begin
        if motEdi.Selected is TOgLogicState then begin
-@@ -1267,15 +1267,15 @@
+@@ -1267,15 +1267,15 @@ var
    pCnx, pCnx2: TPtoConx;
  begin
    //Verifica el estado para activar acciones
@@ -64,7 +130,7 @@
      //Hay un componente seleccionado
      comp1 := TOgComponent(motEdi.Selected);  //Componente fuente
      mnReset.Visible   := true;
-@@ -1308,7 +1308,7 @@
+@@ -1308,7 +1308,7 @@ begin
      mnConnect.Caption := Format('Connect %s to', [pin1.lbl]);
      //Actualiza menú de Conexión, con objetos gráficos
      mnConnect.Clear;
@@ -73,7 +139,7 @@
        if not(og is TOgComponent) then continue;
        if og is TOgConector then continue;;
        it := AddItemToMenu(mnConnect, og.Name, nil);
-@@ -1454,7 +1454,7 @@
+@@ -1454,7 +1454,7 @@ var
  begin
    nodeList.Clear;
    //Explora objetos gráfiocs
diff --git a/editors/picpas/files/patch-Source_Globales.pas b/editors/picpas/files/patch-Source_Globales.pas
index 2a88cbe51570..a896b112562a 100644
--- a/editors/picpas/files/patch-Source_Globales.pas
+++ b/editors/picpas/files/patch-Source_Globales.pas
@@ -1,6 +1,6 @@
---- Source/Globales.pas	2018-08-10 01:10:52.847492000 -0500
-+++ Source/Globales.pas	2018-08-10 01:19:30.813221000 -0500
-@@ -5,7 +5,7 @@
+--- Source/Globales.pas.orig	2021-08-01 06:56:07 UTC
++++ Source/Globales.pas
+@@ -5,7 +5,7 @@ unit Globales;
  {$mode objfpc}{$H+}
  interface
  uses  Classes, SysUtils, Forms, SynEdit, SynEditKeyCmds, MisUtils,
@@ -9,7 +9,7 @@
  
  const
    NOM_PROG = 'PicPas';   //nombre de programa
-@@ -29,6 +29,7 @@
+@@ -29,6 +29,7 @@ var
     archivoEnt  : string;    //archivo de entrada
     MostrarError: Boolean;   //Bandera para mostrar mensajesde error.
     ActConsSeg  : Boolean;   //Activa consultas en segundo plano
@@ -17,7 +17,7 @@
  
  /////////////// Campos para manejo del diccionario //////////
  var
-@@ -176,7 +177,11 @@
+@@ -176,7 +177,11 @@ End;
  
  initialization
    //inicia directorios de la aplicación
@@ -30,7 +30,7 @@
    patSamples  := patApp + 'samples';
    patUnits    := patApp + 'units';
    patTemp     := patApp + 'temp';
-@@ -189,41 +194,107 @@
+@@ -189,41 +194,107 @@ initialization
    archivoEnt  := '';    //archivo de entrada
    //verifica existencia de carpetas de trabajo
    try
@@ -42,7 +42,7 @@
 -       CreateDir(patSamples);
 +      {$ifdef freebsd}
 +       RunCommand('cp', ['-R',
-+        '%%DATADIR%%/samples',
++        '/usr/local/share/picpas/samples',
 +        patSamples
 +        ], S);
 +      {else}
@@ -54,7 +54,7 @@
 -       CreateDir(patUnits);
 +      {$ifdef freebsd}
 +       RunCommand('cp', ['-R',
-+        '%%DATADIR%%/units',
++        '/usr/local/share/picpas/units',
 +        patUnits
 +        ], S);
 +      {else}
@@ -66,7 +66,7 @@
 -       CreateDir(patDevices10);
 +      {$ifdef freebsd}
 +       RunCommand('cp', ['-R',
-+        '%%DATADIR%%/devices10',
++        '/usr/local/share/picpas/devices10',
 +        patDevices10
 +        ], S);
 +      {else}
@@ -78,7 +78,7 @@
 -       CreateDir(patDevices16);
 +      {$ifdef freebsd}
 +       RunCommand('cp', ['-R',
-+        '%%DATADIR%%/devices16',
++        '/usr/local/share/picpas/devices16',
 +        patDevices16
 +        ], S);
 +      {else}
@@ -90,7 +90,7 @@
 -       CreateDir(patDevices17);
 +      {$ifdef freebsd}
 +       RunCommand('cp', ['-R',
-+        '%%DATADIR%%/devices17',
++        '/usr/local/share/picpas/devices17',
 +        patDevices17
 +        ], S);
 +      {else}
@@ -102,7 +102,7 @@
 -       CreateDir(patDevices18);
 +      {$ifdef freebsd}
 +       RunCommand('cp', ['-R',
-+        '%%DATADIR%%/devices18',
++        '/usr/local/share/picpas/devices18',
 +        patDevices18
 +        ], S);
 +      {else}
@@ -114,7 +114,7 @@
 -       CreateDir(patTemp);
 +      {$ifdef freebsd}
 +       RunCommand('cp', ['-R',
-+        '%%DATADIR%%/temp',
++        '/usr/local/share/picpas/temp',
 +        patTemp
 +        ], S);
 +      {else}
@@ -126,7 +126,7 @@
 -       CreateDir(patSyntax);
 +      {$ifdef freebsd}
 +       RunCommand('cp', ['-R',
-+        '%%DATADIR%%/syntax',
++        '/usr/local/share/picpas/syntax',
 +        patSyntax
 +        ], S);
 +      {else}
@@ -138,7 +138,7 @@
 -      CreateDir(patThemes);
 +      {$ifdef freebsd}
 +       RunCommand('cp', ['-R',
-+        '%%DATADIR%%/themes',
++        '/usr/local/share/picpas/themes',
 +        patThemes
 +        ], S);
 +      {else}
diff --git a/editors/picpas/files/patch-Source_PicPas.lpi b/editors/picpas/files/patch-Source_PicPas.lpi
index 64eef8c2ba41..5a84ea3f2f04 100644
--- a/editors/picpas/files/patch-Source_PicPas.lpi
+++ b/editors/picpas/files/patch-Source_PicPas.lpi
@@ -1,19 +1,19 @@
---- Source/PicPas.lpi	2020-05-13 13:51:01.804862000 -0500
-+++ Source/PicPas.lpi	2020-05-13 14:38:14.698077000 -0500
+--- Source/PicPas.lpi.orig	2021-08-01 06:56:07 UTC
++++ Source/PicPas.lpi
 @@ -25,7 +25,7 @@
            </Target>
            <SearchPaths>
              <IncludeFiles Value="$(ProjOutDir)"/>
--            <OtherUnitFiles Value="..\..\_Librerias\SynFacilUtils-1.21;..\..\_Librerias\MisUtils-0.6;..\..\_Librerias\MiConfig-0.4;..\..\_Librerias\PicUtils-1.4;..\..\_Librerias\Xpres-1.3.2;..\..\_Librerias\UtilsGrilla-0.8;..\..\_Librerias\ogEditGraf-2.3"/>
+-            <OtherUnitFiles Value="..\_libraries\SynFacilUtils-1.21;..\_libraries\MisUtils-0.6;..\_libraries\MiConfig-0.4;..\_libraries\PicUtils-1.6;..\_libraries\Xpres-1.3.2;..\_libraries\UtilsGrilla-0.8;..\_libraries\ogEditGraf-2.5"/>
 +            <OtherUnitFiles Value="..\syncfacilutils;..\misutils;..\miconfig;..\picutils;..\txpres;..\utilsgrilla;..\ogeeditgraf"/>
              <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
            </SearchPaths>
            <CodeGeneration>
-@@ -309,7 +309,7 @@
+@@ -301,7 +301,7 @@
      </Target>
      <SearchPaths>
        <IncludeFiles Value="$(ProjOutDir)"/>
--      <OtherUnitFiles Value="..\..\_libraries\SynFacilUtils-1.21;..\..\_libraries\MisUtils-0.6;..\..\_libraries\MiConfig-0.4;..\..\_libraries\PicUtils-1.6;..\..\_libraries\Xpres-1.3.2;..\..\_libraries\UtilsGrilla-0.8;..\..\_libraries\ogEditGraf-2.7"/>
+-      <OtherUnitFiles Value="..\..\_libraries\SynFacilUtils-1.21;..\..\_libraries\MisUtils-0.6;..\..\_libraries\MiConfig-0.4;..\..\_libraries\PicUtils-1.6;..\..\_libraries\Xpres-1.3.2;..\..\_libraries\UtilsGrilla-0.8;..\..\_libraries\ogEditGraf-2.5"/>
 +      <OtherUnitFiles Value="..\syncfacilutils;..\misutils;..\miconfig;..\picutils;..\txpres;..\utilsgrilla;..\ogeeditgraf"/>
        <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
      </SearchPaths>
diff --git a/editors/picpas/files/patch-miconfig_MiConfigXML.pas b/editors/picpas/files/patch-miconfig_MiConfigXML.pas
index a3d261d04ba1..3985a6d51a71 100644
--- a/editors/picpas/files/patch-miconfig_MiConfigXML.pas
+++ b/editors/picpas/files/patch-miconfig_MiConfigXML.pas
@@ -1,6 +1,6 @@
---- miconfig/MiConfigXML.pas	2018-04-26 21:42:01.343702000 -0500
-+++ miconfig/MiConfigXML.pas	2018-04-26 21:43:20.791884000 -0500
-@@ -20,7 +20,7 @@
+--- miconfig/MiConfigXML.pas.orig	2021-08-01 06:56:07 UTC
++++ miconfig/MiConfigXML.pas
+@@ -20,7 +20,7 @@ unit MiConfigXML;
  {$mode objfpc}{$H+}
  interface
  uses
@@ -9,7 +9,7 @@
  type
    { TMiConfigXML }
    {Clase base que es usada para manejar los campos de configuración.}
-@@ -75,7 +75,7 @@
+@@ -75,7 +75,7 @@ end;
  function TMiConfigXML.DefaultFileName: string;
  {Devuelve el nombre por defecto del archvio de configuración}
  begin


More information about the dev-commits-ports-main mailing list