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

(-)/usr/portage/x11-libs/qwt-qt3/qwt-qt3-5.0.2.ebuild (-28 / +19 lines)
Lines 2-61 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.2 2007/08/09 12:01:39 caleb Exp $
3
# $Header: /var/cvsroot/gentoo-x86/x11-libs/qwt-qt3/qwt-qt3-5.0.2.ebuild,v 1.2 2007/08/09 12:01:39 caleb Exp $
4
4
5
inherit multilib eutils qt3
5
inherit multilib qt3
6
6
7
MY_P=${P/-qt3/}
7
MY_P="${P/-qt3/}"
8
8
9
SRC_URI="mirror://sourceforge/qwt/${MY_P}.tar.bz2"
9
SRC_URI="mirror://sourceforge/qwt/${MY_P}.tar.bz2"
10
HOMEPAGE="http://qwt.sourceforge.net/"
10
HOMEPAGE="http://qwt.sourceforge.net/"
11
DESCRIPTION="2D plotting library for Qt4"
11
DESCRIPTION="2D plotting library for Qt3"
12
LICENSE="qwt"
12
LICENSE="qwt"
13
KEYWORDS="~amd64 ~x86"
13
KEYWORDS="~amd64 ~x86"
14
SLOT="5"
14
SLOT="5"
15
IUSE="doc"
15
IUSE="doc"
16
16
17
QWTVER="5.0.2"
17
S="${WORKDIR}/${MY_P}"
18
19
S=${WORKDIR}/${MY_P}
20
18
21
DEPEND="$(qt_min_version 3)"
19
DEPEND="$(qt_min_version 3)"
22
20
23
src_unpack () {
21
src_compile () {
24
	unpack ${A}
22
	sed -i -e "s:TARGET .* = qwt:TARGET = qwt-qt3:" src/src.pro \
25
23
		|| die "sed src.pro failed"
26
	cd {S}
24
	sed -i -e "s:-lqwt:-lqwt-qt3:" designer/designer.pro \
27
25
		|| die "sed designer.pro failed"
28
	sed -i -e "s:TARGET            = qwt:TARGET            = qwt-qt3:" src/src.pro
29
	sed -i -e "s:-lqwt:-lqwt-qt3:" designer/designer.pro
30
26
27
	# Configuration file
31
	qwtconfig="${S}/qwtconfig.pri"
28
	qwtconfig="${S}/qwtconfig.pri"
29
32
	echo > ${qwtconfig} ""
30
	echo > ${qwtconfig} ""
33
	echo >> ${qwtconfig} "target.path = /usr/$(get_libdir)"
31
	echo >> ${qwtconfig} "target.path = /usr/$(get_libdir)"
34
	echo >> ${qwtconfig} "headers.path = /usr/include/qwt-qt3"
32
	echo >> ${qwtconfig} "headers.path = /usr/include/qwt-qt3"
35
	echo >> ${qwtconfig} "doc.path = /usr/share/doc/${PF}"
33
	echo >> ${qwtconfig} "doc.path = /usr/share/doc/${PF}"
36
	echo >> ${qwtconfig}
34
	echo >> ${qwtconfig}
37
	echo >> ${qwtconfig} "CONFIG += qt warn_on thread"
35
	echo >> ${qwtconfig} "CONFIG += qt warn_on thread"
38
	echo >> ${qwtconfig} "CONFIG += release"
39
	echo >> ${qwtconfig} "CONFIG += QwtDll QwtPlot QwtWidgets QwtDesigner"
36
	echo >> ${qwtconfig} "CONFIG += QwtDll QwtPlot QwtWidgets QwtDesigner"
40
37
41
	# Can also do QwtExamples for example building
38
	use doc || echo >> src/src.pro "INSTALLS -= doc"
42
39
43
	echo >> ${qwtconfig} "QMAKE_CFLAGS_RELEASE += ${CFLAGS}"
40
	# Generates top-level Makefile
44
	echo >> ${qwtconfig} "QMAKE_CXXFLAGS_RELEASE += ${CXXFLAGS}"
41
	eqmake3 qwt.pro
45
42
46
	if ! useq doc; then
47
		echo >> "${S}/src/src.pro" "INSTALLS = target headers"
48
	fi
49
50
}
51
52
src_compile () {
53
	# -j1 due to parallel build failures ( bug # 170625 )
43
	# -j1 due to parallel build failures ( bug # 170625 )
54
	${QTDIR}/bin/qmake QMAKE=${QTDIR}/bin/qmake qwt.pro
44
	emake -j1 || die "emake failed"
55
	emake -j1 || die
56
}
45
}
57
46
58
src_install () {
47
src_install () {
59
	make INSTALL_ROOT=${D} install
48
	emake INSTALL_ROOT="${D}" install || die "emake install failed"
60
	rm ${D}usr/$(get_libdir)/libqwt-qt3.so
49
	rm "${D}"/usr/$(get_libdir)/libqwt-qt3.so
50
51
	dodoc CHANGES README
61
}
52
}

Return to bug 189944