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

Collapse All | Expand All

(-)qt-creator-3.2.2.ebuild (-19 / +33 lines)
Lines 4-10 Link Here
4
4
5
EAPI=5
5
EAPI=5
6
6
7
PLOCALES="cs de fr ja pl ru sl zh_CN zh_TW"
7
# 'hu' is not added here as it is defined in BAD_LANGUAGES in translations.pro file.
8
PLOCALES="cs de es fr it ja pl ru sl uk zh_CN zh_TW"
8
9
9
inherit eutils l10n multilib qmake-utils
10
inherit eutils l10n multilib qmake-utils
10
11
Lines 30-63 Link Here
30
KEYWORDS="~amd64 ~arm ~ppc ~x86"
31
KEYWORDS="~amd64 ~arm ~ppc ~x86"
31
32
32
# TODO: qbs:qbsprojectmanager, winrt (both require qt5)
33
# TODO: qbs:qbsprojectmanager, winrt (both require qt5)
33
QTC_PLUGINS=(android autotools:autotoolsprojectmanager baremetal bazaar
34
QTC_PLUGINS=(android:"android qmakeandroidsupport" autotools:autotoolsprojectmanager baremetal bazaar
34
	clang:clangcodemodel clearcase cmake:cmakeprojectmanager cvs git
35
	clang:clangcodemodel clearcase cmake:cmakeprojectmanager cvs git
35
	ios mercurial perforce python:pythoneditor qnx subversion valgrind)
36
	ios mercurial perforce python:pythoneditor qnx subversion valgrind)
36
IUSE="debug doc examples test ${QTC_PLUGINS[@]%:*}"
37
IUSE="debug doc examples test ${QTC_PLUGINS[@]%:*}"
37
38
38
# minimum Qt version required
39
# minimum Qt version required
39
QT_PV="4.8.5:4"
40
QT_PV="5.3.1:5"
40
41
42
# qt-dev/qtcore-5.3.2-r1 is required to build docs (first ebuild that installs global docs needed for qt-creator[doc])
41
CDEPEND="
43
CDEPEND="
42
	=dev-libs/botan-1.10*[threads]
44
	=dev-libs/botan-1.10*[threads]
43
	>=dev-qt/designer-${QT_PV}
45
	>=dev-qt/designer-${QT_PV}
44
	>=dev-qt/qtcore-${QT_PV}[ssl]
46
	>=dev-qt/qtnetwork-${QT_PV}[ssl]
45
	>=dev-qt/qtdeclarative-${QT_PV}[accessibility]
47
	>=dev-qt/qtconcurrent-${QT_PV}	
46
	>=dev-qt/qtgui-${QT_PV}[accessibility]
48
	>=dev-qt/qtdeclarative-${QT_PV}
47
	>=dev-qt/qthelp-${QT_PV}[doc?]
49
	>=dev-qt/qtgui-${QT_PV}
50
	>=dev-qt/qthelp-${QT_PV}
51
	>=dev-qt/qtquick1-${QT_PV}
52
	>=dev-qt/qtquickcontrols-${QT_PV}
53
	>=dev-qt/qtwidgets-${QT_PV}
54
	>=dev-qt/qtx11extras-${QT_PV}
55
	>=dev-qt/qtxml-${QT_PV}
56
	doc? ( >=dev-qt/qtcore-5.3.2-r1 >=dev-qt/qdoc-${QT_PV} )
48
	>=dev-qt/qtscript-${QT_PV}
57
	>=dev-qt/qtscript-${QT_PV}
49
	>=dev-qt/qtsql-${QT_PV}
58
	>=dev-qt/qtsql-${QT_PV}
50
	>=dev-qt/qtsvg-${QT_PV}[accessibility]
59
	>=dev-qt/qtsvg-${QT_PV}
51
	clang? ( >=sys-devel/clang-3.2:= )
60
	clang? ( >=sys-devel/clang-3.2:= )
52
"
61
"
53
DEPEND="${CDEPEND}
62
DEPEND="${CDEPEND}
54
	virtual/pkgconfig
63
	virtual/pkgconfig
64
	>=dev-qt/linguist-tools-${QT_PV}
55
	test? ( >=dev-qt/qttest-${QT_PV} )
65
	test? ( >=dev-qt/qttest-${QT_PV} )
