diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2018-09-12 22:34:12 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2018-09-12 22:34:12 +0200 |
commit | 3b614f05dda9c5fcc3b40f43cf2047cdcb2e0744 (patch) | |
tree | 905a438a42707d3439029387694bea4d2524b74d /x11-libs | |
parent | media-sound/amarok: Drop invalid maintainer entry (diff) | |
download | kde-sunset-3b614f05dda9c5fcc3b40f43cf2047cdcb2e0744.tar.gz kde-sunset-3b614f05dda9c5fcc3b40f43cf2047cdcb2e0744.tar.bz2 kde-sunset-3b614f05dda9c5fcc3b40f43cf2047cdcb2e0744.zip |
x11-libs/qtscriptgenerator: Import from Gentoo ebuild repo
Package-Manager: Portage-2.3.49, Repoman-2.3.10
Diffstat (limited to 'x11-libs')
4 files changed, 113 insertions, 0 deletions
diff --git a/x11-libs/qtscriptgenerator/Manifest b/x11-libs/qtscriptgenerator/Manifest new file mode 100644 index 00000000..5de022c8 --- /dev/null +++ b/x11-libs/qtscriptgenerator/Manifest @@ -0,0 +1 @@ +DIST qtscriptgenerator-src-0.2.0.tar.gz 379776 BLAKE2B d607aac71bafb4858678a8eed73b4af3a343eb6a42e8780e478aaa4003592ae79409c227f86a384220b2ce8523d9360ff88f42ab7ed850a18f2ab59d891d908a SHA512 54b91562d275b634b50ae8f6ae024cf738605efadeb3085527087ebdc8b6b86559088972ab5dafb7ff1ede6d18dc135f935ac1fb307a17ea1975b4f7629cc0fa diff --git a/x11-libs/qtscriptgenerator/files/qtscriptgenerator-0.2.0-arm.patch b/x11-libs/qtscriptgenerator/files/qtscriptgenerator-0.2.0-arm.patch new file mode 100644 index 00000000..6305c9ad --- /dev/null +++ b/x11-libs/qtscriptgenerator/files/qtscriptgenerator-0.2.0-arm.patch @@ -0,0 +1,41 @@ +diff -Nru qtscriptgenerator-src-0.2.0.orig/generator/typesystem_core-common.xml qtscriptgenerator-src-0.2.0/generator/typesystem_core-common.xml +--- qtscriptgenerator-src-0.2.0.orig/generator/typesystem_core-common.xml 2012-01-23 12:30:03.000000000 +0100 ++++ qtscriptgenerator-src-0.2.0/generator/typesystem_core-common.xml 2012-03-08 05:36:14.342528441 +0100 +@@ -921,6 +921,7 @@ + <value-type name="QEasingCurve"> + <modify-function signature="customType()const" remove="all" /> + <modify-function signature="setCustomType(double)" remove="all" /> ++ <modify-function signature="setCustomType(float)" remove="all" /> + </value-type> + + <object-type name="QAbstractAnimation" /> +diff -Nru qtscriptgenerator-src-0.2.0.orig/generator/typesystem_core-qtscript.xml qtscriptgenerator-src-0.2.0/generator/typesystem_core-qtscript.xml +--- qtscriptgenerator-src-0.2.0.orig/generator/typesystem_core-qtscript.xml 2012-01-23 12:30:03.000000000 +0100 ++++ qtscriptgenerator-src-0.2.0/generator/typesystem_core-qtscript.xml 2012-03-08 05:41:37.492524499 +0100 +@@ -1447,6 +1447,7 @@ + <modify-function signature="operator==(const QEasingCurve &)const" remove="all"/> + <modify-function signature="operator!=(const QEasingCurve &)const" remove="all"/> + <modify-function signature="setCustomType(double)" remove="all"/> ++ <modify-function signature="setCustomType(float)" remove="all"/> + <modify-function signature="customType()const" remove="all"/> + </value-type> + +diff -Nru qtscriptgenerator-src-0.2.0.orig/generator/typesystem_core.xml qtscriptgenerator-src-0.2.0/generator/typesystem_core.xml +--- qtscriptgenerator-src-0.2.0.orig/generator/typesystem_core.xml 2012-01-23 12:30:03.000000000 +0100 ++++ qtscriptgenerator-src-0.2.0/generator/typesystem_core.xml 2012-03-08 05:39:53.932524942 +0100 +@@ -1388,14 +1388,12 @@ + </value-type> + + <value-type name="QEasingCurve"> +- <modify-function signature="customType()const" remove="all"/> +- <modify-function signature="setCustomType(double)" remove="all"/> +- + <modify-function signature="QEasingCurve(QEasingCurve)" remove="all"/> + <modify-function signature="operator=(QEasingCurve)" remove="all"/> + <modify-function signature="operator==(const QEasingCurve &)const" remove="all"/> + <modify-function signature="operator!=(const QEasingCurve &)const" remove="all"/> + <modify-function signature="setCustomType(double)" remove="all"/> ++ <modify-function signature="setCustomType(float)" remove="all"/> + <modify-function signature="customType()const" remove="all"/> + </value-type> + diff --git a/x11-libs/qtscriptgenerator/metadata.xml b/x11-libs/qtscriptgenerator/metadata.xml new file mode 100644 index 00000000..7a38bb90 --- /dev/null +++ b/x11-libs/qtscriptgenerator/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> +</pkgmetadata> diff --git a/x11-libs/qtscriptgenerator/qtscriptgenerator-0.2.0-r1.ebuild b/x11-libs/qtscriptgenerator/qtscriptgenerator-0.2.0-r1.ebuild new file mode 100644 index 00000000..4f7ffede --- /dev/null +++ b/x11-libs/qtscriptgenerator/qtscriptgenerator-0.2.0-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit qmake-utils + +MY_P=${PN}-src-${PV} + +DESCRIPTION="Tool for generating Qt bindings for Qt Script" +HOMEPAGE="https://code.google.com/p/qtscriptgenerator/" +SRC_URI="https://dev.gentoo.org/~johu/distfiles/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86" +IUSE="debug" + +DEPEND=" + dev-qt/designer:4 + dev-qt/qtcore:4 + dev-qt/qtgui:4[accessibility] + dev-qt/qtopengl:4 + dev-qt/qtscript:4 + dev-qt/qtsql:4 + dev-qt/qtsvg:4[accessibility] + dev-qt/qtxmlpatterns:4 + media-libs/phonon[qt4] +" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P} + +src_prepare() { + default + + # remove phonon + sed -i "/typesystem_phonon.xml/d" generator/generator.qrc || die "sed failed" + sed -i "/qtscript_phonon/d" qtbindings/qtbindings.pro || die "sed failed" + sed -i "/qtscript_webkit/d" qtbindings/qtbindings.pro || die "sed failed" + + use arm && eapply "${FILESDIR}"/${P}-arm.patch +} + +src_configure() { + cd "${S}"/generator || die + eqmake4 generator.pro + + cd "${S}"/qtbindings || die + eqmake4 qtbindings.pro +} + +src_compile() { + cd "${S}"/generator || die + emake + ./generator --include-paths="$(qt4_get_headerdir)" || die + + cd "${S}"/qtbindings || die + emake +} + +src_install() { + insinto "$(qt4_get_libdir)"/plugins/script + insopts -m0755 + doins "${S}"/plugins/script/* +} |