devel/spark: Update Enable only for java 8 and 11
Spark with Java 17 has a lot of build crashes on FreeBSD.
While here replace PORTVERSION with DISTVERSION.
PR: 296715
Sponsored by: UNIS Labs
Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>
MFH: 2026Q3
(cherry picked from commit e1a98853b2aaebc330bc6dd571e834612bce1eb9)