Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Aug 2019 18:19:44 +0000 (UTC)
From:      Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r509038 - in head/net-p2p/transmission-remote-gui: . files
Message-ID:  <201908151819.x7FIJine074342@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: acm
Date: Thu Aug 15 18:19:44 2019
New Revision: 509038
URL: https://svnweb.freebsd.org/changeset/ports/509038

Log:
  - Update to 5.17.0
  - Add lang directory
  - Add DESKTOP_ENTRIES
  - Few minor modifications

Added:
  head/net-p2p/transmission-remote-gui/files/patch-restranslator.pas   (contents, props changed)
Modified:
  head/net-p2p/transmission-remote-gui/Makefile
  head/net-p2p/transmission-remote-gui/distinfo

Modified: head/net-p2p/transmission-remote-gui/Makefile
==============================================================================
--- head/net-p2p/transmission-remote-gui/Makefile	Thu Aug 15 18:12:51 2019	(r509037)
+++ head/net-p2p/transmission-remote-gui/Makefile	Thu Aug 15 18:19:44 2019	(r509038)
@@ -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>

Modified: head/net-p2p/transmission-remote-gui/distinfo
==============================================================================
--- head/net-p2p/transmission-remote-gui/distinfo	Thu Aug 15 18:12:51 2019	(r509037)
+++ head/net-p2p/transmission-remote-gui/distinfo	Thu Aug 15 18:19:44 2019	(r509038)
@@ -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

Added: head/net-p2p/transmission-remote-gui/files/patch-restranslator.pas
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net-p2p/transmission-remote-gui/files/patch-restranslator.pas	Thu Aug 15 18:19:44 2019	(r509038)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908151819.x7FIJine074342>