summaryrefslogtreecommitdiff
blob: ed6502b0ac3734f819e52fc6ae1ef15fdfb4b1a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit qt3 eutils fdo-mime

DESCRIPTION="An IDE for tigcc"
HOMEPAGE="http://tigcc.ticalc.org"
SRC_URI="mirror://sourceforge/tigcc-linux/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="no-completion-data"

DEPEND="$(qt_min_version 3.1)
	>=kde-base/kdelibs-3.5.2
	dev-util/ctags
	dev-util/pkgconfig
	dev-embedded/tigcc
	>=sci-libs/libticables2-20060723
	>=sci-libs/libticonv-20060723-r1
	>=sci-libs/libtifiles2-20060723
	>=sci-libs/libticalcs2-20060723"

RDEPEND="${DEPEND}
	!no-completion-data? ( dev-util/ktigcc-completion-data )"


S=${WORKDIR}/${PN}

src_install() {
	dobin ktigcc
	dodoc NEWS

	# mime-type registration for project files
	newicon ${S}/images/ktigcc.png application-x-tigcc-project.png

	insinto /usr/share/mimelnk/application
	doins ${FILESDIR}/x-tigcc-project.desktop

	insinto /usr/share/mime/packages
	doins ${FILESDIR}/ktigcc.xml

	# menu entry
	# can't use make_desktop_entry here, because I need mime-type association
	newicon ${S}/images/icon.png ktigcc.png
	domenu ${FILESDIR}/ktigcc.desktop

	# ktigcc wants to call ctags and not exuberant-ctags
	dosym exuberant-ctags /usr/bin/ctags
}

pkg_postinst() {
	fdo-mime_desktop_database_update
	fdo-mime_mime_database_update
}

pkg_postrm() {
	fdo-mime_desktop_database_update
	fdo-mime_mime_database_update
}