larry-backgrounds-20110822-r1.ebuild 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="6"
  4. DESCRIPTION="Wallpapers featuring Gentoo mascot Larry the cow"
  5. HOMEPAGE="https://www.gentoo.org/main/en/graphics.xml#wallpapers"
  6. web_home='https://www.gentoo.org/assets/img/wallpaper'
  7. SRC_URI="
  8. ${web_home}/abducted/gentoo-abducted-800x600.png
  9. ${web_home}/abducted/gentoo-abducted-1024x768.png
  10. ${web_home}/abducted/gentoo-abducted-1152x864.png
  11. ${web_home}/abducted/gentoo-abducted-1280x1024.png
  12. ${web_home}/abducted/gentoo-abducted-1600x1200.png
  13. ${web_home}/abducted/gentoo-abducted-1680x1050.png
  14. ${web_home}/gentoo-cow/gentoo-cow-gdm-remake.svg
  15. ${web_home}/gentoo-cow/gentoo-cow-gdm-remake-1280x1024.png
  16. ${web_home}/gentoo-cow/gentoo-cow-gdm-remake-800x600.png
  17. ${web_home}/gentoo-cow/gentoo-cow-gdm-remake-1024x768.png
  18. ${web_home}/gentoo-cow/gentoo-cow-gdm-remake-1152x864.png
  19. ${web_home}/gentoo-cow/gentoo-cow-gdm-remake-1280x960.png
  20. ${web_home}/gentoo-cow/gentoo-cow-gdm-remake-1600x1200.png
  21. ${web_home}/gentoo-cow/gentoo-cow-gdm-remake-1280x800.png
  22. ${web_home}/gentoo-cow/gentoo-cow-gdm-remake-1440x900.png
  23. ${web_home}/gentoo-cow/gentoo-cow-gdm-remake-1680x1050.png
  24. ${web_home}/gentoo-cow/gentoo-cow-gdm-remake-1920x1200.png
  25. ${web_home}/gentoo-cow/gentoo-cow-gdm-remake-1280x720.png
  26. ${web_home}/gentoo-cow/gentoo-cow-gdm-remake-1366x768.png
  27. ${web_home}/gentoo-cow/gentoo-cow-gdm-remake-1600x900.png
  28. ${web_home}/gentoo-cow/gentoo-cow-gdm-remake-1920x1080.png
  29. ${web_home}/gentoo-larry-bg/gentoo-larry-bg-4-3.svg
  30. ${web_home}/gentoo-larry-bg/gentoo-larry-bg-5-4.svg
  31. ${web_home}/gentoo-larry-bg/gentoo-larry-bg-16-9.svg
  32. ${web_home}/gentoo-larry-bg/gentoo-larry-bg-16-10.svg
  33. ${web_home}/gentoo-larry-bg/gentoo-larry-bg-800x600.png
  34. ${web_home}/gentoo-larry-bg/gentoo-larry-bg-1024x768.png
  35. ${web_home}/gentoo-larry-bg/gentoo-larry-bg-1152x864.png
  36. ${web_home}/gentoo-larry-bg/gentoo-larry-bg-1280x720.png
  37. ${web_home}/gentoo-larry-bg/gentoo-larry-bg-1280x800.png
  38. ${web_home}/gentoo-larry-bg/gentoo-larry-bg-1280x960.png
  39. ${web_home}/gentoo-larry-bg/gentoo-larry-bg-1280x1024.png
  40. ${web_home}/gentoo-larry-bg/gentoo-larry-bg-1366x768.png
  41. ${web_home}/gentoo-larry-bg/gentoo-larry-bg-1440x900.png
  42. ${web_home}/gentoo-larry-bg/gentoo-larry-bg-1600x900.png
  43. ${web_home}/gentoo-larry-bg/gentoo-larry-bg-1600x1200.png
  44. ${web_home}/gentoo-larry-bg/gentoo-larry-bg-1680x1050.png
  45. ${web_home}/gentoo-larry-bg/gentoo-larry-bg-1920x1080.png
  46. ${web_home}/gentoo-larry-bg/gentoo-larry-bg-1920x1200.png
  47. "
  48. LICENSE="CC-BY-SA-2.5"
  49. SLOT="0"
  50. KEYWORDS="amd64 x86"
  51. IUSE=""
  52. S="${WORKDIR}"
  53. RESTRICT="mirror" # TODO make a tarball, instead?
  54. src_unpack() { :; }
  55. src_install() {
  56. local backdrops='/usr/share/xfce4/backdrops'
  57. local share_home='backgrounds/larry-the-cow'
  58. insinto /usr/share/${share_home}/
  59. ( cd "${DISTDIR}" && doins ${A} ) || die
  60. # Integrate with KDE 4
  61. dosym ../${share_home} /usr/share/wallpapers/larry-the-cow || die
  62. # Integrate with XFCE 4
  63. dodir ${backdrops}/ || die
  64. dosym ../../${share_home}/gentoo-abducted-1600x1200.png ${backdrops}/gentoo-abducted-4:3.png || die
  65. dosym ../../${share_home}/gentoo-abducted-1280x1024.png ${backdrops}/gentoo-abducted-5:4.png || die
  66. dosym ../../${share_home}/gentoo-abducted-1680x1050.png ${backdrops}/gentoo-abducted-8:5.png || die
  67. dosym ../../${share_home}/gentoo-cow-gdm-remake-1600x1200.png ${backdrops}/gentoo-cow-gdm-remake-4:3.png || die
  68. dosym ../../${share_home}/gentoo-cow-gdm-remake-1280x1024.png ${backdrops}/gentoo-cow-gdm-remake-5:4.png || die
  69. dosym ../../${share_home}/gentoo-cow-gdm-remake-1680x1050.png ${backdrops}/gentoo-cow-gdm-remake-8:5.png || die
  70. for ratio in 4-3 5-4 16-9 16-10 ; do
  71. dosym ../../${share_home}/gentoo-larry-bg-${ratio}.svg ${backdrops}/gentoo-larry-bg-${ratio/-/:}.svg || die
  72. done
  73. }