blob: 2a0a8cda315b75c544b89559c04a310f9376313c (
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
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="7"
inherit eutils
MY_PV=$(ver_rs 3 '.v')
MY_PV=$(ver_cut 1-5 ${MY_PV})
MY_PN="ApacheDirectoryStudio"
MY_PKGM=$(ver_cut 5)
DESCRIPTION="Apache Directory Studio is an universal LDAP directory tool."
SRC_URI="http://www.apache.org/dist/directory/studio/${MY_PV}-M${MY_PKGM}/${MY_PN}-${MY_PV}-M${MY_PKGM}-linux.gtk.x86_64.tar.gz"
HOMEPAGE="http://directory.apache.org/studio/"
KEYWORDS="~amd64 ~x86"
SLOT="2"
LICENSE="Apache-2.0"
IUSE=""
DEPEND="!net-nds/Apache-DS" # obsolete ebuild name
RDEPEND=">=virtual/jre-1.8.0
x11-libs/gtk+:2"
#MY_ARCH="x86? ( x86 ) amd64? ( amd64 )"
MY_ARCH="$ARCH"
INSTALL_DIR="/opt/${MY_PN}"
S="${WORKDIR}/${MY_PN}"
src_install() {
insinto "${INSTALL_DIR}"
newicon "features/org.apache.directory.studio.schemaeditor.feature_${MY_PV}-M${MY_PKGM}/studio.png" "${MY_PN}.png"
#newicon "${MY_PN}/icon.xpm" "${MY_PN}.xpm"
make_desktop_entry "${MY_PN}" "Apache Directory Studio" "${MY_PN}" "System"
doins -r *
fperms +x "${INSTALL_DIR}/${MY_PN}"
dosym "${INSTALL_DIR}/${MY_PN}" "/usr/bin/${MY_PN}"
}
|