2015-03-02 00:56:51 +03:00
|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
2013-03-12 00:44:33 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-05-09 19:07:54 +03:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-python/qscintilla-python/qscintilla-python-2.8.4.ebuild,v 1.8 2015/05/08 17:15:34 jer Exp $
|
2013-03-12 00:44:33 +04:00
|
|
|
|
|
|
|
EAPI=5
|
2014-09-13 23:49:22 +04:00
|
|
|
PYTHON_COMPAT=( python{2_7,3_3,3_4} )
|
2013-03-12 00:44:33 +04:00
|
|
|
|
2014-07-20 12:18:29 +04:00
|
|
|
inherit python-r1 qmake-utils
|
2013-03-12 00:44:33 +04:00
|
|
|
|
|
|
|
MY_P=QScintilla-gpl-${PV}
|
|
|
|
|
|
|
|
DESCRIPTION="Python bindings for Qscintilla"
|
|
|
|
HOMEPAGE="http://www.riverbankcomputing.co.uk/software/qscintilla/intro"
|
|
|
|
SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="|| ( GPL-2 GPL-3 )"
|
|
|
|
SLOT="0"
|
2015-05-09 19:07:54 +03:00
|
|
|
KEYWORDS="alpha amd64 ia64 ppc ppc64 ~sparc x86"
|
2013-03-12 00:44:33 +04:00
|
|
|
IUSE="debug"
|
|
|
|
|
|
|
|
DEPEND="
|
|
|
|
${PYTHON_DEPS}
|
2014-07-20 12:18:29 +04:00
|
|
|
>=dev-python/sip-4.16:=[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/PyQt4-4.11[X,${PYTHON_USEDEP}]
|
2013-03-12 00:44:33 +04:00
|
|
|
dev-qt/qtcore:4
|
|
|
|
dev-qt/qtgui:4
|
|
|
|
~x11-libs/qscintilla-${PV}:=
|
|
|
|
"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
2013-06-25 16:09:08 +04:00
|
|
|
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
|
|
|
|
2013-03-12 00:44:33 +04:00
|
|
|
S=${WORKDIR}/${MY_P}/Python
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
python_copy_sources
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
configuration() {
|
|
|
|
local myconf=(
|
2014-07-20 12:18:29 +04:00
|
|
|
"${PYTHON}" configure.py
|
2013-03-12 00:44:33 +04:00
|
|
|
--destdir="$(python_get_sitedir)"/PyQt4
|
2014-07-20 12:18:29 +04:00
|
|
|
--sip-incdir="$(python_get_includedir)"
|
|
|
|
--pyqt-sipdir="${EPREFIX}"/usr/share/sip
|
|
|
|
--qsci-sipdir="${EPREFIX}"/usr/share/sip
|
2015-05-02 10:18:32 +03:00
|
|
|
--pyqt=PyQt4
|
2014-07-20 12:18:29 +04:00
|
|
|
--no-timestamp
|
2015-05-02 10:18:32 +03:00
|
|
|
$(use debug && echo --debug)
|
2013-03-12 00:44:33 +04:00
|
|
|
)
|
|
|
|
echo "${myconf[@]}"
|
|
|
|
"${myconf[@]}" || die
|
2014-07-20 12:18:29 +04:00
|
|
|
|
|
|
|
# Run eqmake4 to respect toolchain, build flags, and prevent stripping
|
|
|
|
eqmake4
|
2013-03-12 00:44:33 +04:00
|
|
|
}
|
2015-05-02 10:18:32 +03:00
|
|
|
python_foreach_impl run_in_build_dir configuration
|
2013-03-12 00:44:33 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
2014-07-20 12:18:29 +04:00
|
|
|
python_foreach_impl run_in_build_dir default
|
2013-03-12 00:44:33 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2014-07-20 12:18:29 +04:00
|
|
|
installation() {
|
|
|
|
emake INSTALL_ROOT="${D}" install
|
|
|
|
python_optimize
|
|
|
|
}
|
|
|
|
python_foreach_impl run_in_build_dir installation
|
2013-03-12 00:44:33 +04:00
|
|
|
}
|