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
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')
-rw-r--r--dev-qt/designer/ChangeLog9
-rw-r--r--dev-qt/designer/designer-4.8.5.ebuild81
-rw-r--r--dev-qt/designer/metadata.xml18
3 files changed, 108 insertions, 0 deletions
diff --git a/dev-qt/designer/ChangeLog b/dev-qt/designer/ChangeLog
new file mode 100644
index 000000000000..59ada2a5b4b9
--- /dev/null
+++ b/dev-qt/designer/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-qt/designer
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-qt/designer/ChangeLog,v 1.1 2013/07/09 11:05:43 pesa Exp $
+
+*designer-4.8.5 (09 Jul 2013)
+
+ 09 Jul 2013; Davide Pesavento <pesa@gentoo.org> +designer-4.8.5.ebuild,
+ +metadata.xml:
+ New ebuild for Designer application, split off from dev-qt/qtgui.
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'
+}
diff --git a/dev-qt/designer/metadata.xml b/dev-qt/designer/metadata.xml
new file mode 100644
index 000000000000..52fb855db816
--- /dev/null
+++ b/dev-qt/designer/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>qt</herd>
+ <use>
+ <flag name="c++0x">Build Qt using the C++11 standard</flag>
+ <flag name="declarative">Build the qdeclarativeview plugin</flag>
+ <flag name="exceptions">Add support for exceptions - like catching them
+ inside the event loop (recommended by Nokia)</flag>
+ <flag name="phonon">Build the phononwidgets plugin</flag>
+ <flag name="qt3support">Build the qt3supportwidgets plugin</flag>
+ <flag name="webkit">Build the qwebview plugin</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://bugreports.qt-project.org/</bugs-to>
+ <doc>http://qt-project.org/doc/</doc>
+ </upstream>
+</pkgmetadata>