Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 185984 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/x11-libs/qwt-qt3/qwt-qt3-5.0.2.ebuild (-10 / +8 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/qwt-qt3/qwt-qt3-5.0.2.ebuild,v 1.1 2007/06/21 18:16:51 caleb Exp $
3
# $Header: /var/cvsroot/gentoo-x86/x11-libs/qwt-qt3/qwt-qt3-5.0.2.ebuild,v 1.1 2007/06/21 18:16:51 caleb Exp $
4
4
5
inherit multilib eutils
5
inherit multilib eutils qt3
6
6
7
MY_P=${P/-qt3/}
7
MY_P=${P/-qt3/}
8
8
Lines 18-35 Link Here
18
18
19
S=${WORKDIR}/${MY_P}
19
S=${WORKDIR}/${MY_P}
20
20
21
DEPEND="=x11-libs/qt-3*
21
DEPEND="$(qt_min_version 3)"
22
	>=sys-apps/sed-4"
23
22
24
src_unpack () {
23
src_unpack () {
25
	unpack ${A}
24
	unpack ${A}
26
25
	cd "${S}"
27
	cd ${S}
28
26
29
	sed -i -e "s:TARGET            = qwt:TARGET            = qwt-qt3:" src/src.pro
27
	sed -i -e "s:TARGET            = qwt:TARGET            = qwt-qt3:" src/src.pro
30
	sed -i -e "s:-lqwt:-lqwt-qt3:" designer/designer.pro
28
	sed -i -e "s:-lqwt:-lqwt-qt3:" designer/designer.pro
31
29
32
	qwtconfig=${S}/"qwtconfig.pri"
30
	qwtconfig="${S}/qwtconfig.pri"
33
	echo > ${qwtconfig} ""
31
	echo > ${qwtconfig} ""
34
	echo >> ${qwtconfig} "target.path = /usr/$(get_libdir)"
32
	echo >> ${qwtconfig} "target.path = /usr/$(get_libdir)"
35
	echo >> ${qwtconfig} "headers.path = /usr/include/qwt-qt3"
33
	echo >> ${qwtconfig} "headers.path = /usr/include/qwt-qt3"
Lines 52-62 Link Here
52
50
53
src_compile () {
51
src_compile () {
54
	# -j1 due to parallel build failures ( bug # 170625 )
52
	# -j1 due to parallel build failures ( bug # 170625 )
55
	/usr/qt/3/bin/qmake QMAKE=/usr/qt/3/bin/qmake qwt.pro
53
	${QTDIR}/bin/qmake QMAKE=${QTDIR}/bin/qmake qwt.pro
56
	MAKEOPTS="$MAKEOPTS -j1" emake || die
54
	emake -j1 || die "emake failed"
57
}
55
}
58
56
59
src_install () {
57
src_install () {
60
	make INSTALL_ROOT=${D} install
58
	make INSTALL_ROOT="${D}" install
61
	rm ${D}usr/$(get_libdir)/libqwt-qt3.so
59
	rm "${D}"usr/$(get_libdir)/libqwt-qt3.so
62
}
60
}

Return to bug 185984