dev-libs/qcodeedit: Port from qt4-r2.eclass to qmake-utils.eclass
authorDavid Seifert <soap@gentoo.org>
Sun, 17 Jan 2016 10:22:38 +0000 (11:22 +0100)
committerDavid Seifert <soap@gentoo.org>
Sun, 17 Jan 2016 10:26:46 +0000 (11:26 +0100)
* EAPI=6
* Fix parallel building caused by incomplete dependencies

Package-Manager: portage-2.2.26

dev-libs/qcodeedit/files/qcodeedit-2.2.3-fix-parallel-build.patch [new file with mode: 0644]
dev-libs/qcodeedit/qcodeedit-2.2.3-r2.ebuild [moved from dev-libs/qcodeedit/qcodeedit-2.2.3-r1.ebuild with 76% similarity]

diff --git a/dev-libs/qcodeedit/files/qcodeedit-2.2.3-fix-parallel-build.patch b/dev-libs/qcodeedit/files/qcodeedit-2.2.3-fix-parallel-build.patch
new file mode 100644 (file)
index 0000000..4c1a5fe
--- /dev/null
@@ -0,0 +1,15 @@
+Add missing edges to dependency graph in order to
+allow for parallel building.
+
+--- qcodeedit-2.2.3/qcodeedit.pro
++++ qcodeedit-2.2.3/qcodeedit.pro
+@@ -4,6 +4,9 @@
+ \r
+ SUBDIRS += lib example designer-plugin\r
+ \r
++example.depends = lib\r
++designer-plugin.depends = lib\r
++\r
+ CONFIG(debug, debug|release) {\r
+       # placeholder\r
+       QCODE_EDIT_EXTRA_DEFINES += _DEBUG_BUILD_\r
similarity index 76%
rename from dev-libs/qcodeedit/qcodeedit-2.2.3-r1.ebuild
rename to dev-libs/qcodeedit/qcodeedit-2.2.3-r2.ebuild
index 111e54710de59c38e3c9f29a1ed453bd0c056351..402461b4e8ed651d8061e43b31bb7a1b0dd4ae26 100644 (file)
@@ -2,9 +2,9 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
-inherit qt4-r2
+inherit qmake-utils
 
 DESCRIPTION="Qt-Framework for code editing"
 HOMEPAGE="http://edyuk.sourceforge.net/"
@@ -24,9 +24,15 @@ RDEPEND="
 DEPEND="${RDEPEND}
 "
 
-MAKEOPTS+=" -j1"
+PATCHES=(
+       "${FILESDIR}/${P}-fix-parallel-build.patch"
+)
+
+src_configure() {
+       eqmake4 ${PN}.pro
+}
 
 src_install() {
-       qt4-r2_src_install
+       emake INSTALL_ROOT="${D}" install
        dolib.so libqcodeedit.so*
 }