From c06b59d3b56968ab5a8396ec739d824feca06314 Mon Sep 17 00:00:00 2001 From: Pierre Lejeune Date: Tue, 17 Apr 2012 21:20:22 +0200 Subject: [PATCH] media-libs/libcaca: Remove empty directories when java is not enabled --- packages/media-libs/libcaca/libcaca-0.99_beta18.exheres-0 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/media-libs/libcaca/libcaca-0.99_beta18.exheres-0 b/packages/media-libs/libcaca/libcaca-0.99_beta18.exheres-0 index 33c183e6..3342d83a 100644 --- a/packages/media-libs/libcaca/libcaca-0.99_beta18.exheres-0 +++ b/packages/media-libs/libcaca/libcaca-0.99_beta18.exheres-0 @@ -10,3 +10,11 @@ PLATFORMS="~amd64" WORK="${WORKBASE}/${MY_PNV}" +src_install() { + default + if option !java; then + edo rmdir "${IMAGE}"/usr/"${LIBDIR}"/jni + edo rmdir "${IMAGE}"/usr/share/java + fi +} +