# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 inherit cmake-utils DESCRIPTION="Animated sprite editor & pixel art tool" HOMEPAGE="http://www.aseprite.org" SRC_URI="http://aseprite.googlecode.com/files/aseprite-${PV}.tar.xz" LICENSE="GPL-2" SLOT="0" KEYWORDS="-* ~amd64 ~x86" IUSE="static-libs -memleak" PATCHES=( ${FILESDIR}/aseprite-0.9.5-as-needed.patch ) DEPEND="dev-cpp/gtest dev-libs/tinyxml media-libs/allegro:0 media-libs/giflib media-libs/libpng:0 net-misc/curl sys-libs/zlib virtual/jpeg" RDEPEND="${DEPEND}" src_configure() { local mycmakeargs="-DENABLE_UPDATER=OFF -DUSE_SHARED_ALLEGRO4=ON -DUSE_SHARED_CURL=ON -DUSE_SHARED_GIFLIB=ON -DUSE_SHARED_GTEST=ON -DUSE_SHARED_JPEGLIB=ON -DUSE_SHARED_LIBLOADPNG=ON -DUSE_SHARED_LIBPNG=ON -DUSE_SHARED_TINYXML=ON -DUSE_SHARED_ZLIB=ON -DFULLSCREEN_PLATFORM=ON $(cmake-utils_use_enable memleak) $(cmake-utils_use_use static-libs STATIC_LIBC)" cmake-utils_src_configure } pkg_postinst() { elog "Warning: aseprite might not choose the resolution correctly; so, you might need" elog " to change the resolution once using the -resolution WxH[xBPP] argument." elog "" elog " On subsequent runs, aseprite will remember the resolution you have set." elog "" elog " For example: \`aseprite -resolution 1440x900\` when you have Full HD." }