2022-04-05 13:31:14 +02:00
|
|
|
# Copyright 2020-2022 Gentoo Authors
|
2021-07-01 13:56:41 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2023-07-20 20:28:34 +02:00
|
|
|
EAPI=8
|
2021-07-01 13:56:41 +02:00
|
|
|
|
2023-07-20 20:28:34 +02:00
|
|
|
inherit desktop
|
2021-07-01 13:56:41 +02:00
|
|
|
|
|
|
|
MY_PV="${PV//.20/.v20}"
|
|
|
|
MY_PN="ApacheDirectoryStudio"
|
2022-02-23 19:17:30 +01:00
|
|
|
MY_PKGM=17
|
2021-07-01 13:56:41 +02:00
|
|
|
|
|
|
|
DESCRIPTION="Apache Directory Studio is an universal LDAP directory tool."
|
|
|
|
SRC_URI="https://downloads.apache.org/directory/studio/${MY_PV}-M${MY_PKGM}/${MY_PN}-${MY_PV}-M${MY_PKGM}-linux.gtk.x86_64.tar.gz"
|
|
|
|
HOMEPAGE="https://directory.apache.org/studio/"
|
|
|
|
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
SLOT="2"
|
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
dev-java/openjdk-bin:11
|
|
|
|
app-crypt/libsecret
|
|
|
|
x11-libs/gtk+:3
|
|
|
|
"
|
2022-04-05 13:31:14 +02:00
|
|
|
# >=virtual/jre-11
|
2021-07-01 13:56:41 +02:00
|
|
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
make_desktop_entry "${MY_PN}" "Apache Directory Studio" "${MY_PN}" "System"
|
|
|
|
|
|
|
|
sed -e "s!#-vm!-vm!" -i ApacheDirectoryStudio.ini
|
|
|
|
sed -e "s!#/usr/lib.*!/usr/lib/jvm/openjdk-bin-11/bin/java!" -i ApacheDirectoryStudio.ini
|
|
|
|
|
|
|
|
doins -r *
|
|
|
|
|
|
|
|
fperms +x "${INSTALL_DIR}/${MY_PN}"
|
|
|
|
|
|
|
|
dosym "${INSTALL_DIR}/${MY_PN}" "/usr/bin/${MY_PN}"
|
|
|
|
}
|