diff options
author | pat <pat@FreeBSD.org> | 2002-07-28 05:35:42 +0000 |
---|---|---|
committer | pat <pat@FreeBSD.org> | 2002-07-28 05:35:42 +0000 |
commit | 536f0b01810ef5d9c23c854b0f3a0f68088dcc90 (patch) | |
tree | b505f4776ef3d27e1c57ded657cfb1e083a43349 | |
parent | 4e07f4b8f85a43eb1a71b3856b6412969e1eb400 (diff) | |
download | FreeBSD-ports-536f0b01810ef5d9c23c854b0f3a0f68088dcc90.zip FreeBSD-ports-536f0b01810ef5d9c23c854b0f3a0f68088dcc90.tar.gz |
Add patch to fix missing line breaks in the chat box
Bump PORTREVISION
PR: ports/40998
Submitted by: maintainer, Samuel Kesterson <samuelk@k-labs.com>
-rw-r--r-- | net-im/psi/Makefile | 3 | ||||
-rw-r--r-- | net-im/psi/files/patch-src::chatdlg.cpp | 24 | ||||
-rw-r--r-- | net-im/psi/files/patch-src::ndns.cpp | 3 | ||||
-rw-r--r-- | net-im/psi/files/template.patch-common.cpp | 2 | ||||
-rw-r--r-- | net/psi/Makefile | 3 | ||||
-rw-r--r-- | net/psi/files/patch-src::chatdlg.cpp | 24 | ||||
-rw-r--r-- | net/psi/files/patch-src::ndns.cpp | 3 | ||||
-rw-r--r-- | net/psi/files/template.patch-common.cpp | 2 |
8 files changed, 60 insertions, 4 deletions
diff --git a/net-im/psi/Makefile b/net-im/psi/Makefile index eda5d03..6f569b1 100644 --- a/net-im/psi/Makefile +++ b/net-im/psi/Makefile @@ -7,6 +7,7 @@ PORTNAME= psi PORTVERSION= 0.8.6 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -23,7 +24,7 @@ MAKE_ARGS= QTDIR=${X11BASE} EXTRA_PATCHES= ${WRKDIR}/patch-common.cpp pre-patch: - ${SED} s,%%PREFIX%%,${PREFIX}, ${PATCHDIR}/template.patch-common.cpp > \ + ${SED} s,%%DATADIR%%,${DATADIR}, ${PATCHDIR}/template.patch-common.cpp > \ ${WRKDIR}/patch-common.cpp pre-build: diff --git a/net-im/psi/files/patch-src::chatdlg.cpp b/net-im/psi/files/patch-src::chatdlg.cpp new file mode 100644 index 0000000..4c73eb0 --- /dev/null +++ b/net-im/psi/files/patch-src::chatdlg.cpp @@ -0,0 +1,24 @@ +$FreeBSD$ + +A workaround for a bug in qt-3.0.3. This patch file should be removed +if we ever upgrade to qt-3.0.5 + +--- src/chatdlg.cpp.orig Tue Jul 23 21:08:25 2002 ++++ src/chatdlg.cpp Tue Jul 23 21:09:59 2002 +@@ -384,13 +384,13 @@ + + //t->setUpdatesEnabled(FALSE); + if(emote) { +- t->append(QString("<font color=\"%1\">").arg(color) + QString("[%1]").arg(timestr) + QString(" *%1 ").arg(expandEntities(who)) + txt + "</font>"); ++ t->append(QString("<BR><font color=\"%1\">").arg(color) + QString("[%1]").arg(timestr) + QString(" *%1 ").arg(expandEntities(who)) + txt + "</font>"); + } + else { + if(option.chatSays) +- t->append(QString("<font color=\"%1\">").arg(color) + QString("[%1] ").arg(timestr) + expandEntities(who) + QString(" says:</font><br>") + txt); ++ t->append(QString("<BR><font color=\"%1\">").arg(color) + QString("[%1] ").arg(timestr) + expandEntities(who) + QString(" says:</font><br>") + txt); + else +- t->append(QString("<font color=\"%1\">").arg(color) + QString("[%1] <").arg(timestr) + expandEntities(who) + QString("></font> ") + txt); ++ t->append(QString("<BR><font color=\"%1\">").arg(color) + QString("[%1] <").arg(timestr) + expandEntities(who) + QString("></font> ") + txt); + } + if(!msg.subject.isEmpty()) { + t->append(QString("<b>") + tr("Subject:") + "</b> " + QString("%1").arg(expandEntities(msg.subject))); diff --git a/net-im/psi/files/patch-src::ndns.cpp b/net-im/psi/files/patch-src::ndns.cpp index 1a742aa..8cd6c1d 100644 --- a/net-im/psi/files/patch-src::ndns.cpp +++ b/net-im/psi/files/patch-src::ndns.cpp @@ -1,3 +1,6 @@ +$FreeBSD$ + + --- src/ndns.cpp.orig Thu Jul 11 18:49:42 2002 +++ src/ndns.cpp Thu Jul 11 18:40:24 2002 @@ -51,6 +51,7 @@ diff --git a/net-im/psi/files/template.patch-common.cpp b/net-im/psi/files/template.patch-common.cpp index 0df99d5..cf3ef75 100644 --- a/net-im/psi/files/template.patch-common.cpp +++ b/net-im/psi/files/template.patch-common.cpp @@ -7,7 +7,7 @@ $FreeBSD$ QString getResourcesDir() { - return "/usr/local/psi"; -+ return "%%PREFIX%%/share/psi"; ++ return "%%DATADIR%%"; } QString getHomeDir() diff --git a/net/psi/Makefile b/net/psi/Makefile index eda5d03..6f569b1 100644 --- a/net/psi/Makefile +++ b/net/psi/Makefile @@ -7,6 +7,7 @@ PORTNAME= psi PORTVERSION= 0.8.6 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -23,7 +24,7 @@ MAKE_ARGS= QTDIR=${X11BASE} EXTRA_PATCHES= ${WRKDIR}/patch-common.cpp pre-patch: - ${SED} s,%%PREFIX%%,${PREFIX}, ${PATCHDIR}/template.patch-common.cpp > \ + ${SED} s,%%DATADIR%%,${DATADIR}, ${PATCHDIR}/template.patch-common.cpp > \ ${WRKDIR}/patch-common.cpp pre-build: diff --git a/net/psi/files/patch-src::chatdlg.cpp b/net/psi/files/patch-src::chatdlg.cpp new file mode 100644 index 0000000..4c73eb0 --- /dev/null +++ b/net/psi/files/patch-src::chatdlg.cpp @@ -0,0 +1,24 @@ +$FreeBSD$ + +A workaround for a bug in qt-3.0.3. This patch file should be removed +if we ever upgrade to qt-3.0.5 + +--- src/chatdlg.cpp.orig Tue Jul 23 21:08:25 2002 ++++ src/chatdlg.cpp Tue Jul 23 21:09:59 2002 +@@ -384,13 +384,13 @@ + + //t->setUpdatesEnabled(FALSE); + if(emote) { +- t->append(QString("<font color=\"%1\">").arg(color) + QString("[%1]").arg(timestr) + QString(" *%1 ").arg(expandEntities(who)) + txt + "</font>"); ++ t->append(QString("<BR><font color=\"%1\">").arg(color) + QString("[%1]").arg(timestr) + QString(" *%1 ").arg(expandEntities(who)) + txt + "</font>"); + } + else { + if(option.chatSays) +- t->append(QString("<font color=\"%1\">").arg(color) + QString("[%1] ").arg(timestr) + expandEntities(who) + QString(" says:</font><br>") + txt); ++ t->append(QString("<BR><font color=\"%1\">").arg(color) + QString("[%1] ").arg(timestr) + expandEntities(who) + QString(" says:</font><br>") + txt); + else +- t->append(QString("<font color=\"%1\">").arg(color) + QString("[%1] <").arg(timestr) + expandEntities(who) + QString("></font> ") + txt); ++ t->append(QString("<BR><font color=\"%1\">").arg(color) + QString("[%1] <").arg(timestr) + expandEntities(who) + QString("></font> ") + txt); + } + if(!msg.subject.isEmpty()) { + t->append(QString("<b>") + tr("Subject:") + "</b> " + QString("%1").arg(expandEntities(msg.subject))); diff --git a/net/psi/files/patch-src::ndns.cpp b/net/psi/files/patch-src::ndns.cpp index 1a742aa..8cd6c1d 100644 --- a/net/psi/files/patch-src::ndns.cpp +++ b/net/psi/files/patch-src::ndns.cpp @@ -1,3 +1,6 @@ +$FreeBSD$ + + --- src/ndns.cpp.orig Thu Jul 11 18:49:42 2002 +++ src/ndns.cpp Thu Jul 11 18:40:24 2002 @@ -51,6 +51,7 @@ diff --git a/net/psi/files/template.patch-common.cpp b/net/psi/files/template.patch-common.cpp index 0df99d5..cf3ef75 100644 --- a/net/psi/files/template.patch-common.cpp +++ b/net/psi/files/template.patch-common.cpp @@ -7,7 +7,7 @@ $FreeBSD$ QString getResourcesDir() { - return "/usr/local/psi"; -+ return "%%PREFIX%%/share/psi"; ++ return "%%DATADIR%%"; } QString getHomeDir() |