diff options
author | shurd <shurd@FreeBSD.org> | 2016-05-10 17:16:40 +0800 |
---|---|---|
committer | shurd <shurd@FreeBSD.org> | 2016-05-10 17:16:40 +0800 |
commit | e38e8df45f0a71b403c00ab78dd566dfb0461a78 (patch) | |
tree | 49b308f44a246d8622e1834d9f2080dad7fc9c2a /comms | |
parent | 3990d9291b3ba2429ef99b262f620e251a48c2cc (diff) | |
download | freebsd-ports-gnome-e38e8df45f0a71b403c00ab78dd566dfb0461a78.tar.gz freebsd-ports-gnome-e38e8df45f0a71b403c00ab78dd566dfb0461a78.tar.zst freebsd-ports-gnome-e38e8df45f0a71b403c00ab78dd566dfb0461a78.zip |
Update to latest release
Fix relative paths to share directory.
Use DATADIR in the software instead of constructing it from PREFIX.
Diffstat (limited to 'comms')
-rw-r--r-- | comms/cqrlog/Makefile | 27 | ||||
-rw-r--r-- | comms/cqrlog/distinfo | 4 | ||||
-rw-r--r-- | comms/cqrlog/files/patch-src_dData.pas | 60 | ||||
-rw-r--r-- | comms/cqrlog/files/patch-src_fGrayline.pas | 4 |
4 files changed, 75 insertions, 20 deletions
diff --git a/comms/cqrlog/Makefile b/comms/cqrlog/Makefile index 863eed110f92..ba3cf50092bf 100644 --- a/comms/cqrlog/Makefile +++ b/comms/cqrlog/Makefile @@ -2,9 +2,8 @@ # $FreeBSD$ PORTNAME= cqrlog -PORTVERSION= 2.0.0 +PORTVERSION= 2.0.1 DISTVERSIONPREFIX= v -PORTREVISION= 1 CATEGORIES= comms hamradio MAINTAINER= hamradio@FreeBSD.org @@ -53,20 +52,22 @@ post-patch: ${FILESDIR}/environmentoptions.xml.in \ > ${WRKSRC}/environmentoptions.xml ${REINPLACE_CMD} -e s!%%LOCALBASE%%!${LOCALBASE}!g \ - ${WRKSRC}/src/dData.pas ${WRKSRC}/src/dUtils.pas \ - ${WRKSRC}/src/fLoTWExport.pas ${WRKSRC}/src/fPreferences.pas \ - ${WRKSRC}/src/fRotControl.pas ${WRKSRC}/src/fTRXControl.pas \ - ${WRKSRC}/src/fGrayline.pas ${WRKSRC}/help/cwd.html \ - ${WRKSRC}/help/h1.html ${WRKSRC}/src/fPreferences.pas \ - ${WRKSRC}/src/fLoTWExport.lrs ${WRKSRC}/src/fPreferences.lfm \ - ${WRKSRC}/src/fPreferences.lrs ${WRKSRC}/src/fLoTWExport.lfm \ - ${WRKSRC}/src/cqrlog.lpi - ${REINPLACE_CMD} -e s!%%PREFIX%%!${PREFIX}!g \ + ${WRKSRC}/help/cwd.html ${WRKSRC}/help/h1.html \ + ${WRKSRC}/src/cqrlog.lpi ${WRKSRC}/src/dData.pas \ + ${WRKSRC}/src/dUtils.pas ${WRKSRC}/src/fLoTWExport.lrs \ + ${WRKSRC}/src/fLoTWExport.pas ${WRKSRC}/src/fLoTWExport.lfm \ + ${WRKSRC}/src/fPreferences.pas ${WRKSRC}/src/fRotControl.pas \ + ${WRKSRC}/src/fTRXControl.pas ${WRKSRC}/src/fGrayline.pas \ + ${WRKSRC}/src/fPreferences.lfm ${WRKSRC}/src/fPreferences.pas \ + ${WRKSRC}/src/fPreferences.lrs + ${REINPLACE_CMD} -e s!%%DATADIR%%!${DATADIR}!g \ ${WRKSRC}/src/dData.pas ${WRKSRC}/src/fGrayline.pas ${REINPLACE_CMD} -e s!%%LAZARUSDIR%%!${LAZARUS_DIR}!g \ ${WRKSRC}/Makefile ${RM} -rf ${WRKSRC}/src/mysql - ${LAZARUS_DIR}/tools/lazres ${WRKSRC}/src/fLoTWExport.lrs ${WRKSRC}/src/fLoTWExport.lfm - ${LAZARUS_DIR}/tools/lazres ${WRKSRC}/src/fPreferences.lrs ${WRKSRC}/src/fPreferences.lfm + ${LAZARUS_DIR}/tools/lazres ${WRKSRC}/src/fLoTWExport.lrs \ + ${WRKSRC}/src/fLoTWExport.lfm + ${LAZARUS_DIR}/tools/lazres ${WRKSRC}/src/fPreferences.lrs \ + ${WRKSRC}/src/fPreferences.lfm .include <bsd.port.mk> diff --git a/comms/cqrlog/distinfo b/comms/cqrlog/distinfo index 59dadc399ea4..5493af9f12fd 100644 --- a/comms/cqrlog/distinfo +++ b/comms/cqrlog/distinfo @@ -1,2 +1,2 @@ -SHA256 (ok2cqr-cqrlog-v2.0.0_GH0.tar.gz) = f3c324b3cdb9f0c7a8e9efea05a1776854a0ca4707da52a2dfe99fce251bf860 -SIZE (ok2cqr-cqrlog-v2.0.0_GH0.tar.gz) = 7894125 +SHA256 (ok2cqr-cqrlog-v2.0.1_GH0.tar.gz) = 17eaa17820e668eb21bc8ac75199aac5aa7ab0725b58b77ad3a86e09145d7977 +SIZE (ok2cqr-cqrlog-v2.0.1_GH0.tar.gz) = 7899762 diff --git a/comms/cqrlog/files/patch-src_dData.pas b/comms/cqrlog/files/patch-src_dData.pas index 1e204abca941..c8722137ea85 100644 --- a/comms/cqrlog/files/patch-src_dData.pas +++ b/comms/cqrlog/files/patch-src_dData.pas @@ -1,6 +1,60 @@ ---- src/dData.pas.orig 2016-04-20 16:06:15 UTC +--- src/dData.pas.orig 2016-05-07 08:21:24 UTC +++ src/dData.pas -@@ -1278,12 +1278,12 @@ begin +@@ -910,22 +910,22 @@ begin + if DirectoryExistsUTF8(fHomeDir+'members') then + fMembersDir := fHomeDir+'members'+PathDelim + else +- fMembersDir := ExpandFileNameUTF8('..'+PathDelim+'share'+PathDelim+'cqrlog'+ ++ fMembersDir := ExpandFileNameUTF8('%%DATADIR%%'+ + PathDelim+'members'+PathDelim); + + if DirectoryExistsUTF8(fHomeDir+'zipcodes') then + fZipCodeDir := fHomeDir+'zipcodes'+PathDelim + else +- fZipCodeDir := ExpandFileNameUTF8('..'+PathDelim+'share'+PathDelim+'cqrlog')+ ++ fZipCodeDir := ExpandFileNameUTF8('%%DATADIR%%')+ + PathDelim+'zipcodes'+PathDelim; + + if not DirectoryExistsUTF8(fHomeDir+'images') then + CreateDirUTF8(fHomeDir+'images'); + +- fHelpDir := ExpandFileNameUTF8('..'+PathDelim+'share'+PathDelim+'cqrlog'+ ++ fHelpDir := ExpandFileNameUTF8('%%DATADIR%%'+ + PathDelim+'help'+PathDelim); + +- fShareDir := ExpandFileNameUTF8('..'+PathDelim+'share'+PathDelim+'cqrlog'+ ++ fShareDir := ExpandFileNameUTF8('%%DATADIR%%'+ + PathDelim); + + if not DirectoryExistsUTF8(fHomeDir + 'lotw') then +@@ -948,7 +948,7 @@ procedure TdmData.PrepareCtyData; + var + s,d : String; + begin +- s := ExpandFileNameUTF8('..'+PathDelim+'share'+PathDelim+'cqrlog'+PathDelim+'ctyfiles'+PathDelim); ++ s := ExpandFileNameUTF8('%%DATADIR%%'+PathDelim+'ctyfiles'+PathDelim); + d := fHomeDir+'ctyfiles'+PathDelim; + + if not FileExistsUTF8(fHomeDir+'ctyfiles'+PathDelim+'AreaOK1RR.tbl') then +@@ -1016,7 +1016,7 @@ procedure TdmData.PrepareXplanetDir; + var + s,d : String; + begin +- s := ExpandFileNameUTF8('..'+PathDelim+'share'+PathDelim+'cqrlog'+PathDelim+'xplanet'+PathDelim); ++ s := ExpandFileNameUTF8('%%DATADIR%%'+PathDelim+'xplanet'+PathDelim); + d := fHomeDir+'xplanet'+PathDelim; + if not FileExistsUTF8(d+'geoconfig') then + CopyFile(s+'geoconfig',d+'geoconfig') +@@ -1026,7 +1026,7 @@ procedure TdmData.PrepareVoice_keyerDir; + var + s,d : String; + begin +- s := ExpandFileNameUTF8('..'+PathDelim+'share'+PathDelim+'cqrlog'+PathDelim+'voice_keyer'+PathDelim); ++ s := ExpandFileNameUTF8('%%DATADIR%%'+PathDelim+'voice_keyer'+PathDelim); + d := fHomeDir+'voice_keyer'+PathDelim; + if not FileExistsUTF8(d+'voice_keyer.sh') then + CopyFile(s+'voice_keyer.sh',d+'voice_keyer.sh') +@@ -1288,12 +1288,12 @@ begin { @@ -19,7 +73,7 @@ if mysqld = '' then //don't know where mysqld is, so hopefully will be in $PATH mysqld := 'mysqld'; -@@ -3452,12 +3452,12 @@ var +@@ -3462,12 +3462,12 @@ var l : TStringList; info : String; begin diff --git a/comms/cqrlog/files/patch-src_fGrayline.pas b/comms/cqrlog/files/patch-src_fGrayline.pas index 803d1af51b54..05cdef23fce7 100644 --- a/comms/cqrlog/files/patch-src_fGrayline.pas +++ b/comms/cqrlog/files/patch-src_fGrayline.pas @@ -1,11 +1,11 @@ ---- src/fGrayline.pas.orig 2016-04-20 16:06:15 UTC +--- src/fGrayline.pas.orig 2016-05-07 08:21:24 UTC +++ src/fGrayline.pas @@ -383,7 +383,7 @@ begin RBNSpotList[i].band := ''; ImageFile := dmData.HomeDir+'images'+PathDelim+'grayline.bmp'; if not FileExists(ImageFile) then - ImageFile := ExpandFileNameUTF8('..'+PathDelim+'share'+PathDelim+'cqrlog'+ -+ ImageFile := ExpandFileNameUTF8('%%PREFIX%%'+PathDelim+'share'+PathDelim+'cqrlog'+ ++ ImageFile := ExpandFileNameUTF8('%%DATADIR%%'+ PathDelim+'images'+PathDelim+'grayline.bmp'); ob:=new(Pgrayline,init(ImageFile)) end; |