public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/pythonqt/, dev-python/pythonqt/files/
Date: Tue,  3 Dec 2013 14:53:00 +0000 (UTC)	[thread overview]
Message-ID: <1386055545.054c35bd6ec9b6ae596a543840b811e49d9eecb8.jlec@gentoo> (raw)

commit:     054c35bd6ec9b6ae596a543840b811e49d9eecb8
Author:     Christophe Paccolat <chr.paccolat <AT> mycable <DOT> ch>
AuthorDate: Mon Dec  3 13:21:05 2012 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> 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"
+}


             reply	other threads:[~2013-12-03 14:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-03 14:53 Justin Lecher [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-12-03 14:53 [gentoo-commits] proj/sci:master commit in: dev-python/pythonqt/, dev-python/pythonqt/files/ Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1386055545.054c35bd6ec9b6ae596a543840b811e49d9eecb8.jlec@gentoo \
    --to=jlec@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox