ports/123301: [UPDATE] sysutils/kgtk

Yarodin yarodin at gmail.com
Thu May 1 14:50:01 UTC 2008


>Number:         123301
>Category:       ports
>Synopsis:       [UPDATE] sysutils/kgtk
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 01 14:50:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Yarodin
>Release:        6.3-p2
>Organization:
>Environment:
>Description:
- Fix working with pathes at national encodings if system locale is not utf-8 (add option).
- Add translation for russian language.
- Add pkg-message tip for users with problem 'english only dialogues'.
- Add working mirror for distfile.
>How-To-Repeat:

>Fix:
How to apply:
1) Put patch-kgtk.txt to /usr/ports/sysutils/
2) cd /usr/ports/sysutils/ && patch -E -p <patch-kgtk.txt && find /usr/ports/sysutils/kgtk/ -type f -name "*.orig" -exec rm -f {} \;

Patch attached with submission follows:

--- kgtk.orig/Makefile	2008-04-20 10:13:21.000000000 +0600
+++ kgtk/Makefile	2008-05-01 19:53:01.000000000 +0600
@@ -7,8 +7,10 @@
 
 PORTNAME=	kgtk
 PORTVERSION=	0.9.4
+PORTREVISION=   1
 CATEGORIES=	sysutils kde
-MASTER_SITES=	http://home.freeuk.com/cpdrummond/
+MASTER_SITES=	http://source.antisupport.com/kgtk/ \
+		http://home.freeuk.com/cpdrummond/
 DISTNAME=	KGtk-${PORTVERSION}
 
 MAINTAINER=	citycat4 at ngs.ru
@@ -16,6 +18,10 @@
 
 BUILD_DEPENDS=	cmake:${PORTSDIR}/devel/cmake
 
+SUB_FILES=	pkg-message
+
+OPTIONS=        UNICODE "System locale is utf-8" off
+
 USE_BZIP2=	yes
 USE_GMAKE=	yes
 USE_GNOME=	gtk20
@@ -33,10 +39,13 @@
 PLIST_SUB+=	NLS=""
 .endif
 
+.if !defined(WITHOUT_UNICODE)
+EXTRA_PATCHES+=	${PATCHDIR}/fix-not-utf-locales.patch
+.endif
 post-patch:
 	@${REINPLACE_CMD} -e 's| -ldl||' ${WRKSRC}/gtk2/CMakeLists.txt ${WRKSRC}/qt3/CMakeLists.txt ${WRKSRC}/qt4/CMakeLists.txt
 	@${REINPLACE_CMD} -e 's|#!/bin/bash|#!/bin/sh|' ${WRKSRC}/mangled.sh
-
+	@${CP} ${PATCHDIR}/ru.po ${WRKSRC}/kdialogd3/po/
 pre-configure:
 	@${MKDIR} ${WRKSRC}/${CMAKE_BUILD_DIR}
 
@@ -49,4 +58,6 @@
 		-DCMAKE_EXE_LINKER_FLAGS=${PTHREAD_LIBS} \
 		-DCMAKE_INSTALL_PREFIX=${PREFIX}
 
+post-install:
+	@${CAT} ${PKGMESSAGE}
 .include <bsd.port.mk>
--- kgtk.orig/files/fix-not-utf-locales.patch	1970-01-01 05:00:00.000000000 +0500
+++ kgtk/files/fix-not-utf-locales.patch	2008-05-01 18:41:16.000000000 +0600
@@ -0,0 +1,20 @@
+--- gtk2/kgtk2-wrapper.cmake.orig	2007-11-01 01:33:19.000000000 +0500
++++ gtk2/kgtk2-wrapper.cmake		2008-05-01 18:39:00.000000000 +0600
+@@ -11,6 +11,7 @@
+ # Released under the GPL v2 or later
+ # --
+ #
++export G_BROKEN_FILENAMES=1
+ 
+ app=`basename $0`
+ 
+--- kgtk-wrapper.orig	2007-11-01 01:33:19.000000000 +0500
++++ kgtk-wrapper	2008-05-01 18:38:56.000000000 +0600
+@@ -14,6 +14,7 @@
+ # This script attempts to determine which KGtk library (if any) should
+ # be used when launching the app
+ #
++export G_BROKEN_FILENAMES=1
+ 
+ app=`basename $0`
+ useApp=1
--- kgtk.orig/files/pkg-message.in	1970-01-01 05:00:00.000000000 +0500
+++ kgtk/files/pkg-message.in	2008-05-01 20:02:26.000000000 +0600
@@ -0,0 +1,6 @@
+--------------------------------------------------------------------------
+
+If you get KDE dialogues partially translated to your local language,
+then use correct kgtk wrapper 'kgtk2-wrapper' to start gtk applications.
+
+--------------------------------------------------------------------------
--- kgtk.orig/files/ru.po	1970-01-01 05:00:00.000000000 +0500
+++ kgtk/files/ru.po	2008-05-01 19:33:51.000000000 +0600
@@ -0,0 +1,62 @@
+# translation of ru.po to
+# This file is put in the public domain.
+#
+# Yarodin <yarodin at gmail.com>, 2008.
+msgid ""
+msgstr ""
+"Project-Id-Version: kdialogd3\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2007-09-21 14:40+0100\n"
+"PO-Revision-Date: 2008-05-01 19:31+0600\n"
+"Last-Translator: Yarodin <yarodin at gmail.com>\n"
+"Language-Team:  Russian <kde-i18n-ru at kde.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.11.4\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
+
+#: kdialogd.cpp:328
+msgid "Select Folder"
+msgstr "Выбор папки"
+
+#: kdialogd.cpp:573
+msgid "You can only select local files."
+msgstr "Вы можете выбрать только локальные файлы."
+
+#: kdialogd.cpp:574
+msgid "Remote Files Not Accepted"
+msgstr "Файлы на удаленной машине недоступны"
+
+#: kdialogd.cpp:580
+msgid ""
+"File %1 exits.\n"
+"Do you want to replace it?"
+msgstr ""
+"Файл %1 уже существует.\n"
+"Хотите его перезаписать?"
+
+#: kdialogd.cpp:582
+msgid "File Exists"
+msgstr "Файл существует"
+
+#: kdialogd.cpp:667
+msgid "You can only select local folders."
+msgstr "Вы можете выбрать только локальные папки."
+
+#: kdialogd.cpp:668
+msgid "Remote Folders Not Accepted"
+msgstr "Сетевые папки недоступны."
+
+#: kdialogd.cpp:677
+msgid "KDialog Daemon"
+msgstr "KDialog-Демон"
+
+#: kdialogd.cpp:678
+msgid "Use KDE dialogs from non-KDE apps."
+msgstr "Использование KDE диалогов в Не-KDE приложениях."
+
+#: kdialogd.cpp:680
+msgid "(c) Craig Drummond, 2006-2007"
+msgstr "(c) Craig Drummond, 2006-2007"
+
--- kgtk.orig/pkg-plist	2007-12-17 03:48:33.000000000 +0500
+++ kgtk/pkg-plist	2008-05-01 19:40:45.000000000 +0600
@@ -9,6 +9,7 @@
 %%NLS%%share/locale/de/LC_MESSAGES/kdialogd3.mo
 %%NLS%%share/locale/es/LC_MESSAGES/kdialogd3.mo
 %%NLS%%share/locale/fr/LC_MESSAGES/kdialogd3.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/kdialogd3.mo
 %%NLS%%share/locale/en_GB/LC_MESSAGES/kdialogd3.mo
 %%NLS%%share/locale/zh_CN/LC_MESSAGES/kdialogd3.mo
 @dirrm lib/kgtk


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list