Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 311567
Collapse All | Expand All

(-)texmaker-1.99.ebuild.orig (-24 / +11 lines)
Lines 2-70 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/app-office/texmaker/texmaker-1.99.ebuild,v 1.1 2010/02/25 12:04:42 aballier Exp $
3
# $Header: /var/cvsroot/gentoo-x86/app-office/texmaker/texmaker-1.99.ebuild,v 1.1 2010/02/25 12:04:42 aballier Exp $
4
4
5
EAPI=1
5
EAPI=3
6
6
inherit versionator qt4-r2
7
inherit base versionator qt4
8
9
DESCRIPTION="A nice LaTeX-IDE"
10
7
11
# The upstream version numbering is bad, so we have to remove a dot in the
8
# The upstream version numbering is bad, so we have to remove a dot in the
12
# minor version number
9
# minor version number
13
MAJOR="$(get_major_version)"
10
MAJOR="$(get_major_version)"
14
MINOR_1="$(($(get_version_component_range 2)/10))"
11
MINOR_1="$(($(get_version_component_range 2)/10))"
15
MINOR_2="$(($(get_version_component_range 2)%10))"
12
MINOR_2="$(($(get_version_component_range 2)%10))"
16
if [ ${MINOR_2} -eq "0" ] ; then
13
if [[ ${MINOR_2} -eq "0" ]] ; then
17
	MY_P="${PN}-${MAJOR}.${MINOR_1}"
14
	MY_P="${PN}-${MAJOR}.${MINOR_1}"
18
else
15
else
19
	MY_P="${PN}-${MAJOR}.${MINOR_1}.${MINOR_2}"
16
	MY_P="${PN}-${MAJOR}.${MINOR_1}.${MINOR_2}"
20
fi
17
fi
21
18
22
S="${WORKDIR}/${MY_P}"
19
DESCRIPTION="A nice LaTeX-IDE"
23
HOMEPAGE="http://www.xm1math.net/texmaker/"
20
HOMEPAGE="http://www.xm1math.net/texmaker/"
24
SRC_URI="http://www.xm1math.net/texmaker/${MY_P}.tar.bz2"
21
SRC_URI="http://www.xm1math.net/texmaker/${MY_P}.tar.bz2"
25
22
26
LICENSE="GPL-2"
23
LICENSE="GPL-2"
27
28
SLOT="0"
24
SLOT="0"
29
30
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
25
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
31
32
IUSE=""
26
IUSE=""
33
27
34
COMMON_DEPEND="x11-libs/libX11
28
COMMON_DEPEND="x11-libs/libX11
35
	x11-libs/libXext
29
	x11-libs/libXext
36
	>=x11-libs/qt-gui-4.5.1:4
30
	x11-libs/qt-core:4
37
	>=x11-libs/qt-core-4.5.1:4
31
	x11-libs/qt-gui:4
38
	>=app-text/hunspell-1.2.4"
32
	>=app-text/hunspell-1.2.4"
39
40
RDEPEND="${COMMON_DEPEND}
33
RDEPEND="${COMMON_DEPEND}
41
	virtual/latex-base
34
	virtual/latex-base
42
	app-text/psutils
35
	app-text/psutils
43
	app-text/ghostscript-gpl
36
	app-text/ghostscript-gpl
44
	media-libs/netpbm"
37
	media-libs/netpbm"
45
46
DEPEND="${COMMON_DEPEND}
38
DEPEND="${COMMON_DEPEND}
47
	dev-util/pkgconfig"
39
	dev-util/pkgconfig"
48
40
41
S=${WORKDIR}/${MY_P}
49
PATCHES=( "${FILESDIR}/${P}-hunspell.patch" )
42
PATCHES=( "${FILESDIR}/${P}-hunspell.patch" )
50
43
51
src_compile() {
52
	eqmake4 texmaker.pro || die "qmake failed"
53
	emake || die "emake failed"
54
}
55
56
src_install() {
44
src_install() {
57
	emake INSTALL_ROOT="${D}" install || die "make install failed"
45
	emake INSTALL_ROOT="${D}" install || die
58
46
59
	insinto /usr/share/pixmaps/texmaker
47
	insinto /usr/share/pixmaps/texmaker
60
	doins utilities/texmaker*.png || die "doins failed."
48
	doins utilities/texmaker*.png || die
61
	doins utilities/texmaker.svg || die "doins failed."
49
	doins utilities/texmaker.svg || die
62
50
63
	dodoc utilities/AUTHORS utilities/CHANGELOG.txt || die "dodoc failed"
51
	dodoc utilities/AUTHORS utilities/CHANGELOG.txt || die
64
}
52
}
65
53
66
pkg_postinst() {
54
pkg_postinst() {
67
	elog "A user manual with many screenshots is available at:"
55
	elog "A user manual with many screenshots is available at:"
68
	elog "/usr/share/${PN}/usermanual_en.html"
56
	elog "/usr/share/${PN}/usermanual_en.html"
69
	elog
70
}
57
}

Return to bug 311567