commit:     17939390efcb504b864531338abf6d9082b1f3fb
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Tue Jan 23 08:42:47 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 28 14:50:19 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17939390

media-tv/kodi: fix issue with bundled java packages

* Kodi wasn't properly building them leading to a build error. Unpack
  and feed this location to the build with -D*_SOURCE_DIR to make sure
  it works.

Closes: https://bugs.gentoo.org/922871
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-tv/kodi/kodi-9999.ebuild | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/media-tv/kodi/kodi-9999.ebuild b/media-tv/kodi/kodi-9999.ebuild
index 8725fa3fc6f3..66bd223250ee 100644
--- a/media-tv/kodi/kodi-9999.ebuild
+++ b/media-tv/kodi/kodi-9999.ebuild
@@ -283,6 +283,10 @@ src_unpack() {
        else
                unpack ${MY_P}.tar.gz
        fi
+
+       unpack apache-groovy-binary-${GROOVY_VERSION}.zip
+       unpack commons-lang3-${APACHE_COMMON_LANG_VERSION}-bin.tar.gz
+       unpack commons-text-${APACHE_COMMON_TEXT_VERSION}-bin.tar.gz
 }
 
 src_prepare() {
@@ -399,6 +403,9 @@ src_configure() {
                -DTARBALL_DIR="${DISTDIR}"
                
-Dlibdvdnav_URL="${DISTDIR}/libdvdnav-${LIBDVDNAV_VERSION}.tar.gz"
                
-Dlibdvdread_URL="${DISTDIR}/libdvdread-${LIBDVDREAD_VERSION}.tar.gz"
+               -Dgroovy_SOURCE_DIR="${WORKDIR}/groovy-${GROOVY_VERSION}"
+               
-Dapache-commons-lang_SOURCE_DIR="${WORKDIR}/commons-lang3-${APACHE_COMMON_LANG_VERSION}"
+               
-Dapache-commons-text_SOURCE_DIR="${WORKDIR}/commons-text-${APACHE_COMMON_TEXT_VERSION}"
        )
 
        # Separated to avoid "Manually-specified variables were not used by the 
project:"

Reply via email to