commit:     eab801ffe3289e8f3c245169e0d7d4cc98d17738
Author:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 27 00:09:50 2014 +0000
Commit:     Davide Pesavento <pesa <AT> gentoo <DOT> org>
CommitDate: Wed Aug 27 00:09:50 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=eab801ff

[qt5-build.eclass] Update HOMEPAGE and LICENSE.

---
 eclass/qt5-build.eclass | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/eclass/qt5-build.eclass b/eclass/qt5-build.eclass
index 4c81dea..6602383 100644
--- a/eclass/qt5-build.eclass
+++ b/eclass/qt5-build.eclass
@@ -19,8 +19,15 @@ esac
 
 inherit eutils flag-o-matic multilib toolchain-funcs virtualx
 
-HOMEPAGE="http://qt-project.org/ http://qt.digia.com/";
-LICENSE="|| ( LGPL-2.1 GPL-3 )"
+QT5_MINOR_VERSION=${PV#*.}
+QT5_MINOR_VERSION=${QT5_MINOR_VERSION%%.*}
+
+HOMEPAGE="https://qt-project.org/";
+if [[ ${QT5_MINOR_VERSION} -ge 4 ]]; then
+       LICENSE="|| ( LGPL-2.1 LGPL-3 )"
+else
+       LICENSE="|| ( LGPL-2.1 GPL-3 )"
+fi
 SLOT="5"
 
 # @ECLASS-VARIABLE: QT5_MODULE

Reply via email to