56
"
66
"
57
RDEPEND="${CDEPEND}
67
RDEPEND="${CDEPEND}
58
	>=sys-devel/gdb-7.2[client(+),python]
68
	>=sys-devel/gdb-7.2[client(+),python]
59
	examples? ( >=dev-qt/qtdemo-${QT_PV} )
69
	examples? ( >=dev-qt/qtdemo-${QT_PV} )
60
"
70
"
71
# If any LINGUAS use flag is enabled, qttranslations must be installed - otherwise translations won't be usable.
72
for x in ${PLOCALES}; do
73
	RDEPEND+=" linguas_${x}? ( >=dev-qt/qttranslations-${QT_PV} ) "
74
done
75
61
PDEPEND="
76
PDEPEND="
62
	autotools? ( sys-devel/autoconf )
77
	autotools? ( sys-devel/autoconf )
63
	bazaar? ( dev-vcs/bzr )
78
	bazaar? ( dev-vcs/bzr )
Lines 74-82 Link Here
74
	for plugin in "${QTC_PLUGINS[@]#[+-]}"; do
89
	for plugin in "${QTC_PLUGINS[@]#[+-]}"; do
75
		if ! use ${plugin%:*}; then
90
		if ! use ${plugin%:*}; then
76
			einfo "Disabling ${plugin%:*} plugin"
91
			einfo "Disabling ${plugin%:*} plugin"
77
			sed -i -re "/(^\s+|SUBDIRS\s*\+=\s*)${plugin#*:}\>/d" \
92
			for plugin_directory_name in ${plugin#*:}; do
78
				src/plugins/plugins.pro \
93
				sed -i -re "/(^\s+|SUBDIRS\s*\+=\s*)${plugin_directory_name}\>/d" \
79
				|| die "failed to disable ${plugin%:*} plugin"
94
					src/plugins/plugins.pro \
95
					|| die "failed to disable ${plugin%:*} plugin"
96
			done
80
		fi
97
		fi
81
	done
98
	done
82
99
Lines 89-97 Link Here
89
}
106
}
90
107
91
src_configure() {
108
src_configure() {
92
	EQMAKE4_EXCLUDE="share/qtcreator/templates/*
109
	eqmake5 IDE_LIBRARY_BASENAME="$(get_libdir)" \
93
			tests/*"
94
	eqmake4 IDE_LIBRARY_BASENAME="$(get_libdir)" \
95
		IDE_PACKAGE_MODE=1 \
110
		IDE_PACKAGE_MODE=1 \
96
		LLVM_INSTALL_DIR="${EPREFIX}/usr" \
111
		LLVM_INSTALL_DIR="${EPREFIX}/usr" \
97
		TEST=$(use test && echo 1 || echo 0) \
112
		TEST=$(use test && echo 1 || echo 0) \
Lines 102-109 Link Here
102
	echo ">>> Test phase [QTest]: ${CATEGORY}/${PF}"
117
	echo ">>> Test phase [QTest]: ${CATEGORY}/${PF}"
103
	cd tests/auto || die
118
	cd tests/auto || die
104
119
105
	EQMAKE4_EXCLUDE="valgrind/*"
120
	eqmake5 IDE_LIBRARY_BASENAME="$(get_libdir)"
106
	eqmake4 IDE_LIBRARY_BASENAME="$(get_libdir)"
107
121
108
	default
122
	default
109
}
123
}
Lines 113-124 Link Here
113
127
114
	dodoc dist/{changes-*,known-issues}
128
	dodoc dist/{changes-*,known-issues}
115
129
116
	# install documentation
130
	# install documentation - it will be auto-detected by qtcreator only when installed under <qtcreator-path>/../share/qtcreator
117
	if use doc; then
131
	if use doc; then
118
		emake docs
132
		emake docs
119
		insinto /usr/share/doc/${PF}
133
		insinto /usr/share/doc/qtcreator
120
		doins share/doc/qtcreator/qtcreator{,-dev}.qch
134
		doins share/doc/qtcreator/qtcreator{,-dev}.qch
121
		docompress -x /usr/share/doc/${PF}/qtcreator{,-dev}.qch
135
		docompress -x /usr/share/doc/qtcreator/qtcreator{,-dev}.qch
122
	fi
136
	fi
123
137
124
	# install desktop file
138
	# install desktop file

Return to bug 479638