summaryrefslogtreecommitdiff
path: root/packages/sys-devel
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-06-26 18:28:28 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-06-26 18:28:28 +0300
commit9e6e3b5c4abe02afbbaff147d4d9e1ab7e9115db (patch)
treedb9876c22cc60f0668bcebb31e9953107e4985a1 /packages/sys-devel
parent59436023eab5a9f522fa6dce55b964fb458c1449 (diff)
qt-creator-scm
Diffstat (limited to 'packages/sys-devel')
-rw-r--r--packages/sys-devel/qt-creator/qt-creator-4.6.2.exheres-07
-rw-r--r--packages/sys-devel/qt-creator/qt-creator-scm.exheres-029
-rw-r--r--packages/sys-devel/qt-creator/qt-creator.exlib114
3 files changed, 150 insertions, 0 deletions
diff --git a/packages/sys-devel/qt-creator/qt-creator-4.6.2.exheres-0 b/packages/sys-devel/qt-creator/qt-creator-4.6.2.exheres-0
new file mode 100644
index 0000000..67ec3d3
--- /dev/null
+++ b/packages/sys-devel/qt-creator/qt-creator-4.6.2.exheres-0
@@ -0,0 +1,7 @@
+# Copyright 2010 Kim Højgaard-Hansen <kimrhh@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+require qt-creator
+
+PLATFORMS="~amd64 ~x86"
+
diff --git a/packages/sys-devel/qt-creator/qt-creator-scm.exheres-0 b/packages/sys-devel/qt-creator/qt-creator-scm.exheres-0
new file mode 100644
index 0000000..6483962
--- /dev/null
+++ b/packages/sys-devel/qt-creator/qt-creator-scm.exheres-0
@@ -0,0 +1,29 @@
+# Copyright 2010 Kim Højgaard-Hansen <kimrhh@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+SCM_REPOSITORY="git://code.qt.io/qt-creator/qt-creator.git"
+SCM_EXTERNAL_REFS="
+ src/shared/qbs:qbs
+"
+
+SCM_qbs_EXTERNAL_REFS="
+ src/shared/qtscript:script
+"
+SCM_SECONDARY_REPOSITORIES="
+ qbs
+ script
+"
+
+
+SCM_qbs_REPOSITORY="git://code.qt.io/qbs/qbs.git"
+SCM_script_REPOSITORY="git://code.qt.io/qt/qtscript.git"
+
+require qt-creator scm-git
+
+DOWNLOADS=""
+
+PLATFORMS="~amd64 ~x86"
+
+UPSTREAM_DOCUMENTATION="http://doc-snapshots.qt.io/${PN/-/}-master/index.html"
+UPSTREAM_CHANGELOG=""
+
diff --git a/packages/sys-devel/qt-creator/qt-creator.exlib b/packages/sys-devel/qt-creator/qt-creator.exlib
new file mode 100644
index 0000000..5aecc15
--- /dev/null
+++ b/packages/sys-devel/qt-creator/qt-creator.exlib
@@ -0,0 +1,114 @@
+# Copyright 2010 Kim Højgaard-Hansen <kimrhh@exherbo.org>
+# Copyright 2013, 2016 Heiko Becker <heirecka@exherbo.org>
+# Distributed under the terms of the GNU General Public License v2
+
+require qmake [ slot=5 ]
+
+export_exlib_phases src_configure src_compile src_install pkg_preinst
+
+MYPNV=${PN}-opensource-src-${PV}
+
+SUMMARY="Qt Creator is a new cross-platform integrated development environment for use with Qt."
+HOMEPAGE="http://qt-project.org/ http://www.qt.io/"
+
+DOWNLOADS="mirror://qt/official_releases/${PN/-/}/$(ever range 1-2)/${PV}/${MYPNV}.tar.xz"
+
+LICENCES="
+ LGPL-2.1 LGPL-3
+ BSD-3 [[ note = [ ClassView and ImageViewer plugins ] ]]
+ GPL-3 [[ note = [ Qt Quick Desinger ] ]]
+ MIT [[ note = [ Front-end for C++ ] ]]
+"
+
+SLOT="0"
+MYOPTIONS="
+ webengine [[ description = [ Use QtWebEngine instead of a more basic viewer to display the docs ] ]]
+"
+
+min_qt_ver=5.6.2
+
+DEPENDENCIES="
+ build:
+ virtual/pkg-config
+ build+run:
+ dev-lang/clang[>=5.0.0]
+ dev-libs/botan:1.10[>=1.10.0]
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/qtbase:5[>=${min_qt_ver}][gui][sql]
+ x11-libs/qtdeclarative:5[>=${min_qt_ver}]
+ x11-libs/qtquickcontrols:5[>=${min_qt_ver}]
+ x11-libs/qtscript:5[>=${min_qt_ver}]
+ x11-libs/qtsvg:5[>=${min_qt_ver}]
+ x11-libs/qttools:5[>=${min_qt_ver}]
+ x11-libs/qtx11extras:5[>=${min_qt_ver}]
+ x11-libs/qtxmlpatterns:5[>=${min_qt_ver}]
+ webengine? ( x11-libs/qtwebengine:5[>=${min_qt_ver}] )
+ suggestion:
+ sys-devel/gdb[python] [[ description = [ For debugging with Qt Creator ] ]]
+"
+
+# TODO: Unbundle qbs properly. Simply deleting it doesn't work anymore.
+
+RESTRICT="test" # far to many tests need a running X server, disable building them below
+
+UPSTREAM_DOCUMENTATION="http://doc.qt.io/${PN/-/}/index.html"
+UPSTREAM_CHANGELOG="http://code.qt.io/cgit/${PN}/${PN}.git/tree/dist/changes-$(ever range 1-3).md"
+
+BUGS_TO="kimrhh@exherbo.org heirecka@exherbo.org"
+
+ever is_scm || WORK=${WORKBASE}/${MYPNV}
+
+EQMAKE_SOURCES=( qtcreator.pro )
+EQMAKE_PARAMS=(
+ IDE_PACKAGE_MODE=1
+ SUPPORT_QT_QML=1
+ USE_SYSTEM_BOTAN=1
+ TEST=0
+)
+DEFAULT_SRC_INSTALL_PARAMS=( INSTALL_ROOT="${IMAGE}"/usr/$(exhost --target) )
+
+qt-creator_src_configure() {
+ option webengine || edo sed -e "s/isEmpty(QT\.webenginewidgets\.name)/true/" \
+ -i src/plugins/help/help.pro
+ qmake_src_configure
+}
+
+qt-creator_src_compile() {
+ default
+ emake docs
+}
+
+qt-creator_src_install(){
+ default
+ # XXX: Unfortunately there is no way to override datadir. So simply re-organize folders here and
+ # add awful symlinks because program location is used to locate resources.
+ dodir /usr/share
+ edo mv "${IMAGE}"/usr/$(exhost --target)/share/qtcreator "${IMAGE}"/usr/share/
+
+ # Here is awful symlink
+ dosym /usr/share/qtcreator /usr/$(exhost --target)/share/
+
+ dosym /usr/$(exhost --target)/bin/qtcreator /usr/$(exhost --target)/bin/qt-creator
+
+ # create .desktop file
+ insinto /usr/share/applications
+ hereins qtcreator.desktop <<EOF
+[Desktop Entry]
+Type=Application
+Name=Qt Creator
+Comment=Complete IDE for Qt applications
+Exec=qtcreator
+Icon=qtcreator
+Categories=Qt;Development;IDE;
+EOF
+}
+
+qt-creator_pkg_preinst() {
+ # Make the update path work
+ local dir="${ROOT}/usr/$(exhost --target)/share/qtcreator"
+ if [[ -d "${dir}" && ! -L "${dir}" ]] ; then
+ nonfatal edo rmdir "${dir}" || ewarn "removing ${dir} failed"
+ fi
+}
+