/[gentoo-x86]/app-office/texstudio/texstudio-2.5.ebuild
Gentoo

Contents of /app-office/texstudio/texstudio-2.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Nov 5 18:57:07 2012 UTC (2 years, 1 month ago) by jlec
Branch: MAIN
app-office/texstudio: Version Bump, #439816

(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)

1 # Copyright 1999-2012 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.4.ebuild,v 1.2 2012/09/07 18:02:00 mr_bones_ 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 >=x11-libs/qt-gui-4.6.1:4
24 >=x11-libs/qt-core-4.6.1:4
25 >=x11-libs/qt-script-4.6.1:4
26 >=x11-libs/qt-test-4.6.1:4
27 >=x11-libs/qt-webkit-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 # 441914
42 # "${FILESDIR}"/${P}-qtsingle.patch
43 "${FILESDIR}"/${PN}-2.4-desktop.patch
44 # Get it from fedora
45 "${FILESDIR}"/${P}-viewers-use-xdg-open.patch
46 )
47
48 src_prepare() {
49 find hunspell -delete
50 if use video; then
51 sed "/^PHONON/s:$:true:g" -i ${PN}.pro || die
52 fi
53 qt4-r2_src_prepare
54 }
55
56 src_install() {
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 }

  ViewVC Help
Powered by ViewVC 1.1.20