From 3d22faa366d8eac88106540bb3942140ff30286e Mon Sep 17 00:00:00 2001 From: Andre Barboza Date: Fri, 30 May 2014 00:29:17 +0700 Subject: development/qt-creator3: Added (Cross-Platform Qt IDE). Signed-off-by: Willy Sudiarto Raharjo --- development/qt-creator3/README | 20 +++++ development/qt-creator3/doinst.sh | 13 ++++ development/qt-creator3/qt-creator.desktop | 12 +++ development/qt-creator3/qt-creator3.SlackBuild | 100 +++++++++++++++++++++++++ development/qt-creator3/qt-creator3.info | 10 +++ development/qt-creator3/slack-desc | 19 +++++ development/qt-creator3/x-qt-creator.xml | 8 ++ 7 files changed, 182 insertions(+) create mode 100644 development/qt-creator3/README create mode 100644 development/qt-creator3/doinst.sh create mode 100644 development/qt-creator3/qt-creator.desktop create mode 100644 development/qt-creator3/qt-creator3.SlackBuild create mode 100644 development/qt-creator3/qt-creator3.info create mode 100644 development/qt-creator3/slack-desc create mode 100644 development/qt-creator3/x-qt-creator.xml (limited to 'development') diff --git a/development/qt-creator3/README b/development/qt-creator3/README new file mode 100644 index 000000000000..d5dcc264a7a5 --- /dev/null +++ b/development/qt-creator3/README @@ -0,0 +1,20 @@ +Qt Creator 3 is a Cross-Platform Qt IDE. + +The goal of Qt Creator is to provide a cross-platform, complete +Integrated Development Environment (IDE) to develop Qt projects. + +NOTES: +1 - This package conflicts with qt-creator (version 2): install + only one of the two. + +2 - This version of Qt Creator is advised for Qt5. + +3 - Before start building/editing your application, you should + configure the Qt kits (both Qt4 and Qt5). + +4 - QmlDesigner will work properly only if you configure the Qt5 + Kit properly (Tools->Options->Build & Run->Kits) and make + it the Default Kit. + +5 - An old IDE configuration in user home directory + (.config/QtProject*) also can lead to strange behavior. diff --git a/development/qt-creator3/doinst.sh b/development/qt-creator3/doinst.sh new file mode 100644 index 000000000000..9424ce43ff57 --- /dev/null +++ b/development/qt-creator3/doinst.sh @@ -0,0 +1,13 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -x /usr/bin/update-mime-database ]; then + /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/development/qt-creator3/qt-creator.desktop b/development/qt-creator3/qt-creator.desktop new file mode 100644 index 000000000000..acd11fb2280d --- /dev/null +++ b/development/qt-creator3/qt-creator.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Name=Qt Creator IDE +GenericName=IDE for Qt Developers +Comment=Qt-Creator is a cross-platform IDE tailored to the needs of Qt developers. +Exec=qtcreator +Icon=QtProject-qtcreator +Categories=Development;IDE;GUIDesigner;Qt;Qt-Creator; +Version=1.0 +StartupNotify=true +Type=Application +Terminal=false +MimeType=application/x-qt-creator; diff --git a/development/qt-creator3/qt-creator3.SlackBuild b/development/qt-creator3/qt-creator3.SlackBuild new file mode 100644 index 000000000000..9b68d30078fc --- /dev/null +++ b/development/qt-creator3/qt-creator3.SlackBuild @@ -0,0 +1,100 @@ +#!/bin/sh + +# Slackware build script for qt-creator3 + +# Copyright 2014 Andre Barboza +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=qt-creator3 +SRCNAM=qt-creator +VERSION=${VERSION:-3.1.1} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-opensource-src-$VERSION +tar xvf $CWD/$SRCNAM-opensource-src-$VERSION.tar.gz +cd $SRCNAM-opensource-src-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +qmake-qt5 \ + IDE_LIBRARY_BASENAME="lib$LIBDIRSUFFIX" \ + QMAKE_CXXFLAGS="$SLKCFLAGS" \ + qtcreator.pro +make +make install INSTALL_ROOT=$PKG/usr +make docs +make install_docs INSTALL_ROOT=$PKG/usr + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/share/applications +cat $CWD/qt-creator.desktop > $PKG/usr/share/applications/qt-creator.desktop + +mkdir -p $PKG/usr/share/mime/packages +cat $CWD/x-qt-creator.xml > $PKG/usr/share/mime/packages/x-qt-creator.xml + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a HACKING LICENSE.LGPL README LGPL_EXCEPTION.TXT $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/development/qt-creator3/qt-creator3.info b/development/qt-creator3/qt-creator3.info new file mode 100644 index 000000000000..d2be46fb02e9 --- /dev/null +++ b/development/qt-creator3/qt-creator3.info @@ -0,0 +1,10 @@ +PRGNAM="qt-creator3" +VERSION="3.1.1" +HOMEPAGE="http://qt-project.org/" +DOWNLOAD="http://download.qt-project.org/official_releases/qtcreator/3.1/3.1.1/qt-creator-opensource-src-3.1.1.tar.gz" +MD5SUM="1876878c58b3026e0df26fde9393cd91" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="qt5" +MAINTAINER="Andre Barboza" +EMAIL="bmg.andre@gmail.com" diff --git a/development/qt-creator3/slack-desc b/development/qt-creator3/slack-desc new file mode 100644 index 000000000000..1ef2d4ea8894 --- /dev/null +++ b/development/qt-creator3/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +qt-creator3: qt-creator3 (Cross-Platform Qt IDE) +qt-creator3: +qt-creator3: The goal of Qt Creator is to provide a cross-platform, complete +qt-creator3: Integrated Development Environment (IDE) to develop Qt projects. +qt-creator3: It is available for the Linux, Mac OS X and Windows platforms. +qt-creator3: +qt-creator3: Homepage: http://qt-project.org/ +qt-creator3: +qt-creator3: +qt-creator3: +qt-creator3: diff --git a/development/qt-creator3/x-qt-creator.xml b/development/qt-creator3/x-qt-creator.xml new file mode 100644 index 000000000000..000cf46d08e9 --- /dev/null +++ b/development/qt-creator3/x-qt-creator.xml @@ -0,0 +1,8 @@ + + + + + Qt Creator Project + + + -- cgit v1.2.3