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

Contents of /app-office/texstudio/texstudio-2.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Sep 5 07:28:12 2012 UTC (2 years ago) by jlec
Branch: MAIN
Changes since 1.1: +7 -3 lines
app-office/texstudio: Version Bump; Update desktop mime db; drop old

(Portage version: 2.2.0_alpha124/cvs/Linux x86_64)

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.3-r1.ebuild,v 1.1 2012/07/15 09:31:51 jlec 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 "${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 }

  ViewVC Help
Powered by ViewVC 1.1.20