libreoffice-bin-debug-5.2.3.3-r1.ebuild 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. BASE_PACKAGENAME="debug"
  5. BASE_AMD64_URI="http://packages.gentooexperimental.org/packages/amd64-libreoffice/amd64-${BASE_PACKAGENAME}-"
  6. BASE_X86_URI="http://packages.gentooexperimental.org/packages/x86-libreoffice/x86-${BASE_PACKAGENAME}-"
  7. DESCRIPTION="LibreOffice, a full office productivity suite. Binary package, debug info"
  8. HOMEPAGE="http://www.libreoffice.org"
  9. SRC_URI_AMD64="
  10. ${BASE_AMD64_URI}libreoffice-${PVR}.tar.xz
  11. kde? (
  12. !java? ( ${BASE_AMD64_URI}libreoffice-kde-${PVR}.xd3 )
  13. java? ( ${BASE_AMD64_URI}libreoffice-kde-java-${PVR}.xd3 )
  14. )
  15. gnome? (
  16. !java? ( ${BASE_AMD64_URI}libreoffice-gnome-${PVR}.xd3 )
  17. java? ( ${BASE_AMD64_URI}libreoffice-gnome-java-${PVR}.xd3 )
  18. )
  19. !kde? ( !gnome? (
  20. java? ( ${BASE_AMD64_URI}libreoffice-java-${PVR}.xd3 )
  21. ) )
  22. "
  23. SRC_URI_X86="
  24. ${BASE_X86_URI}libreoffice-${PVR}.tar.xz
  25. kde? (
  26. !java? ( ${BASE_X86_URI}libreoffice-kde-${PVR}.xd3 )
  27. java? ( ${BASE_X86_URI}libreoffice-kde-java-${PVR}.xd3 )
  28. )
  29. gnome? (
  30. !java? ( ${BASE_X86_URI}libreoffice-gnome-${PVR}.xd3 )
  31. java? ( ${BASE_X86_URI}libreoffice-gnome-java-${PVR}.xd3 )
  32. )
  33. !kde? ( !gnome? (
  34. java? ( ${BASE_X86_URI}libreoffice-java-${PVR}.xd3 )
  35. ) )
  36. "
  37. SRC_URI="
  38. amd64? ( ${SRC_URI_AMD64} )
  39. x86? ( ${SRC_URI_X86} )
  40. "
  41. IUSE="gnome java kde"
  42. LICENSE="LGPL-3"
  43. SLOT="0"
  44. KEYWORDS="-* amd64 x86"
  45. RDEPEND="=app-office/${PN/-debug}-${PVR}[gnome=,java=,kde=]"
  46. DEPEND="dev-util/xdelta:3"
  47. RESTRICT="test strip"
  48. S="${WORKDIR}"
  49. QA_PREBUILT="/usr/*"
  50. src_unpack() {
  51. einfo "Uncompressing distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz"
  52. xz -cd "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar.xz" > "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
  53. local patchname
  54. use kde && patchname="-kde"
  55. use gnome && patchname="-gnome"
  56. use java && patchname="${patchname}-java"
  57. if [ -n "${patchname}" ]; then
  58. einfo "Patching distfile ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar using ${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3"
  59. xdelta3 -d -s "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" "${DISTDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice${patchname}-${PVR}.xd3" "${WORKDIR}/tmpdist.tar" || die
  60. mv "${WORKDIR}/tmpdist.tar" "${WORKDIR}/${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar" || die
  61. fi
  62. einfo "Unpacking new ${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
  63. unpack "./${ARCH}-${BASE_PACKAGENAME}-libreoffice-${PVR}.tar"
  64. }
  65. src_configure() { :; }
  66. src_compile() { :; }
  67. src_install() {
  68. dodir /usr
  69. cp -aR "${S}"/usr/* "${ED}"/usr/ || die
  70. }