summaryrefslogtreecommitdiff
blob: 25736dcc3994fcb444d47495799f7395bbbb063f (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
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake xdg

DESCRIPTION="Graphical IDE for microcontrollers based on 8051"
HOMEPAGE="https://sourceforge.net/projects/mcu8051ide/"
SRC_URI="mirror://gentoo/${P}.tar.gz"

LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64"

# The doxygen dependency is suspect, but it appears to be used at runtime.
RDEPEND="
	>=app-doc/doxygen-1.7
	>=app-text/hunspell-1.3
	>=dev-embedded/sdcc-2.5[mcs51]
	>=dev-lang/tcl-8.5.9:*
	>=dev-lang/tk-8.5.9:*
	>=dev-tcltk/bwidget-1.8
	>dev-tcltk/itcl-3.3
	>=dev-tcltk/tcllib-1.11
	>=dev-tcltk/tclx-8.4
	>=dev-tcltk/tdom-0.8
	>=dev-tcltk/tkimg-1.4
	>=dev-util/indent-2.2
"
DEPEND="${RDEPEND}"
BDEPEND="app-arch/gzip"

PATCHES=(
	# Patches thanks to Debian
	"${FILESDIR}"/${P}-cmake.patch
	"${FILESDIR}"/${P}-appdata.patch
	"${FILESDIR}"/${P}-desktop-file.patch
)

src_prepare() {
	cmake_src_prepare
	gunzip doc/man/mcu8051ide.1.gz || die
}

src_install() {
	cmake_src_install
	doman doc/man/mcu8051ide.1
}