From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C93C61387B1 for ; Tue, 3 Dec 2013 14:53:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 733C6E0B6F; Tue, 3 Dec 2013 14:53:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D91A2E0B6B for ; Tue, 3 Dec 2013 14:53:02 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A89E733F437 for ; Tue, 3 Dec 2013 14:53:01 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 5ACA6E5536 for ; Tue, 3 Dec 2013 14:53:00 +0000 (UTC) From: "Justin Lecher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Lecher" Message-ID: <1386055545.054c35bd6ec9b6ae596a543840b811e49d9eecb8.jlec@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: dev-python/pythonqt/, dev-python/pythonqt/files/ X-VCS-Repository: proj/sci X-VCS-Files: dev-python/pythonqt/files/pythonqt-2.1-lib_location.patch dev-python/pythonqt/files/pythonqt-9999-lib_location.patch dev-python/pythonqt/pythonqt-1.1.ebuild dev-python/pythonqt/pythonqt-2.1.ebuild dev-python/pythonqt/pythonqt-9999.ebuild X-VCS-Directories: dev-python/pythonqt/ dev-python/pythonqt/files/ X-VCS-Committer: jlec X-VCS-Committer-Name: Justin Lecher X-VCS-Revision: 054c35bd6ec9b6ae596a543840b811e49d9eecb8 X-VCS-Branch: master Date: Tue, 3 Dec 2013 14:53:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0cebb4b7-b721-4f54-aa24-23b2bdff4dc4 X-Archives-Hash: 82d942a1bebbdf5adc59976fcc21701b commit: 054c35bd6ec9b6ae596a543840b811e49d9eecb8 Author: Christophe Paccolat mycable ch> AuthorDate: Mon Dec 3 13:21:05 2012 +0000 Commit: Justin Lecher gentoo org> CommitDate: Tue Dec 3 07:25:45 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=054c35bd dev-python/pythonqt: New package Dependency for sci-misc/elmer-gui --- .../pythonqt/files/pythonqt-2.1-lib_location.patch | 22 +++++++ .../files/pythonqt-9999-lib_location.patch | 20 ++++++ dev-python/pythonqt/pythonqt-1.1.ebuild | 75 ++++++++++++++++++++++ dev-python/pythonqt/pythonqt-2.1.ebuild | 27 ++++++++ dev-python/pythonqt/pythonqt-9999.ebuild | 24 +++++++ 5 files changed, 168 insertions(+) diff --git a/dev-python/pythonqt/files/pythonqt-2.1-lib_location.patch b/dev-python/pythonqt/files/pythonqt-2.1-lib_location.patch new file mode 100644 index 0000000..41d4dbf --- /dev/null +++ b/dev-python/pythonqt/files/pythonqt-2.1-lib_location.patch @@ -0,0 +1,22 @@ +--- PythonQt2.1_Qt4.8/CMakeLists.txt.auto-diff-temp 2012-11-30 16:38:06.374358937 +0100 ++++ PythonQt2.1_Qt4.8/CMakeLists.txt 2012-11-30 16:39:37.421438916 +0100 +@@ -215,7 +215,7 @@ + # See http://blog.onesadcookie.com/2008/01/installname-magic.html + # + set_target_properties(PythonQt PROPERTIES +- INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib" ++ INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib64" + ) + + target_link_libraries(PythonQt +@@ -228,8 +228,8 @@ + + install(TARGETS PythonQt + RUNTIME DESTINATION bin +- LIBRARY DESTINATION lib +- ARCHIVE DESTINATION lib) ++ LIBRARY DESTINATION lib64 ++ ARCHIVE DESTINATION lib64) + install(FILES ${headers} DESTINATION include/PythonQt) + + MESSAGE(STATUS "<<< Gentoo configuration >>> diff --git a/dev-python/pythonqt/files/pythonqt-9999-lib_location.patch b/dev-python/pythonqt/files/pythonqt-9999-lib_location.patch new file mode 100644 index 0000000..5f810c5 --- /dev/null +++ b/dev-python/pythonqt/files/pythonqt-9999-lib_location.patch @@ -0,0 +1,20 @@ +--- pythonqt-9999/CMakeLists.txt.auto-diff-temp 2012-11-30 17:02:28.754418411 +0100 ++++ pythonqt-9999/CMakeLists.txt 2012-11-30 17:02:58.158429034 +0100 +@@ -215,7 +215,7 @@ + # See http://blog.onesadcookie.com/2008/01/installname-magic.html + # + set_target_properties(PythonQt PROPERTIES +- INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib" ++ INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib64" + ) + + target_link_libraries(PythonQt +@@ -228,6 +228,6 @@ + + install(TARGETS PythonQt + RUNTIME DESTINATION bin +- LIBRARY DESTINATION lib +- ARCHIVE DESTINATION lib) ++ LIBRARY DESTINATION lib64 ++ ARCHIVE DESTINATION lib64) + install(FILES ${headers} DESTINATION include/PythonQt) diff --git a/dev-python/pythonqt/pythonqt-1.1.ebuild b/dev-python/pythonqt/pythonqt-1.1.ebuild new file mode 100644 index 0000000..90f52ab --- /dev/null +++ b/dev-python/pythonqt/pythonqt-1.1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit qt4-r2 python + +MY_PN="PythonQt" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="A dynamic Python binding for the Qt framework." +HOMEPAGE="http://pythonqt.sourceforge.net/" +SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${MY_PN}%20${PV}/${MY_P}.zip" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="examples extensions test" + +DEPEND="dev-lang/python + x11-libs/qt-core + x11-libs/qt-gui" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_prepare(){ + sed -i \ + -e "s|unix:LIBS +=.*|unix:LIBS += $(python_get_library -l)|" \ + -e "s|unix:QMAKE_CXXFLAGS +=.*|unix:QMAKE_CXXFLAGS += -I$(python_get_includedir)|" \ + build/python.prf || die + + # Don't build examples and tests + sed -i \ + -e 's/examples//' \ + -e 's/tests//' \ + ${MY_PN}.pro || die + + if use !extensions; then + sed -i 's/extensions//' ${MY_PN}.pro || die + fi +} + +src_configure() { + eqmake4 "${S}" ./${MY_PN}.pro +} + +src_install(){ + dodir /usr/include/${MY_PN}/{gui,wrapper} + + insinto /usr/include/${MY_PN} + doins src/*.h + + insinto /usr/include/${MY_PN}/gui + doins src/gui/*.h + + if use extensions; then + insinto /usr/include/${MY_PN}/gui + doins extensions/PythonQtGui/*.h + fi + + insinto /usr/include/${MY_PN}/wrapper + doins src/wrapper/*.h + + dolib.so lib/*.so* + + dodoc CHANGELOG.txt COPYING README + dohtml doxygen/html/* + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins -r examples/* + fi +} diff --git a/dev-python/pythonqt/pythonqt-2.1.ebuild b/dev-python/pythonqt/pythonqt-2.1.ebuild new file mode 100644 index 0000000..34b9934 --- /dev/null +++ b/dev-python/pythonqt/pythonqt-2.1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit cmake-utils + +DESCRIPTION="A dynamic Python binding for the Qt framework." +HOMEPAGE="http://pythonqt.sourceforge.net/" +SRC_URI="mirror://sourceforge/pythonqt/pythonqt/PythonQt-2.1/PythonQt2.1_Qt4.8.zip" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/PythonQt${PV}_Qt4.8" +CMAKE_BUILD_DIR="${S}" + +src_prepare() +{ + use amd64 && epatch "${FILESDIR}/${P}-lib_location.patch" +} diff --git a/dev-python/pythonqt/pythonqt-9999.ebuild b/dev-python/pythonqt/pythonqt-9999.ebuild new file mode 100644 index 0000000..d7d6bfd --- /dev/null +++ b/dev-python/pythonqt/pythonqt-9999.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit cmake-utils subversion + +DESCRIPTION="A dynamic Python binding for the Qt framework." +HOMEPAGE="http://pythonqt.sourceforge.net/" +ESVN_REPO_URI="https://pythonqt.svn.sourceforge.net/svnroot/pythonqt/trunk" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +src_prepare() +{ + use amd64 && epatch "${FILESDIR}/${P}-lib_location.patch" +}