[125674] users/mk

mk at macports.org mk at macports.org
Tue Sep 23 22:10:58 PDT 2014


Revision: 125674
          https://trac.macports.org/changeset/125674
Author:   mk at macports.org
Date:     2014-09-23 22:10:58 -0700 (Tue, 23 Sep 2014)
Log Message:
-----------
users/mk/dports/kde/konveration-devel: introduce devel port for konversation

Added Paths:
-----------
    users/mk/dports/
    users/mk/dports/kde/
    users/mk/dports/kde/konversation-devel/
    users/mk/dports/kde/konversation-devel/Portfile
    users/mk/dports/kde/konversation-devel/files/
    users/mk/dports/kde/konversation-devel/files/CompileScript.sh
    users/mk/dports/kde/konversation-devel/files/InstallScript.sh
    users/mk/dports/kde/konversation-devel/files/patch-CMakeLists.txt.diff
    users/mk/dports/kde/konversation-devel/files/workaround-qfontmetrics-bug.patch

Added: users/mk/dports/kde/konversation-devel/Portfile
===================================================================
--- users/mk/dports/kde/konversation-devel/Portfile	                        (rev 0)
+++ users/mk/dports/kde/konversation-devel/Portfile	2014-09-24 05:10:58 UTC (rev 125674)
@@ -0,0 +1,34 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id: Portfile 116197 2014-01-21 14:55:01Z nicos at macports.org $
+
+PortSystem          1.0
+PortGroup           kde4 1.1
+
+fetch.type          git
+git.url             git://anongit.kde.org/konversation
+git.branch          3afe9fe5b2df1452ff2eb62c67326f989486f878
+
+name                konversation-devel
+version             20140922
+categories          kde kde4
+maintainers         nicos mk openmaintainer
+license             GPL-2+ GFDL-1.2
+description         KDE IRC client.
+long_description    ${description}
+platforms           darwin
+homepage            http://konversation.kde.org/
+distname            konversation-${version}
+
+conflicts           konversation
+
+depends_lib         port:kdelibs4 \
+                    port:kdepimlibs4
+
+patchfiles          workaround-qfontmetrics-bug.patch
+patch.dir           ${workpath}/${distname}
+patch.pre_args      -p1
+if {![variant_isset docs]} {
+    patchfiles-append   patch-CMakeLists.txt.diff
+}
+
+livecheck.type      none

Added: users/mk/dports/kde/konversation-devel/files/CompileScript.sh
===================================================================
--- users/mk/dports/kde/konversation-devel/files/CompileScript.sh	                        (rev 0)
+++ users/mk/dports/kde/konversation-devel/files/CompileScript.sh	2014-09-24 05:10:58 UTC (rev 125674)
@@ -0,0 +1,8 @@
+#!/bin/sh -ev
+
+	export PREFIX="%p" USE_UNSERMAKE=1
+	. ./environment-helper.sh
+
+	./build-helper.sh cvs       %N %v %r make -f admin/Makefile.common cvs
+	./build-helper.sh configure %N %v %r ./configure %c $CONFIGURE_PARAMS
+	./build-helper.sh make      %N %v %r unsermake $UNSERMAKEFLAGS

Added: users/mk/dports/kde/konversation-devel/files/InstallScript.sh
===================================================================
--- users/mk/dports/kde/konversation-devel/files/InstallScript.sh	                        (rev 0)
+++ users/mk/dports/kde/konversation-devel/files/InstallScript.sh	2014-09-24 05:10:58 UTC (rev 125674)
@@ -0,0 +1,9 @@
+#!/bin/sh -ev
+
+	export PREFIX="%p" USE_UNSERMAKE=1
+	. ./environment-helper.sh
+
+	./build-helper.sh install %N %v %r unsermake -p -j1 install DESTDIR=%d LN_S='ln -sf'
+
+	mkdir -p %i/share/doc/installed-packages
+	touch %i/share/doc/installed-packages/%N

Added: users/mk/dports/kde/konversation-devel/files/patch-CMakeLists.txt.diff
===================================================================
--- users/mk/dports/kde/konversation-devel/files/patch-CMakeLists.txt.diff	                        (rev 0)
+++ users/mk/dports/kde/konversation-devel/files/patch-CMakeLists.txt.diff	2014-09-24 05:10:58 UTC (rev 125674)
@@ -0,0 +1,10 @@
+--- konversation-1.4/CMakeLists.txt.orig	2011-12-22 20:03:38.000000000 -0500
++++ konversation-1.4/CMakeLists.txt	2011-12-22 20:04:22.000000000 -0500
+@@ -34,7 +34,6 @@
+ 
+ add_subdirectory(src)
+ add_subdirectory(data)
+-add_subdirectory(doc)
+ 
+ get_filename_component(_po_path po ABSOLUTE)
+ get_filename_component(_doc_translations_path doc-translations ABSOLUTE)

Added: users/mk/dports/kde/konversation-devel/files/workaround-qfontmetrics-bug.patch
===================================================================
--- users/mk/dports/kde/konversation-devel/files/workaround-qfontmetrics-bug.patch	                        (rev 0)
+++ users/mk/dports/kde/konversation-devel/files/workaround-qfontmetrics-bug.patch	2014-09-24 05:10:58 UTC (rev 125674)
@@ -0,0 +1,13 @@
+Index: konversation-1.2/src/viewer/topiclabel.cpp
+===================================================================
+--- konversation-1.2.orig/src/viewer/topiclabel.cpp	2009-10-09 13:24:23.000000000 +0200
++++ konversation-1.2/src/viewer/topiclabel.cpp	2009-10-14 20:18:45.000000000 +0200
+@@ -207,6 +207,8 @@
+         {
+             QString tmp = text;
+             int em = fontMetrics().maxWidth();
++            if (!em)
++                return text;
+             maxPixels -= fontMetrics().width("...");
+             int len, delta;
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140923/5f15fbbd/attachment.html>


More information about the macports-changes mailing list