You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.0 KiB
50 lines
1.0 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
10 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
8 years ago
|
|
||
3 years ago
|
EAPI=7
|
||
10 years ago
|
|
||
8 years ago
|
JTA_ZIP="jta-1_1-classes.zip"
|
||
|
|
||
10 years ago
|
inherit java-pkg-2
|
||
|
|
||
|
DESCRIPTION="The Java Transaction API"
|
||
3 years ago
|
HOMEPAGE="https://www.oracle.com/java/technologies/jta.html"
|
||
10 years ago
|
SRC_URI="${JTA_ZIP}"
|
||
3 years ago
|
|
||
10 years ago
|
LICENSE="sun-bcla-jta"
|
||
|
SLOT=0
|
||
4 years ago
|
KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux"
|
||
8 years ago
|
|
||
3 years ago
|
DEPEND=">=virtual/jdk-1.8:*"
|
||
|
RDEPEND=">=virtual/jre-1.8:*"
|
||
|
BDEPEND="app-arch/unzip"
|
||
8 years ago
|
|
||
10 years ago
|
RESTRICT="fetch"
|
||
|
|
||
8 years ago
|
S="${WORKDIR}"
|
||
10 years ago
|
|
||
|
pkg_nofetch() {
|
||
|
einfo
|
||
|
einfo " Due to license restrictions, we cannot fetch the"
|
||
|
einfo " distributables automagically."
|
||
|
einfo
|
||
|
einfo " 1. Visit ${HOMEPAGE}"
|
||
|
einfo " 2. Select 'Java Transaction API Specification 1.1 Maintenance Release'"
|
||
|
einfo " 3. Download ${JTA_ZIP}"
|
||
6 years ago
|
einfo " 4. Move file to your DISTDIR directory"
|
||
10 years ago
|
einfo " 5. Restart the emerge process"
|
||
|
einfo
|
||
|
}
|
||
|
|
||
|
src_unpack() {
|
||
|
unzip -qq "${DISTDIR}"/${JTA_ZIP} || die "failed to unpack"
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
jar cvf jta.jar javax/ || die "failed to create jar"
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
java-pkg_dojar jta.jar
|
||
|
}
|