Revision: 72065 http://trac.macports.org/changeset/72065 Author: devans@macports.org Date: 2010-10-01 13:10:48 -0700 (Fri, 01 Oct 2010) Log Message: ----------- telepathy-idle: new port, a Telepathy IRC connection manager. Modified Paths: -------------- trunk/dports/comms/telepathy-idle/files/patch-configure.diff Added Paths: ----------- trunk/dports/comms/telepathy-idle/ trunk/dports/comms/telepathy-idle/Portfile trunk/dports/comms/telepathy-idle/files/ trunk/dports/comms/telepathy-idle/files/patch-src-idle-parser.c.diff Copied: trunk/dports/comms/telepathy-idle/Portfile (from rev 72060, trunk/dports/comms/telepathy-gabble/Portfile) =================================================================== --- trunk/dports/comms/telepathy-idle/Portfile (rev 0) +++ trunk/dports/comms/telepathy-idle/Portfile 2010-10-01 20:10:48 UTC (rev 72065) @@ -0,0 +1,41 @@ +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 +# $Id$ + +PortSystem 1.0 + +name telepathy-idle +version 0.1.6 +description The ${name} IRC connection manager component of Telepathy - a Flexible Communications Framework + +long_description \ + Idle implements the Telepathy D-Bus specification for Internet Relay Chat, allowing Telepathy \ + clients like Empathy to connect to IRC servers. + +maintainers devans openmaintainer +categories comms +platforms darwin +homepage http://telepathy.freedesktop.org/wiki/ +master_sites http://telepathy.freedesktop.org/releases/${name}/ + +checksums md5 0efe17425cdc3490714947ff68003bf6 \ + sha1 445cb728172e4a82a350cec1d562d8adcfc271f3 \ + rmd160 12182cf5b5815cc8158777427a047a1889f37cd5 + +depends_build port:pkgconfig \ + port:libxslt \ + port:gtk-doc + +depends_lib port:telepathy-glib \ + port:py26-twisted \ + port:openssl + +patchfiles patch-configure.diff \ + patch-src-idle-parser.c.diff + +configure.python ${prefix}/bin/python2.6 + +configure.args --disable-silent-rules + +livecheck.type regex +livecheck.url ${master_sites} +livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}" Modified: trunk/dports/comms/telepathy-idle/files/patch-configure.diff =================================================================== --- trunk/dports/comms/telepathy-gabble/files/patch-configure.diff 2010-10-01 18:55:49 UTC (rev 72060) +++ trunk/dports/comms/telepathy-idle/files/patch-configure.diff 2010-10-01 20:10:48 UTC (rev 72065) @@ -1,14 +1,21 @@ ---- configure.orig 2010-09-16 05:54:09.000000000 -0700 -+++ configure 2010-09-21 13:49:27.000000000 -0700 -@@ -12964,9 +12964,9 @@ +--- configure.orig 2010-10-01 12:31:11.000000000 -0700 ++++ configure 2010-10-01 12:32:34.000000000 -0700 +@@ -12345,8 +12345,7 @@ + if test -z "$XSLTPROC"; then + as_fn_error "xsltproc (from the libxslt source package) is required" "$LINENO" 5 + fi +-PYTHON= +-for ac_prog in python2.3 python2.4 python2.5 python ++for ac_prog in $PYTHON python2.3 python2.4 python2.5 python + do + # Extract the first word of "$ac_prog", so it can be a program name with args. + set dummy $ac_prog; ac_word=$2 +@@ -12395,7 +12394,7 @@ - - -- PYTHON_PREFIX='${prefix}' -+ PYTHON_PREFIX=`$PYTHON -c 'import sys; print sys.prefix;'` - -- PYTHON_EXEC_PREFIX='${exec_prefix}' -+ PYTHON_EXEC_PREFIX=`$PYTHON -c 'import sys; print sys.exec_prefix;'` - - - + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python with Twisted and IRC protocol support" >&5 + $as_echo_n "checking for Python with Twisted and IRC protocol support... " >&6; } +-for TEST_PYTHON in python2.5 python2.6 python; do ++for TEST_PYTHON in $PYTHON python2.5 python2.6 python; do + if $TEST_PYTHON -c "from sys import version_info; import dbus, dbus.mainloop.glib; raise SystemExit(version_info < (2, 5, 0, 'final', 0))" >/dev/null 2>&1; then + if $TEST_PYTHON -c "import twisted.words.protocols.irc, twisted.internet.reactor" >/dev/null 2>&1; then + if true; then Added: trunk/dports/comms/telepathy-idle/files/patch-src-idle-parser.c.diff =================================================================== --- trunk/dports/comms/telepathy-idle/files/patch-src-idle-parser.c.diff (rev 0) +++ trunk/dports/comms/telepathy-idle/files/patch-src-idle-parser.c.diff 2010-10-01 20:10:48 UTC (rev 72065) @@ -0,0 +1,27 @@ +--- src/idle-parser.c.orig 2010-10-01 12:41:21.000000000 -0700 ++++ src/idle-parser.c 2010-10-01 12:49:51.000000000 -0700 +@@ -201,14 +201,22 @@ + IdleParserPrivate *priv = IDLE_PARSER_GET_PRIVATE(parser); + guint i; + guint lasti = 0; +- gchar *tmp; ++ gchar *tmp, *s; + gboolean line_ends = FALSE; + guint len; + gchar concat_buf[2 * (IRC_MSG_MAXLEN + 3)] = {'\0'}; + + g_assert(msg != NULL); + +- len = strnlen(msg, IRC_MSG_MAXLEN + 3); ++// len = strnlen(msg, IRC_MSG_MAXLEN + 3); ++ ++ s = msg; ++ len = 0; ++ ++ while (*s != '\0' && len < IRC_MSG_MAXLEN + 3) { ++ s++; ++ len++; ++ } + + for (i = 0; i < len; i++) { + if ((msg[i] == '\n' || msg[i] == '\r')) {