diff options
author | Tom Wijsman <tomwij@gentoo.org> | 2013-02-07 00:45:59 +0000 |
---|---|---|
committer | Tom Wijsman <tomwij@gentoo.org> | 2013-02-07 00:45:59 +0000 |
commit | 9c1aa7184dac574c1feed2a8a5504ef7668b9eee (patch) | |
tree | e011718c3e7115dffabf82fb459e83296d97ea53 /dev-games | |
parent | Add loongson2f USE flag, bug 431422. (diff) | |
download | gentoo-2-9c1aa7184dac574c1feed2a8a5504ef7668b9eee.tar.gz gentoo-2-9c1aa7184dac574c1feed2a8a5504ef7668b9eee.tar.bz2 gentoo-2-9c1aa7184dac574c1feed2a8a5504ef7668b9eee.zip |
New ebuild for aseprite. Thanks to hwoarang, pinkbyte, hasufell, ssuominen and mr-bones for proof-reading my first contribution. Fixes bug #445814.
(Portage version: 2.1.11.50/cvs/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'dev-games')
-rw-r--r-- | dev-games/aseprite/ChangeLog | 11 | ||||
-rw-r--r-- | dev-games/aseprite/Manifest | 5 | ||||
-rw-r--r-- | dev-games/aseprite/aseprite-0.9.5.ebuild | 97 | ||||
-rw-r--r-- | dev-games/aseprite/aseprite-9999.ebuild | 95 | ||||
-rw-r--r-- | dev-games/aseprite/files/aseprite-0.9.5-as-needed.patch | 38 | ||||
-rw-r--r-- | dev-games/aseprite/metadata.xml | 15 |
6 files changed, 261 insertions, 0 deletions
diff --git a/dev-games/aseprite/ChangeLog b/dev-games/aseprite/ChangeLog new file mode 100644 index 000000000000..ccc38ce7b33a --- /dev/null +++ b/dev-games/aseprite/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-games/aseprite +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-games/aseprite/ChangeLog,v 1.1 2013/02/07 00:45:59 tomwij Exp $ + +*aseprite-0.9.5 (07 Feb 2013) +*aseprite-9999 (07 Feb 2013) + + 07 Feb 2013; Tom Wijsman <TomWij@gentoo.org> +aseprite-0.9.5.ebuild, + +aseprite-9999.ebuild, +files/aseprite-0.9.5-as-needed.patch, +metadata.xml: + New ebuild for aseprite. Thanks to hwoarang, pinkbyte, hasufell, ssuominen and + mr-bones for proof-reading my first contribution. Fixes bug #445814. diff --git a/dev-games/aseprite/Manifest b/dev-games/aseprite/Manifest new file mode 100644 index 000000000000..950e81e28bee --- /dev/null +++ b/dev-games/aseprite/Manifest @@ -0,0 +1,5 @@ +AUX aseprite-0.9.5-as-needed.patch 1119 SHA256 cee86f85a9baffa6f85cd22c096f14271dc6b2f8589e8958d0a93128e7c013c2 SHA512 d8b986cb5dc6f4737453680abee7c2a150aed40df13c807b7b5d1140e3bca7e854ce3c62189d12647933408c2e49e4a85bb3259b1a5964dc93b50e16202547e7 WHIRLPOOL 7b2bbb80c86eb45a202396f5f8f83760eccc3d3a42e47688f8f4c67cf0ee82f8cc7dc665a76fa3bc0bd9a74fadd14af5afc9b1747e258ab61a5a895f6f12a8a1 +DIST aseprite-0.9.5.tar.xz 507744 SHA256 81e0360d9d8a32d6c548775dbacdb1520aac94b54c2d9f1327d52f219737f154 SHA512 fc6df942aefea67fd05e1b688209b70a2d5879a1441f61a6e3ee4d72fcdab4e580e1d4d7392fd493e0a46c45401a3eef759aa3efee17450e4c98df7f310b2d00 WHIRLPOOL 060dcf2754827ab3b30dde55cfcecd25e2d88f6e296b45529737e2194f4a9891d171776d10f9c571890efb9766b64080b85dc3d737102d2ac7be9843d27fdaef +EBUILD aseprite-0.9.5.ebuild 2367 SHA256 f7333476336610909a5c081424e3161b7cacaf4fd83ff534defe03f8f295a69f SHA512 d60528f634bdccd1a9cba29a3b56bf48bbb536115bc05690b3a59c5766b785e71466544cbf5c28e16b5b636799ccc8a3b8be5833bf8b11ae174d915aff6e1bd2 WHIRLPOOL 846939af702abc699b8c6fcc9278a27c4c171e5dae5e88f965d52107a80d34ae9222e55d5dc48a03944cfa8c026cf3389ffb2f4707dfd8a8dcb1b475a6b6ebf1 +EBUILD aseprite-9999.ebuild 2284 SHA256 0c5ef061a4551c23802ea742577b60abc2d1e3c8647ee1cf0495662212b39a58 SHA512 ae96eba7fb70a7d550cd7f9e5267972c8077093a34686d9eab0a93c0e8c0c7e6548460f5ba41fb5f0dd096ec7d17b8a7c50879bf35466c169502d8a7593bde16 WHIRLPOOL d78a06513da5d0f948cb8b04185d245859e0c7939d70d674789b8d8945bf3c913c13c291270648d0611e583d97a99dba25e537c6f32a388c3895be375a162918 +MISC metadata.xml 504 SHA256 7357a7f89e6b651c245acf452decdce035c06a4ecd0a83a102bf3130c0598a48 SHA512 ec2e86e1f008445391a086e50aac0c5c96c36c5f885cae8a5011fd229710847d55c09f5f34aa1abb806f3ec134a4ae8f751d27b6f714cd49f1ea81c4df5997f3 WHIRLPOOL 70e07be609be829c5a09dfb3010461c6fc03e815dcbafb1adfcb90ce67f8cf3c81f777109cbabf99dd6c6234256e3f2641cd8d4f0a52883d419af23682df5386 diff --git a/dev-games/aseprite/aseprite-0.9.5.ebuild b/dev-games/aseprite/aseprite-0.9.5.ebuild new file mode 100644 index 000000000000..9a7075bada6f --- /dev/null +++ b/dev-games/aseprite/aseprite-0.9.5.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-games/aseprite/aseprite-0.9.5.ebuild,v 1.1 2013/02/07 00:45:59 tomwij Exp $ + +EAPI=5 + +inherit cmake-utils flag-o-matic + +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 FTL" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="debug memleak static test" + +RDEPEND="dev-libs/tinyxml + media-libs/allegro:0[X,png] + media-libs/giflib + media-libs/libpng:0 + net-misc/curl + sys-libs/zlib + virtual/jpeg + x11-libs/libX11" +DEPEND="${RDEPEND} + test? ( dev-cpp/gtest )" + +PATCHES=( "${FILESDIR}"/aseprite-0.9.5-as-needed.patch ) + +DOCS=( docs/quickref.odt + docs/files/ase.txt + docs/files/fli.txt + docs/files/msk.txt + docs/files/pic.txt + docs/files/picpro.txt ) + +src_prepare() { + base_src_prepare + + # Fix to make flag-o-matic work. + if use debug ; then + sed -i '/-DNDEBUG/d' CMakeLists.txt || die + fi + + # Only do a static link with Allegro if the user explicitly wants it. + if ! use static ; then + sed -i '/-DALLEGRO_STATICLINK/d' CMakeLists.txt || die + fi + + # Remove long compiling tests for users with FEATURES="-test", + # also removes the gtest dependency from the build. + if ! use test ; then + sed -i '/^find_unittests/d' src/CMakeLists.txt || die + sed -i '/include_directories(.*third_party\/gtest.*)/d' src/CMakeLists.txt || die + sed -i '/add_subdirectory(gtest)/d' third_party/CMakeLists.txt || die + fi +} + +src_configure() { + use debug && append-cppflags -DDEBUGMODE -D_DEBUG + + local mycmakeargs + + mycmakeargs=( + -DENABLE_UPDATER=OFF + -DUSE_SHARED_ALLEGRO4=ON + -DUSE_SHARED_CURL=ON + -DUSE_SHARED_GIFLIB=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 STATIC_LIBC) + ) + + if use test ; then + mycmakeargs+=( + -DUSE_SHARED_GTEST=ON + ) + fi + + 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\`" +} diff --git a/dev-games/aseprite/aseprite-9999.ebuild b/dev-games/aseprite/aseprite-9999.ebuild new file mode 100644 index 000000000000..724cc8cc378c --- /dev/null +++ b/dev-games/aseprite/aseprite-9999.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-games/aseprite/aseprite-9999.ebuild,v 1.1 2013/02/07 00:45:59 tomwij Exp $ + +EAPI=5 + +inherit cmake-utils flag-o-matic git-2 + +DESCRIPTION="Animated sprite editor & pixel art tool" +HOMEPAGE="http://www.aseprite.org" +EGIT_REPO_URI="git://github.com/dacap/${PN}.git" + +LICENSE="GPL-2 FTL" +SLOT="0" +KEYWORDS="" + +IUSE="debug memleak static test" + +RDEPEND="dev-libs/tinyxml + media-libs/allegro:0[X,png] + media-libs/giflib + media-libs/libpng:0 + net-misc/curl + sys-libs/zlib + virtual/jpeg + x11-libs/libX11" +DEPEND="${RDEPEND} + test? ( dev-cpp/gtest )" + +DOCS=( docs/quickref.odt + docs/files/ase.txt + docs/files/fli.txt + docs/files/msk.txt + docs/files/pic.txt + docs/files/picpro.txt ) + +src_prepare() { + base_src_prepare + + # Fix to make flag-o-matic work. + if use debug ; then + sed -i '/-DNDEBUG/d' CMakeLists.txt || die + fi + + # Only do a static link with Allegro if the user explicitly wants it. + if ! use static ; then + sed -i '/-DALLEGRO_STATICLINK/d' CMakeLists.txt || die + fi + + # Remove long compiling tests for users with FEATURES="-test", + # also removes the gtest dependency from the build. + if ! use test ; then + sed -i '/^find_unittests/d' src/CMakeLists.txt || die + sed -i '/include_directories(.*third_party\/gtest.*)/d' src/CMakeLists.txt || die + sed -i '/add_subdirectory(gtest)/d' third_party/CMakeLists.txt || die + fi +} + +src_configure() { + use debug && append-cppflags -DDEBUGMODE -D_DEBUG + + local mycmakeargs + + mycmakeargs=( + -DENABLE_UPDATER=OFF + -DUSE_SHARED_ALLEGRO4=ON + -DUSE_SHARED_CURL=ON + -DUSE_SHARED_GIFLIB=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 STATIC_LIBC) + ) + + if use test ; then + mycmakeargs+=( + -DUSE_SHARED_GTEST=ON + ) + fi + + 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\`" +} diff --git a/dev-games/aseprite/files/aseprite-0.9.5-as-needed.patch b/dev-games/aseprite/files/aseprite-0.9.5-as-needed.patch new file mode 100644 index 000000000000..9f50c25979ba --- /dev/null +++ b/dev-games/aseprite/files/aseprite-0.9.5-as-needed.patch @@ -0,0 +1,38 @@ +Description: fix FTBFS with --as-needed linker option + Libraries must be placed after object files in command line. +Author: Ilya Barygin <randomaction@ubuntu.com> + +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -135,6 +135,10 @@ + # All libraries for .exe files + set(all_libs ${aseprite_libraries} ${libs3rdparty} ${sys_libs}) + ++if(LIBALLEGRO4_LINK_FLAGS) ++ set(all_libs ${all_libs} ${LIBALLEGRO4_LINK_FLAGS}) ++endif() ++ + ###################################################################### + # ASEPRITE libraries + +@@ -405,10 +409,6 @@ + + add_executable(aseprite WIN32 main.cpp ${win32_resources} ${x11_resources}) + target_link_libraries(aseprite ${all_libs}) +-if(LIBALLEGRO4_LINK_FLAGS) +- set_target_properties(aseprite +- PROPERTIES LINK_FLAGS ${LIBALLEGRO4_LINK_FLAGS}) +-endif() + + install(TARGETS aseprite + RUNTIME DESTINATION bin) +@@ -450,8 +450,7 @@ + endif() + + if(LIBALLEGRO4_LINK_FLAGS) +- set_target_properties(${testname} +- PROPERTIES LINK_FLAGS ${LIBALLEGRO4_LINK_FLAGS}) ++ target_link_libraries(${testname} ${LIBALLEGRO4_LINK_FLAGS}) + endif() + + if(extra_definitions) diff --git a/dev-games/aseprite/metadata.xml b/dev-games/aseprite/metadata.xml new file mode 100644 index 000000000000..77c443176702 --- /dev/null +++ b/dev-games/aseprite/metadata.xml @@ -0,0 +1,15 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>TomWij@gentoo.org</email> + <name>Tom Wijsman</name> + </maintainer> + <longdescription> + Animated sprite editor and pixel art tool + </longdescription> + <use> + <flag name="memleak">Enable memory-leaks detector (only for developers)</flag> + <flag name="static">Link against static version of C and C++ runtimes</flag> + </use> +</pkgmetadata> |