Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Nov 2015 05:43:31 +0000 (UTC)
From:      Stephen Hurd <shurd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r402647 - in head/comms/klog: . files
Message-ID:  <201511300543.tAU5hVHh085131@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: shurd
Date: Mon Nov 30 05:43:31 2015
New Revision: 402647
URL: https://svnweb.freebsd.org/changeset/ports/402647

Log:
  Install translations, set LICENSE, and fix up dependencies
  
  PR:		201719
  Submitted by:	Andriy Voskoboinyk <s3erios@gmail.com>

Modified:
  head/comms/klog/Makefile
  head/comms/klog/files/patch-setuppagelogsnew.cpp

Modified: head/comms/klog/Makefile
==============================================================================
--- head/comms/klog/Makefile	Mon Nov 30 05:05:45 2015	(r402646)
+++ head/comms/klog/Makefile	Mon Nov 30 05:43:31 2015	(r402647)
@@ -2,23 +2,36 @@
 
 PORTNAME=	klog
 PORTVERSION=	0.9.2.1
+PORTREVISION=	1
 CATEGORIES=	comms hamradio
-MASTER_SITES=		SAVANNAH
+MASTER_SITES=	SAVANNAH
 
 MAINTAINER=	hamradio@FreeBSD.org
 COMMENT=	Simple Qt-based amateur radio logger
 
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/COPYING
+
 USES=		qmake
-USE_QT4=	gui network sql corelib linguist moc_build
+USE_QT4=	corelib gui network sql sql-sqlite3_run moc_build
 DESKTOP_ENTRIES=	"KLog" "Simple Amateur Radio Logging Program" \
 		"" "klog" "Network;HamRadio;" \
 		true
 
 PLIST_FILES=	bin/klog \
+		${DATADIR}/translations/klog_es.qm \
+		${DATADIR}/translations/klog_fr.qm \
 		man/man1/klog.1.gz
 
+post-patch:
+	@${REINPLACE_CMD} '/"klog_" + QLocale::system().name()/\
+		s|);|, "${DATADIR}/translations/");|' \
+			${WRKSRC}/main.cpp
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/klog ${STAGEDIR}${PREFIX}/bin
+	${MKDIR} ${STAGEDIR}${DATADIR}/translations
+	${INSTALL_DATA} ${WRKSRC}/klog_*.qm ${STAGEDIR}${DATADIR}/translations
 	${INSTALL_MAN} ${WRKSRC}/klog.1 ${STAGEDIR}${MANPREFIX}/man/man1
 
 .include <bsd.port.mk>

Modified: head/comms/klog/files/patch-setuppagelogsnew.cpp
==============================================================================
--- head/comms/klog/files/patch-setuppagelogsnew.cpp	Mon Nov 30 05:05:45 2015	(r402646)
+++ head/comms/klog/files/patch-setuppagelogsnew.cpp	Mon Nov 30 05:43:31 2015	(r402647)
@@ -1,6 +1,6 @@
---- setuppagelogsnew.cpp.orig	2015-04-27 23:19:32.000000000 -0700
-+++ setuppagelogsnew.cpp	2015-04-27 23:19:49.000000000 -0700
-@@ -724,6 +724,7 @@
+--- setuppagelogsnew.cpp.orig	2015-09-15 18:40:58 UTC
++++ setuppagelogsnew.cpp
+@@ -735,6 +735,7 @@ bool SetupPageLogsNew::isThereAnyNotMana
          //qDebug() << "SetupPageLogsNew::isThereAnyNotManagedLog tras el while" << endl;
      }
      //qDebug() << "SetupPageLogsNew::isThereAnyNotManagedLog END" << endl;



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