blob: 4720b12d1fd71e688e0e5d8a7b777e11a7e76f11 (
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
63
64
65
66
67
68
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"
inherit eutils versionator
MY_MINOR_VERSION="$(get_version_component_range 1-6)"
MY_BUILD="8844"
DESCRIPTION="Freeware advanced editor for dynamic and Web languages"
HOMEPAGE="http://www.activestate.com/products/komodo_edit"
LICENSE="ActiveState Komodo Edit"
SRC_URI="x86? ( http://downloads.activestate.com/Komodo/releases/${MY_MINOR_VERSION}/Komodo-Edit-${PV}-${MY_BUILD}-linux-libcpp6-x86.tar.gz )
amd64? ( http://downloads.activestate.com/Komodo/releases/${MY_MINOR_VERSION}/Komodo-Edit-${PV}-${MY_BUILD}-linux-libcpp6-x86_64.tar.gz )"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="default-templates"
DEPEND="virtual/jpeg
virtual/libc"
RDEPEND="${DEPEND}"
RESTRICT="mirror"
use amd64 && MY_ARCH='x86_64' || MY_ARCH=${ARCH}
S="${WORKDIR}/Komodo-Edit-${PV}-${MY_BUILD}-linux-libcpp6-${MY_ARCH}"
src_install() {
KOMODO_EDIT_INSTALLDIR="/opt/${P}"
dodir "${KOMODO_EDIT_INSTALLDIR}"
"${S}/install.sh" \
--install-dir "${D}/${KOMODO_EDIT_INSTALLDIR}" \
--dest-dir ${KOMODO_EDIT_INSTALLDIR} \
--suppress-shortcut || die "original installer script failed"
dosym "${KOMODO_EDIT_INSTALLDIR}/bin/komodo" "/usr/bin/${P}" &&
dosym "./${P}" "/usr/bin/${PN}" ||
die "failed dosym Komodo launcher script"
# Most default templates are empty, or near-empty, and can clutter
# the new file dialog, so we permit not to install them.
use default-templates || (
rm -R "${D}/${KOMODO_EDIT_INSTALLDIR}/"lib/mozilla/extensions/*/templates/* &&
rm -R "${D}/${KOMODO_EDIT_INSTALLDIR}/"lib/support/default-templates/* ||
die "failed removing default templates"
)
dodoc install.html license.txt relnotes.html || die "dodoc failed"
dosym "${KOMODO_EDIT_INSTALLDIR}/share/icons/komodo48.png" \
"/usr/share/pixmaps/${PN}.png" || die "dosym pixmap icon failed"
make_desktop_entry \
"${PN}" \
"Komodo Edit" \
"${PN}.png" \
"Development;IDE;Editor;TextEditor;ActiveState" ||
die "make_desktop_entry failed"
}
|