From 79b1a202e4641feb402b3cc2a7a006247e863abf Mon Sep 17 00:00:00 2001 From: Ryan Fox Date: Tue, 9 Nov 2021 16:12:09 -0800 Subject: [PATCH] media-gfx/opentoonz: New package Shamelessly stolen from the main tree Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Ryan Fox --- media-gfx/opentoonz/Manifest | 4 ++ media-gfx/opentoonz/metadata.xml | 11 +++ media-gfx/opentoonz/opentoonz-1.5.0.ebuild | 80 ++++++++++++++++++++++ media-gfx/opentoonz/opentoonz-9999.ebuild | 80 ++++++++++++++++++++++ 4 files changed, 175 insertions(+) create mode 100644 media-gfx/opentoonz/Manifest create mode 100644 media-gfx/opentoonz/metadata.xml create mode 100644 media-gfx/opentoonz/opentoonz-1.5.0.ebuild create mode 100644 media-gfx/opentoonz/opentoonz-9999.ebuild diff --git a/media-gfx/opentoonz/Manifest b/media-gfx/opentoonz/Manifest new file mode 100644 index 0000000..8fe25c8 --- /dev/null +++ b/media-gfx/opentoonz/Manifest @@ -0,0 +1,4 @@ +DIST opentoonz-1.5.0.tar.gz 54677708 BLAKE2B 9d12f879e0bcc56219659452af4115b6329a7d9eaf72a9be482fd3153a2ce13a5932741c2917ff4f3108f57cb4bc43d89dec1d3dd80c4d2186c011e5c258f172 SHA512 25566bf2d222290eefd1bdde21cfd970d3a2f775279ceaf2618ef73d470e8a6ff943a347a35b998789ac018262d12e4d0d08133316954e64f4a3593d3dd463b6 +EBUILD opentoonz-1.5.0.ebuild 1816 BLAKE2B a60ced44188b65a2420f5febe7f7616a486f96a0e15abf38e0e56c775f64b9db400ba3ce608bd3b1dc348e7a0f77eb5b2ef7ac9b480854cb88b1cb67a2aaa4f4 SHA512 ed624bbfe5a44069d9c2566cd345270b1fec5e8d95c70c48e73cc3bc90dd61d06dd905f880544b4751cfc642b7e8add42063cbff332a97d184190add04ea10bb +EBUILD opentoonz-9999.ebuild 1816 BLAKE2B a60ced44188b65a2420f5febe7f7616a486f96a0e15abf38e0e56c775f64b9db400ba3ce608bd3b1dc348e7a0f77eb5b2ef7ac9b480854cb88b1cb67a2aaa4f4 SHA512 ed624bbfe5a44069d9c2566cd345270b1fec5e8d95c70c48e73cc3bc90dd61d06dd905f880544b4751cfc642b7e8add42063cbff332a97d184190add04ea10bb +MISC metadata.xml 326 BLAKE2B 5ac38ea95eba8ba264990375974fe08542ad3ad66e4bfe1f8e4fd53467cab642e9dc667f2489c5338a2bbadc2ea2c5e819c8b959f7a3f07359fd5c0b7de4a806 SHA512 8b8d04d1d0d7957bf68b33eb135049792b3bfe9ff0e6c87eed859dc31e510a283efab4120fa52feea90c276a29afc8e5e1e973f14f00a64adc419af554e1f39a diff --git a/media-gfx/opentoonz/metadata.xml b/media-gfx/opentoonz/metadata.xml new file mode 100644 index 0000000..5d77d67 --- /dev/null +++ b/media-gfx/opentoonz/metadata.xml @@ -0,0 +1,11 @@ + + + + + flewkey@2a03.party + Ryan Fox + + + opentoonz/opentoonz + + diff --git a/media-gfx/opentoonz/opentoonz-1.5.0.ebuild b/media-gfx/opentoonz/opentoonz-1.5.0.ebuild new file mode 100644 index 0000000..97d6e10 --- /dev/null +++ b/media-gfx/opentoonz/opentoonz-1.5.0.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake xdg + +if [[ ${PV} != *9999* ]]; then + SRC_URI="https://github.com/opentoonz/opentoonz/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +else + inherit git-r3 + EGIT_REPO_URI="https://github.com/opentoonz/opentoonz.git" +fi + +DESCRIPTION="An open-source full-featured 2D animation creation software" +HOMEPAGE="https://opentoonz.github.io/" +LICENSE="BSD" +SLOT="0" + +DEPEND=" + app-arch/lz4:= + >=dev-libs/boost-1.55.0:= + dev-libs/lzo:2 + >=dev-qt/qtcore-5.9:5 + >=dev-qt/qtgui-5.9:5 + >=dev-qt/qtmultimedia-5.9:5[widgets] + >=dev-qt/qtnetwork-5.9:5 + >=dev-qt/qtopengl-5.9:5 + >=dev-qt/qtprintsupport-5.9:5 + >=dev-qt/qtscript-5.9:5 + >=dev-qt/qtserialport-5.9:5 + >=dev-qt/qtsvg-5.9:5 + >=dev-qt/qtwidgets-5.9:5 + >=dev-qt/qtxml-5.9:5 + media-libs/freeglut + media-libs/freetype:2 + media-libs/glew:= + media-libs/libjpeg-turbo + >=media-libs/libmypaint-1.3.0:= + media-libs/libpng:= + >=sci-libs/superlu-4.1:= + sys-libs/zlib + virtual/cblas + virtual/libusb:1 + virtual/opengl +" +RDEPEND="${DEPEND}" +BDEPEND=" + dev-qt/linguist-tools:5 + virtual/pkgconfig +" + +CMAKE_USE_DIR="${S}/toonz/sources" + +src_configure() { + local mycmakeargs=( + -DTIFF_LIBRARY="${S}/thirdparty/tiff-4.0.3/libtiff/.libs/libtiff.a" + -DSUPERLU_INCLUDE_DIR="${EPREFIX}/usr/include/superlu" + -DLZO_INCLUDE_DIR="${EPREFIX}/usr/include/lzo" + -DCMAKE_SKIP_RPATH=ON + ) + + # The upstream uses their own modified libtiff + # See: https://github.com/opentoonz/opentoonz/blob/master/doc/how_to_build_linux.md#building-libtiff + cd "thirdparty/tiff-4.0.3" || die + econf \ + --with-pic \ + --disable-jbig \ + --enable-static \ + --disable-shared + + cmake_src_configure +} + +src_compile() { + cd "${S}/thirdparty/tiff-4.0.3" || die + emake + cmake_src_compile +} diff --git a/media-gfx/opentoonz/opentoonz-9999.ebuild b/media-gfx/opentoonz/opentoonz-9999.ebuild new file mode 100644 index 0000000..97d6e10 --- /dev/null +++ b/media-gfx/opentoonz/opentoonz-9999.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake xdg + +if [[ ${PV} != *9999* ]]; then + SRC_URI="https://github.com/opentoonz/opentoonz/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +else + inherit git-r3 + EGIT_REPO_URI="https://github.com/opentoonz/opentoonz.git" +fi + +DESCRIPTION="An open-source full-featured 2D animation creation software" +HOMEPAGE="https://opentoonz.github.io/" +LICENSE="BSD" +SLOT="0" + +DEPEND=" + app-arch/lz4:= + >=dev-libs/boost-1.55.0:= + dev-libs/lzo:2 + >=dev-qt/qtcore-5.9:5 + >=dev-qt/qtgui-5.9:5 + >=dev-qt/qtmultimedia-5.9:5[widgets] + >=dev-qt/qtnetwork-5.9:5 + >=dev-qt/qtopengl-5.9:5 + >=dev-qt/qtprintsupport-5.9:5 + >=dev-qt/qtscript-5.9:5 + >=dev-qt/qtserialport-5.9:5 + >=dev-qt/qtsvg-5.9:5 + >=dev-qt/qtwidgets-5.9:5 + >=dev-qt/qtxml-5.9:5 + media-libs/freeglut + media-libs/freetype:2 + media-libs/glew:= + media-libs/libjpeg-turbo + >=media-libs/libmypaint-1.3.0:= + media-libs/libpng:= + >=sci-libs/superlu-4.1:= + sys-libs/zlib + virtual/cblas + virtual/libusb:1 + virtual/opengl +" +RDEPEND="${DEPEND}" +BDEPEND=" + dev-qt/linguist-tools:5 + virtual/pkgconfig +" + +CMAKE_USE_DIR="${S}/toonz/sources" + +src_configure() { + local mycmakeargs=( + -DTIFF_LIBRARY="${S}/thirdparty/tiff-4.0.3/libtiff/.libs/libtiff.a" + -DSUPERLU_INCLUDE_DIR="${EPREFIX}/usr/include/superlu" + -DLZO_INCLUDE_DIR="${EPREFIX}/usr/include/lzo" + -DCMAKE_SKIP_RPATH=ON + ) + + # The upstream uses their own modified libtiff + # See: https://github.com/opentoonz/opentoonz/blob/master/doc/how_to_build_linux.md#building-libtiff + cd "thirdparty/tiff-4.0.3" || die + econf \ + --with-pic \ + --disable-jbig \ + --enable-static \ + --disable-shared + + cmake_src_configure +} + +src_compile() { + cd "${S}/thirdparty/tiff-4.0.3" || die + emake + cmake_src_compile +}