diff options
author | Jose Alonso Cardenas Marquez <acm@FreeBSD.org> | 2019-08-15 18:19:44 +0000 |
---|---|---|
committer | Jose Alonso Cardenas Marquez <acm@FreeBSD.org> | 2019-08-15 18:19:44 +0000 |
commit | accc4cf08f53dd2fdbc743edc4757a0e9b458cb9 (patch) | |
tree | df8c492b984b3e5a45543a72ae80501d4d1f9185 /net-p2p/transmission-remote-gui | |
parent | 020abe2dd1945029012c757c714dec0c5f2ec5e8 (diff) | |
download | ports-accc4cf08f53dd2fdbc743edc4757a0e9b458cb9.tar.gz ports-accc4cf08f53dd2fdbc743edc4757a0e9b458cb9.zip |
Notes
Diffstat (limited to 'net-p2p/transmission-remote-gui')
-rw-r--r-- | net-p2p/transmission-remote-gui/Makefile | 24 | ||||
-rw-r--r-- | net-p2p/transmission-remote-gui/distinfo | 6 | ||||
-rw-r--r-- | net-p2p/transmission-remote-gui/files/patch-restranslator.pas | 11 |
3 files changed, 33 insertions, 8 deletions
diff --git a/net-p2p/transmission-remote-gui/Makefile b/net-p2p/transmission-remote-gui/Makefile index aa727e4125e5..b5d1ec22482a 100644 --- a/net-p2p/transmission-remote-gui/Makefile +++ b/net-p2p/transmission-remote-gui/Makefile @@ -1,8 +1,7 @@ # $FreeBSD$ PORTNAME= transmission-remote-gui -PORTVERSION= 5.16.0 -PORTREVISION= 1 +PORTVERSION= 5.17.0 DISTVERSIONPREFIX= v CATEGORIES= net-p2p PKGNAMESUFFIX= ${LAZARUS_PKGNAMESUFFIX} @@ -17,14 +16,22 @@ COMMENT= Remote GUI for transmission daemon LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING.txt -USES= fpc iconv lazarus:flavors +USES= desktop-file-utils fpc iconv lazarus:flavors USE_FPC= cairo chm fcl-base fcl-image fcl-json fcl-net fcl-xml pasjpeg \ rtl-objpas rtl-extra x11 +DESKTOP_ENTRIES="Transmission Remote GUI" \ + "Remote GUI for transmission daemon" \ + "transgui" \ + "${PREFIX}/bin/transgui" \ + "Application;Network;" \ + ${TRUE} + WRKSRC= ${WRKDIR}/transgui-${PORTVERSION} -PLIST_FILES= bin/transgui +PLIST_FILES= bin/transgui \ + share/icons/hicolor/48x48/apps/transgui.png +PORTDATA= * SUB_FILES= pkg-message -LLD_UNSAFE= yes LAZARUS_PROJECT_FILES= transgui.lpi LAZBUILD_ARGS= -d @@ -33,8 +40,15 @@ PROJECT_NAME= transgui gtk2_CONFLICTS_INSTALL= ${PORTNAME}-qt5 qt5_CONFLICTS_INSTALL= ${PORTNAME}-gtk2 +post-patch: + ${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/restranslator.pas + do-install: @cd ${WRKSRC}/units && \ ${INSTALL_PROGRAM} transgui ${STAGEDIR}${PREFIX}/bin + @cd ${WRKSRC} && \ + ${COPYTREE_SHARE} lang ${STAGEDIR}${DATADIR} + @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps + ${INSTALL_DATA} ${WRKSRC}/transgui.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/transgui.png .include <bsd.port.mk> diff --git a/net-p2p/transmission-remote-gui/distinfo b/net-p2p/transmission-remote-gui/distinfo index 460150f13e00..bc7c875ad49f 100644 --- a/net-p2p/transmission-remote-gui/distinfo +++ b/net-p2p/transmission-remote-gui/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1551537426 -SHA256 (transmission-remote-gui-transgui-v5.16.0_GH0.tar.gz) = 58397c08dccf19fad3136e53937ca8d87c418484a0ea1abd8f7f7a5f21e789d3 -SIZE (transmission-remote-gui-transgui-v5.16.0_GH0.tar.gz) = 1736774 +TIMESTAMP = 1565888111 +SHA256 (transmission-remote-gui-transgui-v5.17.0_GH0.tar.gz) = c3d5378f8b6be64c3fefab77eecd86b5357dfd9dbb941bd620b6083ae350417f +SIZE (transmission-remote-gui-transgui-v5.17.0_GH0.tar.gz) = 1741716 diff --git a/net-p2p/transmission-remote-gui/files/patch-restranslator.pas b/net-p2p/transmission-remote-gui/files/patch-restranslator.pas new file mode 100644 index 000000000000..b41a70a55a94 --- /dev/null +++ b/net-p2p/transmission-remote-gui/files/patch-restranslator.pas @@ -0,0 +1,11 @@ +--- restranslator.pas 2019-08-15 13:06:50.472675000 -0500 ++++ restranslator.pas 2019-08-15 13:07:17.952867000 -0500 +@@ -196,7 +196,7 @@ + if _IsLangDir(s) then + FDefaultLangDir:=s + else begin +- s:='/usr/local/share/' + ExtractFileNameOnly(ParamStrUtf8(0)) + '/lang/'; ++ s:='%%DATADIR%%/lang/'; + if _IsLangDir(s) then + FDefaultLangDir:=s; + end; |