commit:     551d21a0429a481a62ed439f5adec94aa9fca84c
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 24 11:05:41 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Nov 30 00:51:52 2020 +0000
URL:        https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=551d21a0

x11-libs/qscintilla: Remove IUSE="python,qt4" thusly option to build w/ Qt3

No more revdeps and easier (non-)maintenance without python.
Drop to ~ppc as well for unkeyworded dependencies.

Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 x11-libs/qscintilla/qscintilla-2.4-r1.ebuild | 75 ++++++++++++++++++++++++++++
 1 file changed, 75 insertions(+)

diff --git a/x11-libs/qscintilla/qscintilla-2.4-r1.ebuild 
b/x11-libs/qscintilla/qscintilla-2.4-r1.ebuild
new file mode 100644
index 00000000..02ff0987
--- /dev/null
+++ b/x11-libs/qscintilla/qscintilla-2.4-r1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+MY_P="QScintilla-gpl-${PV/_pre/-snapshot-}"
+inherit eutils multilib qt4-r2
+
+DESCRIPTION="Qt port of Neil Hodgson's Scintilla C++ editor class"
+HOMEPAGE="https://riverbankcomputing.com/software/qscintilla/intro";
+SRC_URI="https://www.riverbankcomputing.co.uk/static/Downloads/QScintilla2/${MY_P}.tar.gz
+mirror://kde-sunset/${MY_P}.tar.gz"
+
+LICENSE="|| ( GPL-2 GPL-3 )"
+SLOT="0"
+KEYWORDS="~alpha amd64 ~hppa ~ppc ~ppc64 ~sparc x86"
+IUSE="doc"
+
+RDEPEND="dev-qt/qtgui:4"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}"/${MY_P}
+
+PATCHES=( "${FILESDIR}/${PN}-2.4-designer.patch" )
+
+src_configure() {
+       cd "${S}"/Qt4
+       eqmake4 qscintilla.pro
+
+       cd "${S}"/designer-Qt4
+       eqmake4 designer.pro
+}
+
+src_compile() {
+       cd "${S}"/Qt4
+       emake all staticlib || die "emake failed"
+
+       cd "${S}"/designer-Qt4
+       emake || die "failed to build designer plugin"
+}
+
+src_install() {
+       cd "${S}"/Qt4
+       # header files
+       insinto /usr/include/Qsci
+       doins Qsci/*.h || die
+       # libraries
+       dolib.so libqscintilla2.so* || die
+       dolib.a libqscintilla2.a || die
+       # translations
+       insinto /usr/share/${PN}/translations
+       doins qscintilla_*.qm || die
+       for trans in $(ls -1 qscintilla_*.qm); do
+               dosym /usr/share/${PN}/translations/${trans} \
+                       /usr/share/qt4/translations/${trans} || die
+       done
+
+       # designer plugin
+       cd "${S}"/designer-Qt4
+       emake INSTALL_ROOT="${D}" install || die "designer plugin installation 
failed"
+
+       # documentation
+       cd "${S}"
+       dodoc ChangeLog NEWS
+       if use doc; then
+               dohtml doc/html-Qt4/* || die
+               insinto /usr/share/doc/${PF}/Scintilla
+               doins doc/Scintilla/* || die
+       fi
+}
+
+pkg_postinst() {
+       ewarn "Please remerge dev-python/PyQt4 if you have problems with eric 
or other"
+       ewarn "qscintilla related packages before submitting bug reports."
+}

Reply via email to