public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] qt-3.0.1 update to work
@ 2001-12-15 19:22 Sebastian Werner
  2001-12-15 19:28 ` Sebastian Werner
  0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Werner @ 2001-12-15 19:22 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 212 bytes --]

Hey,

here is a updated qt-3.0.1 ebuild which works on my system. The one in cvs 
have a bug at patch objprelink and don't update the CFLAGS.

I have add db support for qt, too.

Try this please

Sebastian Werner

[-- Attachment #2: qt-x11-3.0.1.ebuild --]
[-- Type: text/plain, Size: 3416 bytes --]

# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Dan Armak <danarmak@gentoo.org>
# /space/gentoo/cvsroot/gentoo-x86/x11-libs/qt-x11/qt-x11-3.0.1.ebuild,v 1.1 2001/12/15 14:26:48 gbevin Exp

P=qt-x11-${PV}
S=${WORKDIR}/qt-x11-free-${PV}

DESCRIPTION="QT version ${PV}"

SRC_URI="ftp://ftp.trolltech.com/pub/qt/source/qt-x11-free-${PV}.tar.gz"
HOMEPAGE="http://www.trolltech.com/"

DEPEND=">=media-libs/libpng-1.0.9
	>=media-libs/libmng-1.0.0
	opengl? ( virtual/opengl virtual/glu )
	nas? ( >=media-libs/nas-1.4.1 )
	objprelink? ( dev-util/objprelink )
	mysql? ( >=dev-db/mysql-3.2.10 )
	postgres? ( >=dev-db/postgresql-7.1 )
	odbc? ( >=dev-db/unixODBC-2.0 )
	virtual/x11"

QTBASE=/usr/lib/qt-x11-${PV}
export QTDIR=${S}

src_unpack() {
    unpack ${A}
    cd ${S}
    cp configure configure.orig
    sed -e "s:read acceptance:acceptance=yes:" configure.orig > configure

    cd ${S}/mkspecs/linux-g++
#    mv qmake.conf tmp
#    echo "
#QMAKE_CFLAGS = ${CFLAGS}
#QMAKE_CXXFLAGS = ${CXXFLAGS}
#" > tmp2
#    cat tmp tmp2 > qmake.conf
#    rm tmp tmp2
pwd
    	use objprelink && patch -p0 < ${FILESDIR}/qt-x11-3.0.1-objprelink.patch

	cp qmake.conf qmake.conf-orig
        cat qmake.conf-orig | sed s/'-O2'/'$CFLAGS'/g | sed s/'-g'/''/g > qmake.conf
	
	cd ${S}
	mv tools/assistant/helpdialogimpl.cpp tools/assistant/helpdialogimpl.cpp_orig
	sed -e 's:"/doc/html:"/share/doc/html:g' \
		tools/assistant/helpdialogimpl.cpp_orig > tools/assistant/helpdialogimpl.cpp
	mv tools/assistant/mainwindow.ui.h tools/assistant/mainwindow.ui.h_orig
	sed -e 's:"/doc/html:"/share/doc/html:g' \
		tools/assistant/mainwindow.ui.h_orig > tools/assistant/mainwindow.ui.h
	
}

src_compile() {

	export LDFLAGS="-ldl"

	use nas			&& myconf="${myconf} -system-nas-sound"
	use gif			&& myconf="${myconf} -qt-gif"

	use mysql		&& myconf="${myconf} -plugin-sql-mysql"
	use postgres            && myconf="${myconf} -plugin-sql-postgres"
	use odbc           	&& myconf="${myconf} -plugin-sql-odbc"

	[ "$DEBUG" ]	&& myconf="${myconf} -debug" 			|| myconf="${myconf} -release -no-g++-exceptions"

	./configure -sm -thread -stl -system-zlib -system-libjpeg ${myconf} \
		-system-libmng -system-libpng -ldl -lpthread -prefix ${D}/${QTBASE} \
		-docdir ${D}${QTBASE}/share/doc || die

	emake || die

}

src_install() {

	cd ${S}
	mkdir -p ${D}${QTBASE}
	cp -r examples tutorial ${D}${QTBASE}

	for x in bin include include/private; do
	    mkdir -p ${D}${QTBASE}/${x}
	    cd ${S}/${x}
	    cp -f * ${D}${QTBASE}/${x}
	done
	
	for x in lib mkspecs/linux-g++; do
	    mkdir -p ${D}${QTBASE}/${x}
	    cd ${S}/${x}
	    cp -af * ${D}${QTBASE}/${x}
	done
	
	sed -e "s:${D}::g" \
		-e "s:qt-x11-free-3.0.1:qt-x11-3.0.1:g" \
		-e "s:${WORKDIR}:${QTBASE}:" \
		${S}/.qmake.cache > ${D}${QTBASE}/.qmake.cache

	cd ${S}
	plugins=`find plugins -name "lib*.so" -print`
	for x in $plugins; do
		mkdir -p ${D}${QTBASE}/`dirname $x`
		cp $x ${D}${QTBASE}/$x
	done
	
	cd ${S}
	dodoc ANNOUNCE INSTALL FAQ LICENSE* MANIFEST PLATFORMS PORTING README* changes-*
	dodir ${QTBASE}/share
	dodir ${QTBASE}/share/doc
	cp -af ${S}/doc/man ${D}${QTBASE}/share
	cp -af ${S}/doc/*.doc ${D}${QTBASE}/share/doc
	cp -af ${S}/doc/html ${D}${QTBASE}/share/doc
	

	cd ${D}
	ln -s /${QTBASE} usr/lib/qt-x11-3
	insinto /etc/env.d
	newins ${FILESDIR}/30qt.3 30qt
	doins ${FILESDIR}/45qt-x11-3.0.1

}

[-- Attachment #3: qt-x11-3.0.1-objprelink.patch --]
[-- Type: text/x-diff, Size: 597 bytes --]

*** qmake.conf-orig	Sat Dec 15 20:15:33 2001
--- qmake.conf	Sat Dec 15 20:16:19 2001
***************
*** 44,51 ****
  QMAKE_INCDIR_OPENGL	= /usr/X11R6/include
  QMAKE_LIBDIR_OPENGL	= /usr/X11R6/lib
  
! QMAKE_LINK		= g++
! QMAKE_LINK_SHLIB	= g++
  QMAKE_LFLAGS		= 
  QMAKE_LFLAGS_RELEASE	=
  QMAKE_LFLAGS_DEBUG	= 
--- 44,51 ----
  QMAKE_INCDIR_OPENGL	= /usr/X11R6/include
  QMAKE_LIBDIR_OPENGL	= /usr/X11R6/lib
  
! QMAKE_LINK		= objprelink ${OBJECTS} ${OBJMOC} && g++
! QMAKE_LINK_SHLIB	= objprelink ${OBJECTS} ${OBJMOC} && g++
  QMAKE_LFLAGS		= 
  QMAKE_LFLAGS_RELEASE	=
  QMAKE_LFLAGS_DEBUG	= 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-dev] qt-3.0.1 update to work
  2001-12-15 19:22 [gentoo-dev] qt-3.0.1 update to work Sebastian Werner
@ 2001-12-15 19:28 ` Sebastian Werner
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Werner @ 2001-12-15 19:28 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 315 bytes --]

