Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48154 - QtWvdialer compiling to QT-version 3 instead of 2
Summary: QtWvdialer compiling to QT-version 3 instead of 2
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-17 11:42 UTC by Hindrik Hettema
Modified: 2004-09-27 05:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hindrik Hettema 2004-04-17 11:42:53 UTC
qtwvdialer-0.3.1-r2.ebuild compiles against QT version 2. I have written a patch inside the ebuild that lets it compile against QT version 3. Can it be incorporated as ebuild in the GenToo tree?

qtwvdialer-0.3.1-r3.ebuild:
---------------------------

S=${WORKDIR}/QtWvDialer-${PV}
DESCRIPTION="QT Frontend for wvdial"
SRC_URI="http://www.mtoussaint.de/${P}.tgz"
HOMEPAGE="http://www.mtoussaint.de/qtwvdialer.html"
 
DEPEND="=x11-libs/qt-3*
        >=dev-util/tmake-1.6
        net-dialup/wvdial
        sys-apps/which
        sys-apps/modutils"
 
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86"
 
src_compile() {
 
 
        cd ${S}
        export TMAKEPATH="/usr/lib/tmake/linux-g++"
        sed -i -e "s:TMAKEPATH/\.\./\.\./bin/tmake:TMAKEPATH/../../../bin/tmake:" \
                   -e "104s:return \-1:return 0:"
      \
                   -e "105s:gcc:g\+\+:"
      \
                   ./configure
        ./configure || die
 
        # Fixes to make qtwvdialer compile and run with QT3
        cd src
        for file in qprocess.cpp qprocess_unix.cpp \
                                wvconfigdlg.cpp wvconfigdlg.h \
                                wvdialer.h wvdialer.cpp Makefile; \
        do
                cp "$file" "$file.org"
                sed -e "s:qprocess:old_qprocess:g" \
                        -e "s:QProcess:Old_QProcess:g" \
                        -e "s:defined(_OS_UNIX_):1:g" \
                        "$file.org" > "$file"
        done
 
        cp "qprocess.h" "qprocess.h.org"
         sed -e "s:qprocess:old_qprocess:g" \
                -e "s:QProcess:Old_QProcess:g" \
                -e "s:defined(_OS_UNIX_):1:g" \
                -e "37i#include <qstringlist.h>" \
                "qprocess.h.org" > "qprocess.h"
        mv qprocess.h old_qprocess.h
        mv qprocess.cpp old_qprocess.cpp
        mv qprocess_unix.cpp old_qprocess_unix.cpp
        cd ..
 
        QTDIR=/usr/qt/3 make -e CFLAGS="$CFLAGS" || die
} 
src_install () {
 
insinto /usr
dobin bin/qtwvdialer
dodoc AUTHORS CHANGELOG COPYING README
 
}
Comment 1 Daniel Black (RETIRED) gentoo-dev 2004-09-27 05:08:21 UTC
Doing an update to version 4.2 which uses QT3.

please also do patches as attachements. preferable from diff -u old.ebuild new.ebuild.