Install this version:
emerge -a =app-misc/protege-bin-5.6.9
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-misc/protege-bin-5.6.9
Or alternatively:
emerge --autounmask-write -a =app-misc/protege-bin-5.6.9
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 5.6.9 | 8 | ~amd64 | 0 |
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="${PN%%-bin}"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="An ontology editor and framework for building intelligent systems"
HOMEPAGE="https://protege.stanford.edu/"
SRC_URI="
https://github.com/protegeproject/protege-distribution/releases/download/protege-${PV}/Protege-${PV}-linux.tar.gz -> ${MY_P}.tar.gz
https://bitbucket.org/dtsarkov/factplusplus/downloads/uk.ac.manchester.cs.owl.factplusplus-P5.x-v1.6.5.jar -> factplusplus-1.6.5.jar
"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+reasoners"
RDEPEND=">=virtual/jre-17"
DEPEND=">=virtual/jdk-17"
PROTEGE="${PN}-${SLOT}"
PROTEGE_SHARE="/opt/${PROTEGE}"
EXECUTABLE="/usr/bin/${MY_PN}"
QA_PRESTRIPPED="
opt/${PROTEGE}/protege
"
S="${WORKDIR}/${MY_P^}"
src_prepare() {
default
rm -r "${S}/jre"
einfo "${A}"
if use reasoners; then
cp "${DISTDIR}/factplusplus-1.6.5.jar" "${S}/plugins/"
fi
sed -i 's/^\$EFFECTIVE_JAVA_HOME\/bin\/java/\/usr\/bin\/java\ --add-opens java.xml\/com.sun.org.apache.xml.internal.serialize=ALL-UNNAMED/' "${S}/run.sh"
echo "max_heap_size=12G" >> "${S}/conf/jvm.conf"
echo "min_heap_size=5G" >> "${S}/conf/jvm.conf"
echo "max_stack_size=160M" >> "${S}/conf/jvm.conf"
}
src_install() {
insinto "${PROTEGE_SHARE}"
doins -r "${S}"/*
chmod 0755 "${ED}${PROTEGE_SHARE}/run.sh"
chmod 0755 "${ED}${PROTEGE_SHARE}/protege"
dosym "${PROTEGE_SHARE}/run.sh" "${EXECUTABLE}"
}
Manage flags for this package:
euse -i <flag> -p app-misc/protege-bin |
euse -E <flag> -p app-misc/protege-bin |
euse -D <flag> -p app-misc/protege-bin
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | factplusplus-1.6.5.jar | 2525143 bytes | https://bitbucket.org/dtsarkov/factplusplus/downloads/uk.ac.manchester.cs.owl.factplusplus-P5.x-v1.6.5.jar |
| DIST | protege-5.6.9.tar.gz | 114558639 bytes | https://github.com/protegeproject/protege-distribution/releases/download/protege-5.6.9/Protege-5.6.9-linux.tar.gz |