Skip to content

Commit

Permalink
multimedia/winff: upgrade to 1.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
thierry-FreeBSD committed Feb 20, 2024
1 parent f40c9c1 commit 49ff47b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 58 deletions.
5 changes: 2 additions & 3 deletions multimedia/winff/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
PORTNAME= WinFF
PORTVERSION= 1.6.2
PORTREVISION= 1
PORTVERSION= 1.6.3
CATEGORIES= multimedia
MASTER_SITES= https://github.com/WinFF/winff/archive/refs/tags/
#MASTER_SITES= https://github.com/WinFF/winff/archive/refs/tags/
PKGNAMESUFFIX= ${LAZARUS_PKGNAMESUFFIX}
DISTNAME= ${_PORTNAME}-${PORTVERSION}

Expand Down
6 changes: 3 additions & 3 deletions multimedia/winff/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1696178544
SHA256 (winff-1.6.2.tar.gz) = c06e8f35f0ee67025422265baa07dab7508596a11d80034c93b519af0472a730
SIZE (winff-1.6.2.tar.gz) = 40479616
TIMESTAMP = 1708452527
SHA256 (winff-1.6.3.tar.gz) = 7205b855c65f2d642cd3619e1c3e2943f058ed97d0c69d1544a91164c713786a
SIZE (winff-1.6.3.tar.gz) = 40479311
58 changes: 7 additions & 51 deletions multimedia/winff/files/patch-winff_unit1.pas
Original file line number Diff line number Diff line change
@@ -1,55 +1,11 @@
--- winff/unit1.pas.orig 2023-10-01 15:40:03 UTC
--- winff/unit1.pas.orig 2024-02-19 13:49:13 UTC
+++ winff/unit1.pas
@@ -27,9 +27,9 @@ uses
{$IFDEF WINDOWS} windows, shellapi, dos,{$endif}
{$IFDEF unix} baseunix, unix, {$endif}
laz_xmlcfg, dom, xmlread, xmlwrite, StdCtrls, Buttons, ActnList, Menus, unit2, unit3,
- unit4, unit5, gettext, translations, process
+ unit4, unit5, gettext, translations, process, LazFileUtils, LazUTF8
{$IFDEF TRANSLATESTRING}, DefaultTranslator{$ENDIF}, ExtCtrls, ComCtrls, Spin, UTF8Process,
- PoTranslator, types, FileUtil, regexpr, LazUTF8, LazFileUtils;
+ PoTranslator, types, FileUtil, regexpr {$IFDEF WINDOWS}, LazUTF8, LazFileUtils{$endif} {$IFDEF linux}, LazUTF8, LazFileUtils{$endif};
@@ -31,7 +31,7 @@ uses
{$IFDEF TRANSLATESTRING}, DefaultTranslator{$ENDIF},
ExtCtrls, ComCtrls, Spin, UTF8Process, PoTranslator, types, FileUtil, regexpr
{$IFDEF WINDOWS}, LazUTF8, LazFileUtils {$endif}
- {$IFDEF linux}, LazUTF8, LazFileUtils {$endif};
+ {$IFDEF unix}, LazUTF8, LazFileUtils {$endif};

type

@@ -1241,13 +1241,13 @@ procedure TfrmMain.launchbrowser(URL:string);

// launch browser
procedure TfrmMain.launchbrowser(URL:string);
-{$IFDEF linux}
+{$IFDEF unix}
var
launcher:tprocess;
s:string;
{$endif}
begin
- {$ifdef linux}
+ {$ifdef unix}
s:='';
if fileexists('/usr/bin/konqueror') then s:='/usr/bin/konqueror';
if fileexists('/usr/bin/mozilla-firefox') then s:='/usr/bin/mozilla-firefox';
@@ -1382,13 +1382,13 @@ procedure TfrmMain.LaunchPdf(pdffile:string);

// launch pdf
procedure TfrmMain.LaunchPdf(pdffile:string);
-{$IFDEF linux}
+{$IFDEF unix}
var
launcher:tprocess;
s:string;
{$endif}
begin
- {$ifdef linux}
+ {$ifdef unix}
s:='';
if fileexists('/usr/bin/okular') then s:='/usr/bin/okular';
if fileexists('/usr/bin/evince') then s:='/usr/bin/evince';
@@ -1984,7 +1984,7 @@ begin
language: string;
begin
language:=leftstr(lang,2);
- {$ifdef linux}
+ {$ifdef unix}
s :='';
if fileexists('/usr/share/doc/winff/WinFF.' + language + '.pdf.gz') then s:='/usr/share/doc/winff/WinFF.' + language + '.pdf.gz';
if fileexists('/usr/share/doc/winff/WinFF.' + language + '.pdf') then s:='/usr/share/doc/winff/WinFF.' + language + '.pdf';
1 change: 0 additions & 1 deletion multimedia/winff/pkg-plist
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ share/pixmaps/winff.png
%%DATADIR%%/languages/winff.nb.po
%%DATADIR%%/languages/winff.nl.po
%%DATADIR%%/languages/winff.pl.po
%%DATADIR%%/languages/winff.po
%%DATADIR%%/languages/winff.pot
%%DATADIR%%/languages/winff.pt_BR.po
%%DATADIR%%/languages/winff.pt.po
Expand Down

0 comments on commit 49ff47b

Please sign in to comment.