Skip to content

Commit

Permalink
dev-java/osgi-enterprise-api: SRC_URI, min java 1.8
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/786762
Closes: https://bugs.gentoo.org/785043
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
  • Loading branch information
vaukai committed May 28, 2021
1 parent 85bfbf3 commit 3ac87ad
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
46 changes: 46 additions & 0 deletions dev-java/osgi-enterprise-api/osgi-enterprise-api-5.0.0-r1.ebuild
@@ -0,0 +1,46 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

JAVA_PKG_IUSE="doc source"

inherit java-pkg-2 java-pkg-simple

DESCRIPTION="OSGi Enterprise Release 5 Companion Code"
HOMEPAGE="http://www.osgi.org/Main/HomePage"
SRC_URI="https://docs.osgi.org/download/r5/osgi.enterprise-${PV}.jar"

LICENSE="Apache-2.0 OSGi-Specification-2.0"
SLOT="0"
KEYWORDS="~amd64 ~ppc64 ~x86"

RESTRICT="bindist fetch"

CDEPEND="dev-java/glassfish-persistence:0
dev-java/osgi-core-api:0
java-virtuals/servlet-api:2.5"

RDEPEND="${CDEPEND}
>=virtual/jre-1.8:*"

DEPEND="${CDEPEND}
>=virtual/jdk-1.8:*
app-arch/unzip"

JAVA_SRC_DIR="OSGI-OPT/src"

JAVA_GENTOO_CLASSPATH="glassfish-persistence,osgi-core-api,servlet-api-2.5"

pkg_nofetch() {
einfo "Please download osgi.enterprise-${PV}.jar from"
einfo " http://www.osgi.org/Download/Release5"
einfo "which you can find listed as"
einfo " OSGi Enterprise Release 5 Companion Code"
einfo "after accepting the license."
}

src_prepare() {
default
rm -r org || die
}
@@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI="5"
Expand Down

0 comments on commit 3ac87ad

Please sign in to comment.