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.
54 lines
1.1 KiB
54 lines
1.1 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
12 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
12 years ago
|
|
||
|
JAVA_PKG_IUSE="doc source"
|
||
|
|
||
|
inherit java-pkg-2 java-pkg-simple
|
||
|
|
||
|
DESCRIPTION="Sun XML Datatypes Library"
|
||
|
HOMEPAGE="http://msv.java.net/"
|
||
|
SRC_URI="http://java.net/downloads/msv/releases/${PN}.${PV}.zip"
|
||
|
|
||
12 years ago
|
LICENSE="BSD Apache-1.1"
|
||
12 years ago
|
SLOT="0"
|
||
4 years ago
|
KEYWORDS="amd64 ~arm arm64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
|
||
12 years ago
|
|
||
|
COMMON_DEP="
|
||
|
dev-java/xerces:2
|
||
|
dev-java/relaxng-datatype:0"
|
||
4 years ago
|
BDEPEND="app-arch/unzip"
|
||
12 years ago
|
RDEPEND="${COMMON_DEP}
|
||
4 years ago
|
>=virtual/jre-1.8:*"
|
||
12 years ago
|
DEPEND="${COMMON_DEP}
|
||
4 years ago
|
>=virtual/jdk-1.8:*"
|
||
12 years ago
|
|
||
|
S="${WORKDIR}/${P}"
|
||
|
|
||
4 years ago
|
JAVA_SRC_DIR=( "src" "src-apache" )
|
||
12 years ago
|
JAVA_GENTOO_CLASSPATH="relaxng-datatype,xerces-2"
|
||
|
|
||
4 years ago
|
src_prepare() {
|
||
|
default
|
||
|
find -name '*.jar' -delete || die
|
||
|
}
|
||
|
|
||
12 years ago
|
src_compile() {
|
||
|
java-pkg-simple_src_compile
|
||
|
|
||
4 years ago
|
local dir; for dir in "${JAVA_SRC_DIR[@]}"; do
|
||
12 years ago
|
pushd ${dir} > /dev/null || die
|
||
4 years ago
|
jar -uf "${S}"/${PN}.jar $(find -name '*.properties') || die
|
||
|
popd > /dev/null || die
|
||
12 years ago
|
done
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
java-pkg-simple_src_install
|
||
|
|
||
|
dodoc README.txt
|
||
4 years ago
|
docinto html
|
||
|
dodoc HowToUse.html
|
||
12 years ago
|
}
|