[Lunar-commits] <moonbase> qt3: move it from kde3/base dir to qt-apps one.

Florin Braescu florin at lunar-linux.org
Wed Dec 30 14:00:16 CET 2009


commit 5c368c3b76e89f07b7f4807ec07385da3874eaef
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Wed Dec 30 15:00:16 2009 +0200

    qt3: move it from kde3/base dir to qt-apps one.
---
 kde3/base/qt3/BUILD        |   62 --------------------------------------------
 kde3/base/qt3/CONFIGURE    |    1 -
 kde3/base/qt3/DEPENDS      |   20 --------------
 kde3/base/qt3/DETAILS      |   33 -----------------------
 kde3/base/qt3/POST_INSTALL |    4 ---
 kde3/base/qt3/PRE_BUILD    |    5 ---
 qt-apps/qt3/BUILD          |   62 ++++++++++++++++++++++++++++++++++++++++++++
 qt-apps/qt3/CONFIGURE      |    1 +
 qt-apps/qt3/DEPENDS        |   20 ++++++++++++++
 qt-apps/qt3/DETAILS        |   33 +++++++++++++++++++++++
 qt-apps/qt3/POST_INSTALL   |    4 +++
 qt-apps/qt3/PRE_BUILD      |    5 +++
 12 files changed, 125 insertions(+), 125 deletions(-)

