diff options
Diffstat (limited to 'dev-games/aseprite')
-rw-r--r-- | dev-games/aseprite/Manifest | 8 | ||||
-rw-r--r-- | dev-games/aseprite/aseprite-1.1.6.ebuild | 91 | ||||
-rw-r--r-- | dev-games/aseprite/aseprite-1.1.7.ebuild | 101 | ||||
-rw-r--r-- | dev-games/aseprite/files/aseprite-1.1.7_type-punned_pointer.patch | 28 | ||||
-rw-r--r-- | dev-games/aseprite/metadata.xml | 23 |
5 files changed, 251 insertions, 0 deletions
diff --git a/dev-games/aseprite/Manifest b/dev-games/aseprite/Manifest new file mode 100644 index 000000000000..d9d8cfe5ac05 --- /dev/null +++ b/dev-games/aseprite/Manifest @@ -0,0 +1,8 @@ +AUX aseprite-1.1.7_type-punned_pointer.patch 836 SHA256 b5cc09692578f9b5eca53efedf2a75832d5c076b687d4be71c1f9464f2a65647 SHA512 c01ca8dc6bcee6276f3f4c7f7f141d8528372f0cbbb33c036b89ba64e639966d9b9955a78ec917ef7ebeda2148abc817bc4df7c1fe02818734f51cd7452df9ca WHIRLPOOL 0ccf2f2a3d04b2fc8a558da3e60775c173d2fed04dfd717791d2fdb0755e7de0fd2b261a6b070cc6c5063e8ae598a27e0c9023c11622a519df565f02dc6fd0c9 +DIST Aseprite-v1.1.6-Source.zip 11801981 SHA256 259c6418d5bc48a04f63a27f4a8c5a0aa44ce759403ba976ebbfad293eab08e8 SHA512 d87bcc5ece64cbc772ea5d4dc1edf29943d9038221905c0263511852afbb4e9119ce82468502a78c286729bb91389d08e3a8b7f358e4f6f8fe88507e7e69c9ac WHIRLPOOL 8f9168551be29d8c453fc1db27930a87e8228081b837c8c1a608045acdb7968715a8eb3994e04df83288f1fb12c5744f2bbb6c0733e578dd20bc4c4a2a234801 +DIST Aseprite-v1.1.7-Source.zip 11801711 SHA256 7b5b42d301fc37d3b62a50432a0fbff1483857b8f1829bb6fdac3b1a22d19ade SHA512 9a92853042c7de567a7eb33d10ddd38c6d6bd53acfe4b93dc96e11408a7bda39ef7503c159934c483f0455700933c541dfdc0cb4c505d3385778e40686e474e6 WHIRLPOOL 09097fe4784395370c7d8e1af7ee921943e0798c8e0853fdc6491f2daa0e80e1cf6e637041972a05abcfe687581ab1d2d72f99696def6ddbd69e2b8c1220db5e +EBUILD aseprite-1.1.6.ebuild 2137 SHA256 81b10c75a468fbc6e36a40a8f21949f89fb835910d349d4fdee96ed36e3c7859 SHA512 41724723ae7a318ceff10178795709cfc2c9b8bc87836c02404f5af3ff03a5cdbc204ace11ca81f3699b649bdfda7471b4692eb6f1f3a6bf324965fd075a696f WHIRLPOOL 63a1b99f7100f998c20806f426093d282487288566dbdfcfdcad47abab2f5f3cd22d15b2750d10a582f3c7f067fe23768a7ffe2c7a77b6c8d54191e6623fc674 +EBUILD aseprite-1.1.7.ebuild 2525 SHA256 3b9386a6f68c62024878e70218d5136d836b9aafcb3703fc3076e9c605a0ceef SHA512 d1fd7b3edcb428398aaeb794442aad5da944ddc03cc0a31ea5fc74bbe2fb9acce5f58b628b9789cbeb9fed54682336a5e4805d907d99e7ae9658b593d13442c9 WHIRLPOOL 58370b929d2e92648ebdb46589c7cf77634a069e2be1a1953b64cea0d498fccea03c8a1359cd5af0e034cc39b94e824a9ad68d126ced86a86749923a08595976 +MISC ChangeLog 7473 SHA256 8a348e269638e9cfad3bbc73a5b437e49024b60f63ef9323d4e7e9231365d41d SHA512 2123cb25595151d3b276de9138193ef0c61e8b45d904e36a8b0bcbf4c9c01e5e572b0dc02c962cfdb092a2a0436e755ffdab47f333c257910323787523ab09b5 WHIRLPOOL 65e2c5a12d69d95d21a6ce58cf3e78cc322400f7d30cfccbf2cc1d835c7c184ba4416a79f636d27aae094fe65a11a4e6a0e2fe83941bffed53d41ff21d2ba8b7 +MISC ChangeLog-2015 2153 SHA256 584b9accdef10dcd89025aa62391866b9df0b9157312f572ac2c9c14c0411ea3 SHA512 9da3a31f2c3f213f9a76c236fd44606c416cf73ac5906250c754c1dd511ab287e0adc6cbfe1f428a577bb13c5a3bf9224c1c260e29782d7c8e880b5b472bbb56 WHIRLPOOL 1a4e2410a57a658b6fbb3406c3b49bc233ae314e48b4204488c0de4205a9986e2a3025996eebd7df25a655eb731a127c0fc7c0432a5576a2ff44dfe3c1bfa7eb +MISC metadata.xml 818 SHA256 4218468886c828ada32a4552ae0435fad6d793442a27509aeb2ec89d4f4fd06b SHA512 c15ae47493114fdb9a9daf61b9ad938caf5f753ce5f5a9262a462a900ec2972120c693d39b316a7e85fbebf1bcf31e9f5a4346c0a839fe21bbba7345e2ed0b5b WHIRLPOOL f83283275e57d011b8908121168d2d8d5e0f25cce717a7a98f94f43686ad4ec255ec47f52d30b840b1ad3a212ad94636bd6489f9e3ef5eba2a923fedf5ca1558 diff --git a/dev-games/aseprite/aseprite-1.1.6.ebuild b/dev-games/aseprite/aseprite-1.1.6.ebuild new file mode 100644 index 000000000000..1809ebfb3e4a --- /dev/null +++ b/dev-games/aseprite/aseprite-1.1.6.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils eutils flag-o-matic + +DESCRIPTION="Animated sprite editor & pixel art tool" +HOMEPAGE="https://www.aseprite.org" +SRC_URI="https://github.com/aseprite/aseprite/releases/download/v${PV}/Aseprite-v${PV}-Source.zip" + +# See https://github.com/aseprite/aseprite#credits +# Some bundled third-party packages built-in: +# gtest duktape modp_b64 simpleini +LICENSE="BSD GPL-2 MIT" +SLOT="0" +KEYWORDS="amd64 x86" + +IUSE="debug kde gtk3 test webp" + +RDEPEND="dev-libs/tinyxml + media-libs/allegro:0[X,png] + media-libs/freetype + media-libs/giflib:= + webp? ( media-libs/libwebp ) + media-libs/libpng:0= + net-misc/curl + sys-libs/zlib + virtual/jpeg:0 + x11-libs/libX11 + x11-libs/pixman + gtk3? ( dev-cpp/gtkmm:3.0 ) + kde? ( + dev-qt/qtcore:5 + kde-frameworks/kio:5 )" +DEPEND="${RDEPEND} + app-arch/unzip + gtk3? ( virtual/pkgconfig ) + webp? ( virtual/pkgconfig )" + +DOCS=( docs/files/ase.txt + docs/files/fli.txt + docs/files/msk.txt + docs/files/pic.txt + docs/files/picpro.txt + README.md ) + +S="${WORKDIR}" + +src_prepare() { + cmake-utils_src_prepare + + # Fix to make flag-o-matic work. + if use debug ; then + sed -i '/-DNDEBUG/d' CMakeLists.txt || die + fi + # Fix shebang in thumbnailer + sed -i -e 's:#!/usr/bin/sh:#!/bin/sh:' desktop/aseprite-thumbnailer || die +} + +src_configure() { + use debug && append-cppflags -DDEBUGMODE -D_DEBUG + + local mycmakeargs=( + -DENABLE_UPDATER=OFF + -DFULLSCREEN_PLATFORM=ON + -DUSE_SHARED_ALLEGRO4=ON + -DUSE_SHARED_CURL=ON + -DUSE_SHARED_FREETYPE=ON + -DUSE_SHARED_GIFLIB=ON + -DUSE_SHARED_JPEGLIB=ON + -DUSE_SHARED_LIBLOADPNG=ON + -DUSE_SHARED_LIBPNG=ON + -DUSE_SHARED_PIXMAN=ON + -DUSE_SHARED_TINYXML=ON + -DUSE_SHARED_ZLIB=ON + -DUSE_SHARED_LIBWEBP=ON + -DWITH_DESKTOP_INTEGRATION=ON + -DWITH_GTK_FILE_DIALOG_SUPPORT="$(usex gtk3)" + -DWITH_QT_THUMBNAILER="$(usex kde)" + -DWITH_WEBP_SUPPORT="$(usex webp)" + -DENABLE_TESTS="$(usex test)" + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON + ) + cmake-utils_src_configure +} + +src_install() { + newicon "${S}/data/icons/ase64.png" "${PN}.png" + cmake-utils_src_install +} diff --git a/dev-games/aseprite/aseprite-1.1.7.ebuild b/dev-games/aseprite/aseprite-1.1.7.ebuild new file mode 100644 index 000000000000..bba4ca73d864 --- /dev/null +++ b/dev-games/aseprite/aseprite-1.1.7.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils eutils flag-o-matic + +DESCRIPTION="Animated sprite editor & pixel art tool" +HOMEPAGE="https://www.aseprite.org" +SRC_URI="https://github.com/aseprite/aseprite/releases/download/v${PV}/Aseprite-v${PV}-Source.zip" + +# See https://github.com/aseprite/aseprite#credits +# Some bundled third-party packages built-in: +# gtest duktape modp_b64 simpleini +LICENSE="BSD GPL-2 MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="bundled-libs debug kde gtk3 test webp" + +RDEPEND="dev-libs/tinyxml + !bundled-libs? ( media-libs/allegro:0[X,png] ) + media-libs/freetype + media-libs/giflib:= + webp? ( media-libs/libwebp ) + media-libs/libpng:0= + net-misc/curl + sys-libs/zlib + virtual/jpeg:0 + x11-libs/libX11 + x11-libs/pixman + gtk3? ( dev-cpp/gtkmm:3.0 ) + kde? ( + dev-qt/qtcore:5 + kde-frameworks/kio:5 )" +DEPEND="${RDEPEND} + app-arch/unzip + gtk3? ( virtual/pkgconfig ) + webp? ( virtual/pkgconfig )" + +DOCS=( docs/files/ase.txt + docs/files/fli.txt + docs/files/msk.txt + docs/files/pic.txt + docs/files/picpro.txt + README.md ) + +S="${WORKDIR}" + +PATCHES=( "${FILESDIR}/${P}_type-punned_pointer.patch" ) + +src_prepare() { + cmake-utils_src_prepare + + # Fix to make flag-o-matic work. + if use debug ; then + sed -i '/-DNDEBUG/d' CMakeLists.txt || die + fi + # Fix shebang in thumbnailer + sed -i -e 's:#!/usr/bin/sh:#!/bin/sh:' desktop/aseprite-thumbnailer || die +} + +src_configure() { + use debug && append-cppflags -DDEBUGMODE -D_DEBUG + + local mycmakeargs=( + -DENABLE_UPDATER=OFF + -DFULLSCREEN_PLATFORM=ON + -DUSE_SHARED_ALLEGRO4=$(usex !bundled-libs) + -DUSE_SHARED_CURL=ON + -DUSE_SHARED_FREETYPE=ON + -DUSE_SHARED_GIFLIB=ON + -DUSE_SHARED_JPEGLIB=ON + -DUSE_SHARED_LIBLOADPNG=ON + -DUSE_SHARED_LIBPNG=ON + -DUSE_SHARED_PIXMAN=ON + -DUSE_SHARED_TINYXML=ON + -DUSE_SHARED_ZLIB=ON + -DUSE_SHARED_LIBWEBP=ON + -DWITH_DESKTOP_INTEGRATION=ON + -DWITH_GTK_FILE_DIALOG_SUPPORT="$(usex gtk3)" + -DWITH_QT_THUMBNAILER="$(usex kde)" + -DWITH_WEBP_SUPPORT="$(usex webp)" + -DENABLE_TESTS="$(usex test)" + -DKDE_INSTALL_USE_QT_SYS_PATHS=ON + ) + cmake-utils_src_configure +} + +src_install() { + newicon -s 64 "${S}/data/icons/ase64.png" "${PN}.png" + cmake-utils_src_install +} + +pkg_postinst() { + if use !bundled-libs ; then + ewarn "Aseprite has been built with system-wide Allegro 4." + ewarn "Please note that you will not be able to resize the main window." + ewarn "For resizing support enable USE-flag bundled-libs and rebuild package." + fi +} diff --git a/dev-games/aseprite/files/aseprite-1.1.7_type-punned_pointer.patch b/dev-games/aseprite/files/aseprite-1.1.7_type-punned_pointer.patch new file mode 100644 index 000000000000..ca0921437fc8 --- /dev/null +++ b/dev-games/aseprite/files/aseprite-1.1.7_type-punned_pointer.patch @@ -0,0 +1,28 @@ +diff --git a/src/allegro/src/x/xkeyboard.c b/src/allegro/src/x/xkeyboard.c +index f121e62..86fa4f7 100644 +--- a/src/allegro/src/x/xkeyboard.c ++++ b/src/allegro/src/x/xkeyboard.c +@@ -356,6 +356,14 @@ static int find_unknown_key_assignment (int i) + return _xwin.keycode_to_scancode[i]; + } + ++/* unicode_getc: ++ * Reads a character from a Unicode string. ++ */ ++static int unicode_getc(AL_CONST char *s) ++{ ++ return *((unsigned short *)s); ++} ++ + + + /* _xwin_keyboard_handler: +@@ -412,7 +420,7 @@ void _xwin_keyboard_handler(XKeyEvent *event, int dga2_hack) + } + buffer[len] = '\0'; + uconvert(buffer, U_UTF8, buffer2, U_UNICODE, sizeof buffer2); +- unicode = *(unsigned short *)buffer2; ++ unicode = unicode_getc(buffer2); + + #ifdef ALLEGRO_XWINDOWS_WITH_XIM + r = XFilterEvent((XEvent *)event, _xwin.window); diff --git a/dev-games/aseprite/metadata.xml b/dev-games/aseprite/metadata.xml new file mode 100644 index 000000000000..809c2d3b68a0 --- /dev/null +++ b/dev-games/aseprite/metadata.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>azamat.hackimov@gmail.com</email> + <name>Azamat H. Hackimov</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription> + Animated sprite editor and pixel art tool + </longdescription> + <use> + <flag name="bundled-libs">Use the upstream provided bundled version of allegro 4.4.2</flag> + <flag name="gtk3">Enable support for the experimental native GTK File Dialog</flag> + <flag name="webp">Enable webp image format support</flag> + </use> + <upstream> + <remote-id type="github">aseprite/aseprite</remote-id> + </upstream> +</pkgmetadata> |