qtcreator:new package

This commit is contained in:
2015-09-21 19:59:51 +03:00
parent ee9a3ac719
commit 8e2ede254a
6 changed files with 143 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import qt5
from pisi.actionsapi import shelltools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
qt5.configure()
def build():
qt5.make()
def install():
pisitools.dodir("/usr")
qt5.install()
pisitools.domove("/share", "/usr")
pisitools.domove("/lib", "/usr")
pisitools.domove("/bin", "/usr")
pisitools.rename("/usr/bin/qtcreator", "qtcreator-bin")
pisitools.domove("/usr/share/qtcreator/debugger/LGPL_EXCEPTION.TXT", "/usr/share/licenses/qtcreator")
@@ -0,0 +1,15 @@
diff -rupN qt-creator-opensource-src-3.3.1/src/rpath.pri qt-creator-opensource-src-3.3.1-new/src/rpath.pri
--- qt-creator-opensource-src-3.3.1/src/rpath.pri 2015-02-19 11:16:46.000000000 +0100
+++ src/rpath.pri 2015-02-24 19:06:30.603703530 +0100
@@ -3,9 +3,8 @@ macx {
} else:linux-* {
#do the rpath by hand since it's not possible to use ORIGIN in QMAKE_RPATHDIR
# this expands to $ORIGIN (after qmake and make), it does NOT read a qmake var
- QMAKE_RPATHDIR += \$\$ORIGIN
- QMAKE_RPATHDIR += \$\$ORIGIN/..
- QMAKE_RPATHDIR += \$\$ORIGIN/../$$IDE_LIBRARY_BASENAME/qtcreator
+ QMAKE_RPATHDIR += $${QTC_PREFIX}/$${IDE_LIBRARY_BASENAME}/qtcreator
+ QMAKE_RPATHDIR += $${QTC_PREFIX}/$${IDE_LIBRARY_BASENAME}/qtcreator/plugins
IDE_PLUGIN_RPATH = $$join(QMAKE_RPATHDIR, ":")
QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,$${IDE_PLUGIN_RPATH}\'
@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Exec=qtcreator %F
Name=Qt Creator
Name[tr]=Qt Geliştirme Ortamı
GenericName=C++ IDE for developing Qt applications
X-KDE-StartupNotify=true
Icon=QtProject-qtcreator
Terminal=false
Categories=Development;IDE;Qt;
MimeType=text/x-c++src;text/x-c++hdr;text/x-xsrc;application/x-designer;application/vnd.nokia.qt.qmakeprofile;application/vnd.nokia.xml.qt.resource;
@@ -0,0 +1,2 @@
#!/bin/sh
QT_LOGGING_TO_CONSOLE=1 qtcreator-bin
+81
View File
@@ -0,0 +1,81 @@
<PISI>
<Source>
<Name>qtcreator</Name>
<Homepage>http://qt-project.org/</Homepage>
<Packager>
<Name>Ayhan Yalçınsoy</Name>
<Email>ayhanyalcinsoy@pisilinux.org</Email>
</Packager>
<License>LGPLv2</License>
<PartOf>programming.environment</PartOf>
<IsA>app:gui</IsA>
<Summary>Lightweight, cross-platform integrated development environment</Summary>
<Description>Lightweight, cross-platform integrated development environment</Description>
<BuildDependencies>
<Dependency>libgcc</Dependency>
<Dependency>libX11-devel</Dependency>
<Dependency>cmake</Dependency>
<Dependency>git</Dependency>
<Dependency>mesa-devel</Dependency>
<Dependency>openssh</Dependency>
<Dependency>qt5-base-devel</Dependency>
<Dependency>qt5-declarative-devel</Dependency>
<Dependency>qt5-linguist</Dependency>
<Dependency>qt5-quick1-devel</Dependency>
<Dependency>qt5-quickcontrols</Dependency>
<Dependency>qt5-svg-devel</Dependency>
<Dependency>qt5-xmlpatterns</Dependency>
<Dependency>qt5-webkit-devel</Dependency>
<Dependency>qt5-x11extras-devel</Dependency>
<Dependency>qt5-assistant-devel</Dependency>
<Dependency>qt5-designer-devel</Dependency>
<Dependency>qt5-script-devel</Dependency>
<Dependency>valgrind</Dependency>
<Dependency>llvm-clang-devel</Dependency>
<Dependency>llvm</Dependency>
</BuildDependencies>
<Archive type="targz" sha1sum="2d18f86dcd6ecc350cea7aacd0d68cba7323f27a">http://download.qt.io/official_releases/qtcreator/3.4/3.4.2/qt-creator-opensource-src-3.4.2.tar.gz</Archive>
<Patches>
<Patch>qt-creator_rpath.patch</Patch>
</Patches>
</Source>
<Package>
<Name>qtcreator</Name>
<Summary>Lightweight, cross-platform integrated development environment</Summary>
<RuntimeDependencies>
<Dependency>libX11</Dependency>
<Dependency>libgcc</Dependency>
<Dependency>qt5-svg</Dependency>
<Dependency>qt5-base</Dependency>
<Dependency>qt5-quick1</Dependency>
<Dependency>qt5-script</Dependency>
<Dependency>qt5-webkit</Dependency>
<Dependency>qt5-designer</Dependency>
<Dependency>qt5-assistant</Dependency>
<Dependency>qt5-x11extras</Dependency>
<Dependency>qt5-declarative</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib/qtcreator</Path>
<Path fileType="data">/usr/share/applications/qtcreator.desktop</Path>
<Path fileType="data">/usr/share/licenses</Path>
<Path fileType="data">/usr/share/qtcreator</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="icon">/usr/share/icons</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/usr/share/applications/qtcreator.desktop">qtcreator.desktop</AdditionalFile>
<AdditionalFile owner="root" permission="0644" target="/usr/bin/qtcreator.sh">qtcreator.sh</AdditionalFile>
</AdditionalFiles>
</Package>
<History>
<Update release="1">
<Date>2015-09-06</Date>
<Version>3.4.2</Version>
<Comment>First Release</Comment>
<Name>Ayhan Yalçınsoy</Name>
<Email>ayhanyalcinsoy@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,9 @@
<PISI>
<Source>
<Name>qtcreator</Name>
<Summary xml:lang="tr">Hafif, çapraz platform tümleşik geliştirme ortamı</Summary>
<Description xml:lang="tr">Hafif, çapraz platform tümleşik geliştirme ortamı</Description>
</Source>
</PISI>
<!-- By PiSiDo 2.3.1 -->