summaryrefslogtreecommitdiff
path: root/x11/qt3-libs/patches
diff options
context:
space:
mode:
authorskrll <skrll@pkgsrc.org>2002-01-07 08:07:57 +0000
committerskrll <skrll@pkgsrc.org>2002-01-07 08:07:57 +0000
commit726dbe979449af24c7e295156f035c4834a04c4d (patch)
tree39c378ce23e45608030b5958ce857f06572c2996 /x11/qt3-libs/patches
parent3790b8d3a39bcbad02ef6ae5e6b6b7735f6eab58 (diff)
downloadpkgsrc-726dbe979449af24c7e295156f035c4834a04c4d.tar.gz
Initial import of qt3-libs-3.0.1. The multiplatform GUI toolkit we all
know and love.
Diffstat (limited to 'x11/qt3-libs/patches')
-rw-r--r--x11/qt3-libs/patches/patch-aa13
-rw-r--r--x11/qt3-libs/patches/patch-ab13
-rw-r--r--x11/qt3-libs/patches/patch-ac52
3 files changed, 78 insertions, 0 deletions
diff --git a/x11/qt3-libs/patches/patch-aa b/x11/qt3-libs/patches/patch-aa
new file mode 100644
index 00000000000..f178a29bede
--- /dev/null
+++ b/x11/qt3-libs/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/01/07 08:07:59 skrll Exp $
+
+--- Makefile.orig Mon Oct 8 02:44:41 2001
++++ Makefile
+@@ -53,7 +53,7 @@
+ sub-src: src-moc .qmake.cache FORCE
+ cd src && $(MAKE)
+
+-sub-plugins: sub-src .qmake.cache FORCE
++sub-plugins: .qmake.cache FORCE
+ cd plugins/src && $(MAKE)
+
+ sub-tutorial: sub-src FORCE
diff --git a/x11/qt3-libs/patches/patch-ab b/x11/qt3-libs/patches/patch-ab
new file mode 100644
index 00000000000..f604ad564e3
--- /dev/null
+++ b/x11/qt3-libs/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/01/07 08:07:59 skrll Exp $
+
+--- configure.orig Fri Nov 30 15:27:49 2001
++++ configure
+@@ -121,7 +121,7 @@
+ fi
+
+ touch .test.qt.
+- if [ '!' -f ${QTDIR}/.test.qt. ]
++ if [ '!' -f .test.qt. ]
+ then
+ rm -f .test.qt.
+ echo
diff --git a/x11/qt3-libs/patches/patch-ac b/x11/qt3-libs/patches/patch-ac
new file mode 100644
index 00000000000..1b3ea8d0fc7
--- /dev/null
+++ b/x11/qt3-libs/patches/patch-ac
@@ -0,0 +1,52 @@
+$NetBSD: patch-ac,v 1.1.1.1 2002/01/07 08:07:59 skrll Exp $
+
+--- src/tools/qdir_unix.cpp.orig Wed Dec 12 06:58:31 2001
++++ src/tools/qdir_unix.cpp
+@@ -81,10 +81,19 @@
+
+ bool QDir::mkdir( const QString &dirName, bool acceptAbsPath ) const
+ {
+-#ifdef Q_OS_MACX // Mac X doesn't support trailing /'s
++#ifdef Q_TRAILING_DIR_SEP // Some OSes doesn't support trailing /'s
+ QString name = dirName;
+- if (dirName[dirName.length() - 1] == "/")
+- name = dirName.left( dirName.length() - 1 );
++ int pos = name.length();
++ if (pos > 0) {
++ while ( (pos - 1) >= 0 && name[pos - 1] == '/' ) {
++ --pos;
++ };
++ if ( pos == 0 ) {
++ name = QDir::rootDirPath();
++ } else {
++ name.truncate( pos );
++ }
++ }
+ return QT_MKDIR( QFile::encodeName(filePath(name,acceptAbsPath)), 0777 )
+ == 0;
+ #else
+@@ -95,7 +104,24 @@
+
+ bool QDir::rmdir( const QString &dirName, bool acceptAbsPath ) const
+ {
++#ifdef Q_TRAILING_DIR_SEP // Some OSes doesn't support trailing /'s
++ QString name = dirName;
++ int pos = name.length();
++ if (pos > 0) {
++ while ( (pos - 1) >= 0 && name[pos - 1] == '/' ) {
++ --pos;
++ };
++ if ( pos == 0 ) {
++ name = QDir::rootDirPath();
++ } else {
++ name.truncate( pos );
++ }
++ }
++ return QT_RMDIR( QFile::encodeName(filePath(name,acceptAbsPath)) )
++ == 0;
++#else
+ return QT_RMDIR( QFile::encodeName(filePath(dirName,acceptAbsPath)) ) == 0;
++#endif
+ }
+
+ bool QDir::isReadable() const