21 |
21 |
|
22 |
22 |
LICENSE="Apache-2.0"
|
23 |
23 |
SLOT="2.8"
|
24 |
|
KEYWORDS="amd64 ~arm64 ppc64 x86"
|
|
24 |
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
|
25 |
25 |
|
26 |
26 |
CP_DEPEND="
|
27 |
27 |
dev-java/batik:1.16
|
... | ... | |
51 |
51 |
|
52 |
52 |
DOCS=( NOTICE README )
|
53 |
53 |
|
54 |
|
PATCHES=( "${FILESDIR}/fop-2.8-skip-failing-tests.patch" )
|
|
54 |
PATCHES=(
|
|
55 |
"${FILESDIR}/fop-2.9-PDFEncodingTestCase.patch"
|
|
56 |
"${FILESDIR}/fop-2.9-PDFToUnicodeCMapTestCase.patch"
|
|
57 |
"${FILESDIR}/fop-2.9-MissingLanguageWarningTestCase.patch"
|
|
58 |
"${FILESDIR}/fop-2.9-FO2StructureTreeConverterTestCase.patch"
|
|
59 |
)
|
55 |
60 |
|
56 |
61 |
JAVA_CLASSPATH_EXTRA="
|
57 |
62 |
ant-core
|
... | ... | |
59 |
64 |
sun-jai-bin
|
60 |
65 |
"
|
61 |
66 |
|
62 |
|
BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-apache-xmlgraphics-fop )"
|
|
67 |
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-apache-xmlgraphics-fop )"
|
63 |
68 |
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/xmlgraphics-fop.apache.org.asc"
|
64 |
|
|
65 |
69 |
src_unpack() {
|
66 |
70 |
if use verify-sig; then
|
67 |
71 |
verify-sig_verify_detached "${DISTDIR}"/${P}-src.tar.gz{,.asc}
|
... | ... | |
154 |
158 |
# Excluding one test, see https://bugs.gentoo.org/903880
|
155 |
159 |
local JAVA_TEST_RUN_ONLY=$(find * -type f \
|
156 |
160 |
-name "*TestCase.java" \
|
157 |
|
! -name 'MissingLanguageWarningTestCase.java' \
|
158 |
161 |
)
|
159 |
162 |
JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//.java}"
|
160 |
163 |
JAVA_TEST_RUN_ONLY="${JAVA_TEST_RUN_ONLY//\//.}"
|
|
164 |
local vm_version="$(java-config -g PROVIDES_VERSION)"
|
|
165 |
# these tests would fail with java.lang.NoSuchMethodError if compiled with jdk-1.8
|
|
166 |
if ver_test "${vm_version}" -eq "1.8"; then
|
|
167 |
JAVA_TEST_RUN_ONLY=${JAVA_TEST_RUN_ONLY//org.apache.fop.render.pdf.PDFEncodingTestCase}
|
|
168 |
JAVA_TEST_RUN_ONLY=${JAVA_TEST_RUN_ONLY//org.apache.fop.fonts.truetype.OTFToType1TestCase}
|
|
169 |
# org.apache.fop.render.pdf.PDFEncodingTestCase
|
|
170 |
# org.apache.fop.fonts.truetype.OTFToType1TestCase
|
|
171 |
fi
|
161 |
172 |
popd > /dev/null || die
|
162 |
173 |
# https://github.com/apache/xmlgraphics-fop/blob/fop-2_8/fop-core/pom.xml#L297-L307
|
163 |
174 |
# <workingDirectory>../fop</workingDirectory>
|