Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 93586
Collapse All | Expand All

(-)/var/portage/cvs/gentoo-x86/x11-libs/qt/qt-3.3.4-r3.ebuild (-14 / +29 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt/qt-3.3.4-r3.ebuild,v 1.10 2005/05/13 21:13:24 kloeri Exp $
3
# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt/qt-3.3.4-r3.ebuild,v 1.10 2005/05/13 21:13:24 kloeri Exp $
4
4
5
inherit eutils flag-o-matic
5
inherit eutils flag-o-matic toolchain-funcs
6
6
7
SRCTYPE="free"
7
SRCTYPE="free"
8
DESCRIPTION="QT version ${PV}"
8
DESCRIPTION="QT version ${PV}"
Lines 49-63 Link Here
49
49
50
	export QTDIR=${S}
50
	export QTDIR=${S}
51
51
52
	if useq ppc-macos ; then
52
	PLATCXX="notsupported"
53
		export PLATFORM=darwin-g++
53
	CXX=$(tc-getCXX)
54
		export DYLD_LIBRARY_PATH="${QTDIR}/lib:/usr/X11R6/lib:${DYLD_LIBRARY_PATH}"
54
	if [[ ${CXX/g++/} != ${CXX} ]]; then
55
		export INSTALL_ROOT=""
55
		PLATCXX="g++"
56
	else
56
	elif [[ ${CXX/icc/} != ${CXX} ]]; then
57
		# probably this should be 'linux-g++-64' for 64bit archs
57
		PLATCXX="icc"
58
		# in a fully multilib environment (no compatibility symlinks)
58
	fi
59
		export PLATFORM=linux-g++
59
60
	fi
60
	PLATNAME="notsupported"
61
	if use kernel_linux; then
62
		PLATNAME="linux"
63
	elif use kernel_FreeBSD && use elibc_FreeBSD; then
64
		PLATNAME="freebsd"
65
	elif use ppc-macos; then
66
		PLATNAME=macx
67
#		export DYLD_LIBRARY_PATH="${QTDIR}/lib:/usr/X11R6/lib:${DYLD_LIBRARY_PATH}"
68
#		export INSTALL_ROOT=""
69
	elif use kernel_Darwin && use elibc_Darwin; then
70
		PLATNAME="darwin"
71
	fi
72
73
	# probably this should be '*-64' for 64bit archs
74
	# in a fully multilib environment (no compatibility symlinks)
75
	export PLATFORM="${PLATNAME}-${PLATCXX}"
61
}
76
}
62
77
63
src_unpack() {
78
src_unpack() {
Lines 65-72 Link Here
65
80
66
	cd ${S}
81
	cd ${S}
67
82
68
	cp configure configure.orig
83
	sed -i -e 's:read acceptance:acceptance=yes:' configure
69
	sed -e 's:read acceptance:acceptance=yes:' configure.orig > configure
70
84
71
	epatch ${FILESDIR}/qt-no-rpath-uic.patch
85
	epatch ${FILESDIR}/qt-no-rpath-uic.patch
72
	epatch ${FILESDIR}/qt-no-rpath.patch
86
	epatch ${FILESDIR}/qt-no-rpath.patch
Lines 275-283 Link Here
275
	sed -e "s:${S}:${QTBASE}:g" \
289
	sed -e "s:${S}:${QTBASE}:g" \
276
		${S}/.qmake.cache > ${D}${QTBASE}/.qmake.cache
290
		${S}/.qmake.cache > ${D}${QTBASE}/.qmake.cache
277
291
292
	sed -i -e "s:linux-g++:${PLATFORM}:" ${D}/etc/env.d/45qt3
293
278
	if use ppc-macos ; then
294
	if use ppc-macos ; then
279
		dosed "s:linux-g++:${PLATFORM}:" /etc/env.d/45qt3 \
295
		dosed "s:\$(QTBASE):\$(QTDIR):g" ${QTBASE}/mkspecs/${PLATFORM}/qmake.conf \
280
			"s:\$(QTBASE):\$(QTDIR):g" ${QTBASE}/mkspecs/${PLATFORM}/qmake.conf \
281
			"s:${S}:${QTBASE}:g" ${QTBASE}/mkspecs/${PLATFORM}/qmake.conf ${QTBASE}/lib/libqt-mt.la || die
296
			"s:${S}:${QTBASE}:g" ${QTBASE}/mkspecs/${PLATFORM}/qmake.conf ${QTBASE}/lib/libqt-mt.la || die
282
	fi
297
	fi
283
}
298
}

Return to bug 93586