| 1 |
# Copyright 1999-2013 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-office/texstudio/texstudio-2.3-r1.ebuild,v 1.3 2013/03/02 19:38:36 hwoarang Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit base fdo-mime qt4-r2
|
| 8 |
|
| 9 |
DESCRIPTION="Free cross-platform LaTeX editor (former texmakerX)"
|
| 10 |
HOMEPAGE="http://texstudio.sourceforge.net/"
|
| 11 |
SRC_URI="mirror://sourceforge/${PN}/${PN}/TeXstudio%20${PV}/${P}.tar.gz"
|
| 12 |
|
| 13 |
LICENSE="GPL-2"
|
| 14 |
SLOT="0"
|
| 15 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd"
|
| 16 |
IUSE="video"
|
| 17 |
|
| 18 |
COMMON_DEPEND="
|
| 19 |
app-text/hunspell
|
| 20 |
app-text/poppler[qt4]
|
| 21 |
x11-libs/libX11
|
| 22 |
x11-libs/libXext
|
| 23 |
>=dev-qt/qtgui-4.6.1:4
|
| 24 |
>=dev-qt/qtcore-4.6.1:4
|
| 25 |
>=dev-qt/qtscript-4.6.1:4
|
| 26 |
>=dev-qt/qttest-4.6.1:4
|
| 27 |
>=dev-qt/qtwebkit-4.6.1:4
|
| 28 |
video? ( media-libs/phonon )"
|
| 29 |
RDEPEND="${COMMON_DEPEND}
|
| 30 |
virtual/latex-base
|
| 31 |
app-text/psutils
|
| 32 |
app-text/ghostscript-gpl
|
| 33 |
media-libs/netpbm"
|
| 34 |
DEPEND="${COMMON_DEPEND}
|
| 35 |
virtual/pkgconfig"
|
| 36 |
|
| 37 |
S="${WORKDIR}"/${P/-/}
|
| 38 |
|
| 39 |
PATCHES=(
|
| 40 |
"${FILESDIR}"/${P}-hunspell.patch
|
| 41 |
"${FILESDIR}"/${P}-gcc47.patch
|
| 42 |
"${FILESDIR}"/${P}-test.patch
|
| 43 |
"${FILESDIR}"/${P}-xdg-open.patch
|
| 44 |
)
|
| 45 |
|
| 46 |
src_prepare() {
|
| 47 |
find hunspell -delete
|
| 48 |
sed 's:hunspell/hunspell:hunspell:g' -i *.h || die
|
| 49 |
if use video; then
|
| 50 |
sed "/^PHONON/s:$:true:g" -i ${PN}.pro || die
|
| 51 |
fi
|
| 52 |
qt4-r2_src_prepare
|
| 53 |
}
|
| 54 |
|
| 55 |
src_install() {
|
| 56 |
make_desktop_entry texstudio "LaTeX Editor" texstudio "text/X-tex"
|
| 57 |
for i in 16x16 22x22 32x32 48x48 64x64; do
|
| 58 |
insinto /usr/share/icons/hicolor/${i}
|
| 59 |
newins utilities/${PN}${i}.png ${PN}.png
|
| 60 |
done
|
| 61 |
qt4-r2_src_install
|
| 62 |
}
|
| 63 |
|
| 64 |
pkg_postinst() {
|
| 65 |
fdo-mime_desktop_database_update
|
| 66 |
}
|