You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
1.6 KiB
83 lines
1.6 KiB
8 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
12 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
12 years ago
|
|
||
|
EAPI=5
|
||
|
LANGS="be es fr ru"
|
||
|
|
||
|
inherit qt4-r2
|
||
|
|
||
|
MY_P="mks_${PV}-src"
|
||
|
|
||
|
DESCRIPTION="A cross platform Qt 4 IDE"
|
||
|
HOMEPAGE="http://www.monkeystudio.org"
|
||
9 years ago
|
SRC_URI="https://${PN}.googlecode.com/files/${MY_P}.tar.gz"
|
||
12 years ago
|
|
||
|
LICENSE="GPL-2 LGPL-3"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE="doc plugins"
|
||
|
|
||
10 years ago
|
RDEPEND="
|
||
|
dev-qt/designer:4
|
||
|
dev-qt/qtcore:4
|
||
|
dev-qt/qtgui:4
|
||
|
dev-qt/qthelp:4
|
||
|
dev-qt/qtsql:4
|
||
8 years ago
|
x11-libs/qscintilla:=[qt4(-)]
|
||
10 years ago
|
plugins? ( dev-qt/qtwebkit:4 )
|
||
|
"
|
||
12 years ago
|
DEPEND="${RDEPEND}
|
||
10 years ago
|
doc? ( >=app-doc/doxygen-1.5.8 )
|
||
|
"
|
||
12 years ago
|
|
||
|
PATCHES=( "${FILESDIR}/${P}-install.patch" )
|
||
|
DOCS=( ChangeLog readme.txt )
|
||
|
|
||
|
S=${WORKDIR}/${MY_P}
|
||
|
|
||
|
src_prepare() {
|
||
|
# Revert upstream change designed to permit shadow building
|
||
|
# which is causing build failure
|
||
|
sed -e '/PACKAGE_BUILD_PATH = $$(PWD)\/build/d' \
|
||
|
-e 's/#PACKAGE_BUILD_PATH/PACKAGE_BUILD_PATH/' \
|
||
|
-i config.pri || die
|
||
|
|
||
|
rm -r qscintilla/QScintilla-gpl-snapshot \
|
||
|
|| die "failed removing bundled qscintilla"
|
||
|
|
||
|
qt4-r2_src_prepare
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
eqmake4 prefix=/usr system_qscintilla=1
|
||
|
|
||
|
if use plugins ; then
|
||
|
eqmake4 plugins/plugins.pro
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
qt4-r2_src_install
|
||
|
|
||
|
if use plugins ; then
|
||
|
insinto /usr/lib64/monkeystudio
|
||
|
doins -r bin/plugins/*
|
||
|
fi
|
||
|
|
||
|
insinto /usr/share/${PN}/translations
|
||
|
local lang
|
||
|
for lang in ${LANGS} ; do
|
||
|
if use linguas_${lang} ; then
|
||
|
doins datas/translations/monkeystudio_${lang}.qm
|
||
|
fi
|
||
|
done
|
||
|
|
||
|
fperms 755 /usr/bin/${PN}
|
||
|
|
||
|
if use doc ; then
|
||
|
doxygen || die "doxygen failed"
|
||
|
dohtml -r doc/html/*
|
||
|
fi
|
||
|
}
|