summaryrefslogtreecommitdiff
path: root/app-office/archi/archi-2.4.0.ebuild
blob: d71649c781adf6a7282b01650e03286209e20db7 (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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="5"

inherit eutils

DESCRIPTION="A free, open source, cross-platform tool and editor to create ArchiMate models."
HOMEPAGE="http://archi.cetis.ac.uk/"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
SRC_URI="http://archi.cetis.ac.uk/download/latest/Archi-lnx32_64-${PV}.tar.gz"
IUSE="doc examples"
RESTRICT="strip mirror"
RDEPEND=">=virtual/jre-1.6"

INSTALLDIR="/opt/Archi"
S="${WORKDIR}/Archi"

src_install() {
	# application
	insinto ${INSTALLDIR}
	doins -r configuration plugins

	# executables
	if use x86; then
		doins Archi32*
		chmod 755 "${D}/${INSTALLDIR}/Archi32"
	elif use amd64; then
		doins Archi64*
		chmod 755 "${D}/${INSTALLDIR}/Archi64"
	fi

	# icon
	newicon -s 128 icon.xpm archi.xpm

	# docs
	if use doc; then
		dodoc about.html
		dodoc about_files/*
		dodoc docs/*
	fi

	# examples
	if use examples; then
		dodoc -r examples
	fi
}