small error here is the new-ebuild

Am Samstag, 15. Dezember 2001 20:22 schrieben Sie:
> Hey,
>
> here is a updated qt-3.0.1 ebuild which works on my system. The one in cvs
> have a bug at patch objprelink and don't update the CFLAGS.
>
> I have add db support for qt, too.
>
> Try this please
>
> Sebastian Werner

[-- Attachment #2: qt-x11-3.0.1.ebuild --]
[-- Type: text/plain, Size: 3416 bytes --]

# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Dan Armak <danarmak@gentoo.org>
# /space/gentoo/cvsroot/gentoo-x86/x11-libs/qt-x11/qt-x11-3.0.1.ebuild,v 1.1 2001/12/15 14:26:48 gbevin Exp

P=qt-x11-${PV}
S=${WORKDIR}/qt-x11-free-${PV}

DESCRIPTION="QT version ${PV}"

SRC_URI="ftp://ftp.trolltech.com/pub/qt/source/qt-x11-free-${PV}.tar.gz"
HOMEPAGE="http://www.trolltech.com/"

DEPEND=">=media-libs/libpng-1.0.9
	>=media-libs/libmng-1.0.0
	opengl? ( virtual/opengl virtual/glu )
	nas? ( >=media-libs/nas-1.4.1 )
	objprelink? ( dev-util/objprelink )
	mysql? ( >=dev-db/mysql-3.2.10 )
	postgres? ( >=dev-db/postgresql-7.1 )
	odbc? ( >=dev-db/unixODBC-2.0 )
	virtual/x11"

QTBASE=/usr/lib/qt-x11-${PV}
export QTDIR=${S}

src_unpack() {
    unpack ${A}
    cd ${S}
    cp configure configure.orig
    sed -e "s:read acceptance:acceptance=yes:" configure.orig > configure

    cd ${S}/mkspecs/linux-g++
#    mv qmake.conf tmp
#    echo "
#QMAKE_CFLAGS = ${CFLAGS}
#QMAKE_CXXFLAGS = ${CXXFLAGS}
#" > tmp2
#    cat tmp tmp2 > qmake.conf
#    rm tmp tmp2
pwd
    	use objprelink && patch -p0 < ${FILESDIR}/qt-x11-3.0.1-objprelink.patch

	cp qmake.conf qmake.conf-orig
        cat qmake.conf-orig | sed s/"-O2"/"$CFLAGS"/g | sed s/"-g"/""/g > qmake.conf
	
	cd ${S}
	mv tools/assistant/helpdialogimpl.cpp tools/assistant/helpdialogimpl.cpp_orig
	sed -e 's:"/doc/html:"/share/doc/html:g' \
		tools/assistant/helpdialogimpl.cpp_orig > tools/assistant/helpdialogimpl.cpp
	mv tools/assistant/mainwindow.ui.h tools/assistant/mainwindow.ui.h_orig
	sed -e 's:"/doc/html:"/share/doc/html:g' \
		tools/assistant/mainwindow.ui.h_orig > tools/assistant/mainwindow.ui.h
	
}

src_compile() {

	export LDFLAGS="-ldl"

	use nas			&& myconf="${myconf} -system-nas-sound"
	use gif			&& myconf="${myconf} -qt-gif"

	use mysql		&& myconf="${myconf} -plugin-sql-mysql"
	use postgres            && myconf="${myconf} -plugin-sql-postgres"
	use odbc           	&& myconf="${myconf} -plugin-sql-odbc"

	[ "$DEBUG" ]	&& myconf="${myconf} -debug" 			|| myconf="${myconf} -release -no-g++-exceptions"

	./configure -sm -thread -stl -system-zlib -system-libjpeg ${myconf} \
		-system-libmng -system-libpng -ldl -lpthread -prefix ${D}/${QTBASE} \
		-docdir ${D}${QTBASE}/share/doc || die

	emake || die

}

src_install() {

	cd ${S}
	mkdir -p ${D}${QTBASE}
	cp -r examples tutorial ${D}${QTBASE}

	for x in bin include include/private; do
	    mkdir -p ${D}${QTBASE}/${x}
	    cd ${S}/${x}
	    cp -f * ${D}${QTBASE}/${x}
	done
	
	for x in lib mkspecs/linux-g++; do
	    mkdir -p ${D}${QTBASE}/${x}
	    cd ${S}/${x}
	    cp -af * ${D}${QTBASE}/${x}
	done
	
	sed -e "s:${D}::g" \
		-e "s:qt-x11-free-3.0.1:qt-x11-3.0.1:g" \
		-e "s:${WORKDIR}:${QTBASE}:" \
		${S}/.qmake.cache > ${D}${QTBASE}/.qmake.cache

	cd ${S}
	plugins=`find plugins -name "lib*.so" -print`
	for x in $plugins; do
		mkdir -p ${D}${QTBASE}/`dirname $x`
		cp $x ${D}${QTBASE}/$x
	done
	
	cd ${S}
	dodoc ANNOUNCE INSTALL FAQ LICENSE* MANIFEST PLATFORMS PORTING README* changes-*
	dodir ${QTBASE}/share
	dodir ${QTBASE}/share/doc
	cp -af ${S}/doc/man ${D}${QTBASE}/share
	cp -af ${S}/doc/*.doc ${D}${QTBASE}/share/doc
	cp -af ${S}/doc/html ${D}${QTBASE}/share/doc
	

	cd ${D}
	ln -s /${QTBASE} usr/lib/qt-x11-3
	insinto /etc/env.d
	newins ${FILESDIR}/30qt.3 30qt
	doins ${FILESDIR}/45qt-x11-3.0.1

}

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-12-15 19:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-15 19:22 [gentoo-dev] qt-3.0.1 update to work Sebastian Werner
2001-12-15 19:28 ` Sebastian Werner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox