summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2013-07-09 11:05:43 +0000
committerDavide Pesavento <pesa@gentoo.org>2013-07-09 11:05:43 +0000
commite147ed4070080824f84ee37bd65e04980304c957 (patch)
treeff44074fb0416536d4b4210fac8ccf2095bf6c58 /dev-qt/designer/designer-4.8.5.ebuild
parentNew ebuild for qdbusviewer application, split off from dev-qt/qtgui. (diff)
downloadgentoo-2-e147ed4070080824f84ee37bd65e04980304c957.tar.gz
gentoo-2-e147ed4070080824f84ee37bd65e04980304c957.tar.bz2
gentoo-2-e147ed4070080824f84ee37bd65e04980304c957.zip
New ebuild for Designer application, split off from dev-qt/qtgui.
(Portage version: 2.2.0_alpha186/cvs/Linux x86_64, signed Manifest commit with key 17A85C72)
Diffstat (limited to 'dev-qt/designer/designer-4.8.5.ebuild')
-rw-r--r--dev-qt/designer/designer-4.8.5.ebuild81
1 files changed, 81 insertions, 0 deletions
diff --git a/dev-qt/designer/designer-4.8.5.ebuild b/dev-qt/designer/designer-4.8.5.ebuild
new file mode 100644
index 000000000000..e19b5d545d5e
--- /dev/null
+++ b/dev-qt/designer/designer-4.8.5.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-qt/designer/designer-4.8.5.ebuild,v 1.1 2013/07/09 11:05:43 pesa Exp $
+
+EAPI=5
+
+inherit eutils qt4-build
+
+DESCRIPTION="WYSIWYG tool for designing and building Qt-based GUIs"
+SLOT="4"
+if [[ ${QT4_BUILD_TYPE} == live ]]; then
+ KEYWORDS=""
+else
+ KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+fi
+
+DESIGNER_PLUGINS="declarative phonon qt3support webkit"
+IUSE="${DESIGNER_PLUGINS}"
+
+DEPEND="
+ ~dev-qt/qtcore-${PV}[aqua=,debug=]
+ ~dev-qt/qtgui-${PV}[aqua=,debug=]
+ ~dev-qt/qtscript-${PV}[aqua=,debug=]
+ declarative? ( ~dev-qt/qtdeclarative-${PV}[aqua=,debug=] )
+ phonon? ( ~dev-qt/qtphonon-${PV}[aqua=,debug=] )
+ qt3support? ( ~dev-qt/qt3support-${PV}[aqua=,debug=] )
+ webkit? ( ~dev-qt/qtwebkit-${PV}[aqua=,debug=] )
+"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ QT4_TARGET_DIRECTORIES="tools/designer"
+ QT4_EXTRACT_DIRECTORIES="
+ include
+ src
+ tools"
+
+ qt4-build_pkg_setup
+}
+
+src_prepare() {
+ qt4-build_src_prepare
+
+ local plugin
+ for plugin in ${DESIGNER_PLUGINS}; do
+ use ${plugin} || sed -i -e "/\<${plugin}\>/d" \
+ tools/designer/src/plugins/plugins.pro || die
+ done
+}
+
+src_configure() {
+ myconf+="
+ -system-libpng -system-libjpeg -system-zlib
+ -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc
+ -sm -xshape -xsync -xcursor -xfixes -xrandr -xrender -mitshm -xinput -xkb
+ -fontconfig -no-svg -no-webkit -no-phonon -no-opengl"
+
+ qt4-build_src_configure
+}
+
+src_install() {
+ qt4-build_src_install
+
+ # qt-creator
+ # some qt-creator headers are located
+ # under /usr/include/qt4/QtDesigner/private.
+ # those headers are just includes of the headers
+ # which are located under tools/designer/src/lib/*
+ # So instead of installing both, we create the private folder
+ # and drop tools/designer/src/lib/* headers in it.
+ if use aqua && [[ ${CHOST##*-darwin} -ge 9 ]]; then
+ insinto "${QTLIBDIR#${EPREFIX}}"/QtDesigner.framework/Headers/private/
+ else
+ insinto "${QTHEADERDIR#${EPREFIX}}"/QtDesigner/private/
+ fi
+ doins "${S}"/tools/designer/src/lib/shared/*
+ doins "${S}"/tools/designer/src/lib/sdk/*
+
+ doicon tools/designer/src/designer/images/designer.png
+ make_desktop_entry designer Designer designer 'Qt;Development;GUIDesigner'
+}