diff --git a/kde3/base/qt3/BUILD b/kde3/base/qt3/BUILD
deleted file mode 100644
index e4d9464..0000000
--- a/kde3/base/qt3/BUILD
+++ /dev/null
@@ -1,62 +0,0 @@
-(
-  export  QTDIR=$SOURCE_DIRECTORY
-  export  PATH=$QTDIR/bin:$PATH
-  export  LD_LIBRARY_PATH=$QTDIR/lib
-  bad_flags "-z combreloc"
-
-  # This fixes a bug with inputproto <= 1.4.3
-  CXXFLAGS+=" -DQT_CLEAN_NAMESPACE"
-
-  sedit "s/-O2/$CXXFLAGS/g" mkspecs/linux-g++/qmake.conf  &&
-
-  echo "yes" | ./configure          \
-               -prefix ${MODULE_PREFIX} \
-               -release             \
-               -fast                \
-               -shared              \
-               -thread              \
-               -qt-gif              \
-               -plugin-imgfmt-png   \
-               -plugin-imgfmt-jpeg  \
-               -plugin-imgfmt-mng   \
-               -system-libpng       \
-               -system-libjpeg      \
-               -system-libmng       \
-               -system-zlib         \
-               -no-exceptions       \
-               -dlopen-opengl       \
-               -xft                 \
-               -xkb                 \
-               -sm                  \
-               -tablet              \
-               $OPTS                &&
-
-  if [ "$SAMPIN" == "y" ] ; then
-    make
-  else
-    make sub-tools
-  fi &&
-
-  rm -f bin/qmake              &&     
-  prepare_install              &&
-
-  cp qmake/qmake bin/qmake     &&
-  make install                 &&
-
-  if [ "$SAMPIN" == "y" ] ; then
-    cp -a examples  ${MODULE_PREFIX}/
-    cp -a tutorial  ${MODULE_PREFIX}/
-  fi &&
-
-  if ! grep -q "${MODULE_PREFIX}/lib" /etc/ld.so.conf; then
-    echo "${MODULE_PREFIX}/lib" >> /etc/ld.so.conf
-  fi &&
-
-  echo "export QTDIR=\"${MODULE_PREFIX}\"" >> $SOURCE_DIRECTORY/qt3.rc    &&
-  echo export PATH=\"'${QTDIR}'/bin:'${PATH}'\" >> $SOURCE_DIRECTORY/qt3.rc &&
-  echo export PKG_CONFIG_PATH=\"'${QTDIR}'/lib/pkgconfig:'${PKG_CONFIG_PATH}'\" \
-        >> $SOURCE_DIRECTORY/qt3.rc &&
-
-  install -m644 $SOURCE_DIRECTORY/qt3.rc /etc/profile.d/
-
-) > $C_FIFO 2>&1
diff --git a/kde3/base/qt3/CONFIGURE b/kde3/base/qt3/CONFIGURE
deleted file mode 100644
index ebcac97..0000000
--- a/kde3/base/qt3/CONFIGURE
+++ /dev/null
@@ -1 +0,0 @@
-mquery SAMPIN "Install QT3 examples and tutorials?" n
diff --git a/kde3/base/qt3/DEPENDS b/kde3/base/qt3/DEPENDS
deleted file mode 100644
index c2b2a90..0000000
--- a/kde3/base/qt3/DEPENDS
+++ /dev/null
@@ -1,20 +0,0 @@
-depends  libungif
-depends  libmng
-depends  libpng
-depends  %X
-
-optional_depends  "mysql"                                                    \
-                  "-plugin-sql-mysql -I/usr/include/mysql -L/usr/lib/mysql"  \
-                  "-no-sql-mysql"                                            \
-                  "for mysql database support"                              
-
-optional_depends  "sqlite"                                                   \
-                  "-plugin-sql-sqlite -I/usr/include -L/usr/lib"             \
-                  "-no-sql-sqlite"                                           \
-                  "for sqlite database support"                             
-
-optional_depends  "postgresql"                                               \
-                  "-plugin-sql-psql -I/usr/include/postgresql/server         \
-                  -L/usr/lib/postgresql"                                     \
-                  "-no-sql-psql"                                             \
-                  "for postgresql database support"
diff --git a/kde3/base/qt3/DETAILS b/kde3/base/qt3/DETAILS
deleted file mode 100644
index 3636b22..0000000
--- a/kde3/base/qt3/DETAILS
+++ /dev/null
@@ -1,33 +0,0 @@
-          MODULE=qt3
-         VERSION=3.3.8b
-          SOURCE=qt-x11-free-$VERSION.tar.gz
-SOURCE_DIRECTORY=$BUILD_DIRECTORY/qt-x11-free-$VERSION
-   SOURCE_URL[0]=ftp://ftp.trolltech.com/qt/source/
-   SOURCE_URL[1]=http://gd.tuwien.ac.at/hci/qt/source/
-      SOURCE_VFY=sha1:745def6250dc7f337dbb265e20bf38dcb41fd854
-   MODULE_PREFIX=${QT_PREFIX:-/opt/lunar/qt/3}
-        WEB_SITE=http://www.trolltech.com/qt
-         ENTERED=20020420
-         UPDATED=20081003
-         GARBAGE=off
-     FTP_PASSIVE=on
-      MAINTAINER=florin at lunar-linux.org
-           SHORT="C++ toolkit for application development."
-
-cat << EOF
-Qt is a C++ toolkit for application development. It lets application
-developers target all major operating systems with a single application
-source code.
-
-Qt provides a platform-independent API to all central platform
-functionality: GUI, database access, networking, file handling, etc. The
-Qt library encapsulates the different APIs of different operating systems,
-providing the application programmer with a single, common API for all
-operating systems. The native C APIs are encapsulated in a set of
-well-designed, fully object-oriented C++ classes.
-
-Certain environment variables must be defined before compiling and using
-applications that depend on qt3.
-QTDIR=/opt/lunar/qt/3
-PATH=/opt/lunar/qt/3/bin:$PATH
-EOF
diff --git a/kde3/base/qt3/POST_INSTALL b/kde3/base/qt3/POST_INSTALL
deleted file mode 100644
index 9e34904..0000000
--- a/kde3/base/qt3/POST_INSTALL
+++ /dev/null
@@ -1,4 +0,0 @@
-if module_installed kdelibs3;     then lin kdelibs3;     fi
-if module_installed kdeartwork3;  then lin kdeartwork3;  fi
-if module_installed sip;          then lin sip;          fi
-if module_installed PyQt;         then lin PyQt;         fi
diff --git a/kde3/base/qt3/PRE_BUILD b/kde3/base/qt3/PRE_BUILD
deleted file mode 100644
index 3e2ee09..0000000
--- a/kde3/base/qt3/PRE_BUILD
+++ /dev/null
@@ -1,5 +0,0 @@
-if module_installed qt3 ; then
-  lrm --upgrade qt3
-fi &&
-
-default_pre_build
diff --git a/qt-apps/qt3/BUILD b/qt-apps/qt3/BUILD
new file mode 100644
index 0000000..e4d9464
--- /dev/null
+++ b/qt-apps/qt3/BUILD
@@ -0,0 +1,62 @@
+(
+  export  QTDIR=$SOURCE_DIRECTORY
+  export  PATH=$QTDIR/bin:$PATH
+  export  LD_LIBRARY_PATH=$QTDIR/lib
+  bad_flags "-z combreloc"
+
+  # This fixes a bug with inputproto <= 1.4.3
+  CXXFLAGS+=" -DQT_CLEAN_NAMESPACE"
+
+  sedit "s/-O2/$CXXFLAGS/g" mkspecs/linux-g++/qmake.conf  &&
+
+  echo "yes" | ./configure          \
+               -prefix ${MODULE_PREFIX} \
+               -release             \
+               -fast                \
+               -shared              \
+               -thread              \
+               -qt-gif              \
+               -plugin-imgfmt-png   \
+               -plugin-imgfmt-jpeg  \
+               -plugin-imgfmt-mng   \
+               -system-libpng       \
+               -system-libjpeg      \
+               -system-libmng       \
+               -system-zlib         \
+               -no-exceptions       \
+               -dlopen-opengl       \
+               -xft                 \
+               -xkb                 \
+               -sm                  \
+               -tablet              \
+               $OPTS                &&
+
+  if [ "$SAMPIN" == "y" ] ; then
+    make
+  else
+    make sub-tools
+  fi &&
+
+  rm -f bin/qmake              &&     
+  prepare_install              &&
+
+  cp qmake/qmake bin/qmake     &&
+  make install                 &&
+
+  if [ "$SAMPIN" == "y" ] ; then
+    cp -a examples  ${MODULE_PREFIX}/
+    cp -a tutorial  ${MODULE_PREFIX}/
+  fi &&
+
+  if ! grep -q "${MODULE_PREFIX}/lib" /etc/ld.so.conf; then
+    echo "${MODULE_PREFIX}/lib" >> /etc/ld.so.conf
+  fi &&
+
+  echo "export QTDIR=\"${MODULE_PREFIX}\"" >> $SOURCE_DIRECTORY/qt3.rc    &&
+  echo export PATH=\"'${QTDIR}'/bin:'${PATH}'\" >> $SOURCE_DIRECTORY/qt3.rc &&
+  echo export PKG_CONFIG_PATH=\"'${QTDIR}'/lib/pkgconfig:'${PKG_CONFIG_PATH}'\" \
+        >> $SOURCE_DIRECTORY/qt3.rc &&
+
+  install -m644 $SOURCE_DIRECTORY/qt3.rc /etc/profile.d/
+
+) > $C_FIFO 2>&1
diff --git a/qt-apps/qt3/CONFIGURE b/qt-apps/qt3/CONFIGURE
new file mode 100644
index 0000000..ebcac97
--- /dev/null
+++ b/qt-apps/qt3/CONFIGURE
@@ -0,0 +1 @@
+mquery SAMPIN "Install QT3 examples and tutorials?" n
diff --git a/qt-apps/qt3/DEPENDS b/qt-apps/qt3/DEPENDS
new file mode 100644
index 0000000..c2b2a90
--- /dev/null
+++ b/qt-apps/qt3/DEPENDS
@@ -0,0 +1,20 @@
+depends  libungif
+depends  libmng
+depends  libpng
+depends  %X
+
+optional_depends  "mysql"                                                    \
+                  "-plugin-sql-mysql -I/usr/include/mysql -L/usr/lib/mysql"  \
+                  "-no-sql-mysql"                                            \
+                  "for mysql database support"                              
+
+optional_depends  "sqlite"                                                   \
+                  "-plugin-sql-sqlite -I/usr/include -L/usr/lib"             \
+                  "-no-sql-sqlite"                                           \
+                  "for sqlite database support"                             
+
+optional_depends  "postgresql"                                               \
+                  "-plugin-sql-psql -I/usr/include/postgresql/server         \
+                  -L/usr/lib/postgresql"                                     \
+                  "-no-sql-psql"                                             \
+                  "for postgresql database support"
diff --git a/qt-apps/qt3/DETAILS b/qt-apps/qt3/DETAILS
new file mode 100644
index 0000000..3636b22
--- /dev/null
+++ b/qt-apps/qt3/DETAILS
@@ -0,0 +1,33 @@
+          MODULE=qt3
+         VERSION=3.3.8b
+          SOURCE=qt-x11-free-$VERSION.tar.gz
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/qt-x11-free-$VERSION
+   SOURCE_URL[0]=ftp://ftp.trolltech.com/qt/source/
+   SOURCE_URL[1]=http://gd.tuwien.ac.at/hci/qt/source/
+      SOURCE_VFY=sha1:745def6250dc7f337dbb265e20bf38dcb41fd854
+   MODULE_PREFIX=${QT_PREFIX:-/opt/lunar/qt/3}
+        WEB_SITE=http://www.trolltech.com/qt
+         ENTERED=20020420
+         UPDATED=20081003
+         GARBAGE=off
+     FTP_PASSIVE=on
+      MAINTAINER=florin at lunar-linux.org
+           SHORT="C++ toolkit for application development."
+
+cat << EOF
+Qt is a C++ toolkit for application development. It lets application
+developers target all major operating systems with a single application
+source code.
+
+Qt provides a platform-independent API to all central platform
+functionality: GUI, database access, networking, file handling, etc. The
+Qt library encapsulates the different APIs of different operating systems,
+providing the application programmer with a single, common API for all
+operating systems. The native C APIs are encapsulated in a set of
+well-designed, fully object-oriented C++ classes.
+
+Certain environment variables must be defined before compiling and using
+applications that depend on qt3.
+QTDIR=/opt/lunar/qt/3
+PATH=/opt/lunar/qt/3/bin:$PATH
+EOF
diff --git a/qt-apps/qt3/POST_INSTALL b/qt-apps/qt3/POST_INSTALL
new file mode 100644
index 0000000..9e34904
--- /dev/null
+++ b/qt-apps/qt3/POST_INSTALL
@@ -0,0 +1,4 @@
+if module_installed kdelibs3;     then lin kdelibs3;     fi
+if module_installed kdeartwork3;  then lin kdeartwork3;  fi
+if module_installed sip;          then lin sip;          fi
+if module_installed PyQt;         then lin PyQt;         fi
diff --git a/qt-apps/qt3/PRE_BUILD b/qt-apps/qt3/PRE_BUILD
new file mode 100644
index 0000000..3e2ee09
--- /dev/null
+++ b/qt-apps/qt3/PRE_BUILD
@@ -0,0 +1,5 @@
+if module_installed qt3 ; then
+  lrm --upgrade qt3
+fi &&
+
+default_pre_build


More information about the Lunar-commits mailing list