summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Kapusta <ayoy@gentoo.org>2009-12-20 16:26:59 +0000
committerDominik Kapusta <ayoy@gentoo.org>2009-12-20 16:26:59 +0000
commit521ca7ad8e555c225ee68f8d162425d0a7efa5b6 (patch)
tree37fec4c425db45fbc1fef82042e05da136b2321f /dev-python/boostpythongenerator
parentia64/m68k/s390/sh/sparc stable wrt #291612 (diff)
downloadgentoo-2-521ca7ad8e555c225ee68f8d162425d0a7efa5b6.tar.gz
gentoo-2-521ca7ad8e555c225ee68f8d162425d0a7efa5b6.tar.bz2
gentoo-2-521ca7ad8e555c225ee68f8d162425d0a7efa5b6.zip
Initial commit for boostpythongenerator, a dependency for pyside (bug #282138)
(Portage version: 2.2_rc59/cvs/Linux x86_64)
Diffstat (limited to 'dev-python/boostpythongenerator')
-rw-r--r--dev-python/boostpythongenerator/ChangeLog12
-rw-r--r--dev-python/boostpythongenerator/boostpythongenerator-0.3.2_p20091124.ebuild35
-rw-r--r--dev-python/boostpythongenerator/files/boostpythongenerator-0.3.2_p20091124.patch94
-rw-r--r--dev-python/boostpythongenerator/metadata.xml12
4 files changed, 153 insertions, 0 deletions
diff --git a/dev-python/boostpythongenerator/ChangeLog b/dev-python/boostpythongenerator/ChangeLog
new file mode 100644
index 000000000000..009aa6e2fd87
--- /dev/null
+++ b/dev-python/boostpythongenerator/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for dev-python/boostpythongenerator
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/boostpythongenerator/ChangeLog,v 1.1 2009/12/20 16:26:59 ayoy Exp $
+
+*boostpythongenerator-0.3.2_p20091124 (20 Dec 2009)
+
+ 20 Dec 2009; Dominik Kapusta <ayoy@gentoo.org>
+ +boostpythongenerator-0.3.2_p20091124.ebuild,
+ +files/boostpythongenerator-0.3.2_p20091124.patch, +metadata.xml:
+ Initial commit for boostpythongenerator, a dependency for pyside (bug
+ #282138)
+
diff --git a/dev-python/boostpythongenerator/boostpythongenerator-0.3.2_p20091124.ebuild b/dev-python/boostpythongenerator/boostpythongenerator-0.3.2_p20091124.ebuild
new file mode 100644
index 000000000000..86540f5cd646
--- /dev/null
+++ b/dev-python/boostpythongenerator/boostpythongenerator-0.3.2_p20091124.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/boostpythongenerator/boostpythongenerator-0.3.2_p20091124.ebuild,v 1.1 2009/12/20 16:26:59 ayoy Exp $
+
+EAPI="2"
+
+inherit cmake-utils
+
+MY_PV="${PV/_*/}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="A tool for creating Python bindings for C++ libraries"
+HOMEPAGE="http://www.pyside.org/"
+SRC_URI="http://www.pyside.org/files/${MY_P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+DEPEND="~dev-python/apiextractor-${MY_PV}
+ ~dev-python/generatorrunner-${MY_PV}
+ >=x11-libs/qt-core-4.5.0"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}.patch"
+}
+
+src_install() {
+ cmake-utils_src_install
+ dodoc AUTHORS ChangeLog || die "dodoc failed"
+}
diff --git a/dev-python/boostpythongenerator/files/boostpythongenerator-0.3.2_p20091124.patch b/dev-python/boostpythongenerator/files/boostpythongenerator-0.3.2_p20091124.patch
new file mode 100644
index 000000000000..4998ee524e01
--- /dev/null
+++ b/dev-python/boostpythongenerator/files/boostpythongenerator-0.3.2_p20091124.patch
@@ -0,0 +1,94 @@
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index c27f621..af10096 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -28,7 +28,7 @@ target_link_libraries(boostpython_generator
+ ${QT_QTXML_LIBRARY})
+
+
+-install(TARGETS boostpython_generator DESTINATION ${GENERATORRUNNER_PLUGIN_DIR})
++install(TARGETS boostpython_generator DESTINATION "${GENERATORRUNNER_PLUGIN_DIR}")
+ install(TARGETS boostpythongenerator DESTINATION bin)
+
+ add_dependencies(boostpythongenerator boostpython_generator)
+diff --git a/src/convertergenerator.cpp b/src/convertergenerator.cpp
+index 23a5d36..ec4a1f9 100644
+--- a/src/convertergenerator.cpp
++++ b/src/convertergenerator.cpp
+@@ -56,7 +56,6 @@ void ConverterGenerator::finishGeneration()
+ continue;
+
+ if (fileOutPath.isNull()) {
+- m_packageName = cls->package();
+ fileOutPath = outputDirectory() + '/' + subDirectoryForClass(cls)
+ + "/converter_register_" + moduleName().toLower() + ".hpp";
+ }
+@@ -108,10 +107,6 @@ void ConverterGenerator::finishGeneration()
+ writeConverterRegistration(s, "register_multimap_converter", "QMultiMap", m_qmultiMapTypes);
+ s << "}\n\n";
+ s << "#endif\n\n";
+-
+- m_numGeneratedWritten = m_qpairTypes.size() + m_qlistTypes.size() +
+- m_qvectorTypes.size() + m_qmapTypes.size() +
+- m_qhashTypes.size();
+ }
+
+ void ConverterGenerator::writeConverterRegistration(QTextStream& out,
+diff --git a/src/cppgenerator.cpp b/src/cppgenerator.cpp
+index e9d6939..ceb285a 100644
+--- a/src/cppgenerator.cpp
++++ b/src/cppgenerator.cpp
+@@ -1415,9 +1415,6 @@ void CppGenerator::finishGeneration()
+ if (!shouldGenerate(cls) || cls->enclosingClass())
+ continue;
+
+- if (m_packageName.isEmpty())
+- m_packageName = cls->package();
+-
+ QString wrapperName = getWrapperName(cls);
+ QString boostFilename;
+ boostFilename += wrapperName + ".hpp";
+@@ -1429,7 +1426,7 @@ void CppGenerator::finishGeneration()
+ sClassPythonDefines << INDENT << define_str << endl;
+ }
+
+- QString moduleFileName(outputDirectory() + "/" + subDirectoryForPackage(m_packageName));
++ QString moduleFileName(outputDirectory() + "/" + subDirectoryForPackage(packageName()));
+ moduleFileName += "/" + moduleName().toLower() + "_module_wrapper.cpp";
+
+ QFile file(moduleFileName);
+@@ -1480,7 +1477,7 @@ void CppGenerator::writeGlobalFunctions()
+ {
+ QString fileName = moduleName().toLower() + "_globals_wrapper.cpp";
+
+- FileOut fileOut(outputDirectory() + "/" + subDirectoryForPackage(m_packageName) + "/" + fileName);
++ FileOut fileOut(outputDirectory() + "/" + subDirectoryForPackage(packageName()) + "/" + fileName);
+
+ QSet<QString> includes;
+ QString defsStr;
+@@ -1526,7 +1523,7 @@ void CppGenerator::writeGlobalFunctions()
+
+ // Add module level code snippets to 'Global' class
+ TypeSystemTypeEntry *moduleEntry = dynamic_cast<TypeSystemTypeEntry *>(
+- TypeDatabase::instance()->findType(m_packageName));
++ TypeDatabase::instance()->findType(packageName()));
+ QString sEnd;
+ QTextStream snipEnd(&sEnd);
+ if (moduleEntry && moduleEntry->codeSnips().size() > 0) {
+diff --git a/src/hppgenerator.cpp b/src/hppgenerator.cpp
+index 427add0..21a9bc9 100644
+--- a/src/hppgenerator.cpp
++++ b/src/hppgenerator.cpp
+@@ -191,7 +191,11 @@ void HppGenerator::writeDefaultImplementation(QTextStream& s, const AbstractMeta
+ {
+ QString returnValue;
+ if (func->type()) {
+- if (func->type()->isObject() || func->type()->isQObject() || func->type()->name() == "void")
++ if (func->type()->isObject() ||
++ func->type()->isQObject() ||
++ func->type()->isValuePointer() ||
++ func->type()->isNativePointer() ||
++ func->type()->name() == "void" )
+ returnValue = "0";
+ else
+ returnValue = functionReturnType(func) + "()";
diff --git a/dev-python/boostpythongenerator/metadata.xml b/dev-python/boostpythongenerator/metadata.xml
new file mode 100644
index 000000000000..b20aa40920d2
--- /dev/null
+++ b/dev-python/boostpythongenerator/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>qt</herd>
+ <maintainer>
+ <email>ayoy@gentoo.org</email>
+ <name>Dominik Kapusta</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+</pkgmetadata>
+