aseprite-1.1.6.ebuild 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit cmake-utils eutils flag-o-matic
  5. DESCRIPTION="Animated sprite editor & pixel art tool"
  6. HOMEPAGE="http://www.aseprite.org"
  7. SRC_URI="https://github.com/aseprite/aseprite/releases/download/v${PV}/Aseprite-v${PV}-Source.zip"
  8. # See https://github.com/aseprite/aseprite#credits
  9. # Some bundled third-party packages built-in:
  10. # gtest duktape modp_b64 simpleini
  11. LICENSE="BSD GPL-2 MIT"
  12. SLOT="0"
  13. KEYWORDS="amd64 x86"
  14. IUSE="debug kde gtk3 test webp"
  15. RDEPEND="dev-libs/tinyxml
  16. media-libs/allegro:0[X,png]
  17. media-libs/freetype
  18. media-libs/giflib:=
  19. webp? ( media-libs/libwebp )
  20. media-libs/libpng:0=
  21. net-misc/curl
  22. sys-libs/zlib
  23. virtual/jpeg:0
  24. x11-libs/libX11
  25. x11-libs/pixman
  26. gtk3? ( dev-cpp/gtkmm:3.0 )
  27. kde? (
  28. dev-qt/qtcore:5
  29. kde-frameworks/kio:5 )"
  30. DEPEND="${RDEPEND}
  31. app-arch/unzip
  32. gtk3? ( virtual/pkgconfig )
  33. webp? ( virtual/pkgconfig )"
  34. DOCS=( docs/files/ase.txt
  35. docs/files/fli.txt
  36. docs/files/msk.txt
  37. docs/files/pic.txt
  38. docs/files/picpro.txt
  39. README.md )
  40. S="${WORKDIR}"
  41. src_prepare() {
  42. cmake-utils_src_prepare
  43. # Fix to make flag-o-matic work.
  44. if use debug ; then
  45. sed -i '/-DNDEBUG/d' CMakeLists.txt || die
  46. fi
  47. # Fix shebang in thumbnailer
  48. sed -i -e 's:#!/usr/bin/sh:#!/bin/sh:' desktop/aseprite-thumbnailer || die
  49. }
  50. src_configure() {
  51. use debug && append-cppflags -DDEBUGMODE -D_DEBUG
  52. local mycmakeargs=(
  53. -DENABLE_UPDATER=OFF
  54. -DFULLSCREEN_PLATFORM=ON
  55. -DUSE_SHARED_ALLEGRO4=ON
  56. -DUSE_SHARED_CURL=ON
  57. -DUSE_SHARED_FREETYPE=ON
  58. -DUSE_SHARED_GIFLIB=ON
  59. -DUSE_SHARED_JPEGLIB=ON
  60. -DUSE_SHARED_LIBLOADPNG=ON
  61. -DUSE_SHARED_LIBPNG=ON
  62. -DUSE_SHARED_PIXMAN=ON
  63. -DUSE_SHARED_TINYXML=ON
  64. -DUSE_SHARED_ZLIB=ON
  65. -DUSE_SHARED_LIBWEBP=ON
  66. -DWITH_DESKTOP_INTEGRATION=ON
  67. -DWITH_GTK_FILE_DIALOG_SUPPORT="$(usex gtk3)"
  68. -DWITH_QT_THUMBNAILER="$(usex kde)"
  69. -DWITH_WEBP_SUPPORT="$(usex webp)"
  70. -DENABLE_TESTS="$(usex test)"
  71. -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
  72. )
  73. cmake-utils_src_configure
  74. }
  75. src_install() {
  76. newicon "${S}/data/icons/ase64.png" "${PN}.png"
  77. cmake-utils_src_install
  78. }