logo

overlay

My (experimental) gentoo overlay
commit: 3ae98d54d6330a9c949c901f2532718c8dc63f5c
parent: 139e01b002f5645c96dbc53e9e767550f42b06be
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri,  5 Jan 2018 00:04:29 +0100

media-gfx/opentoonz: Init

Diffstat:

Amedia-gfx/opentoonz/Manifest1+
Amedia-gfx/opentoonz/metadata.xml8++++++++
Amedia-gfx/opentoonz/opentoonz-1.2.0.ebuild84+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 93 insertions(+), 0 deletions(-)

diff --git a/media-gfx/opentoonz/Manifest b/media-gfx/opentoonz/Manifest @@ -0,0 +1 @@ +DIST opentoonz-1.2.0.tar.gz 39754153 SHA256 8aca2f257f07d4a5037ed9ccc2d007f941b7813a7ec6ca92c0e2ae21a43f8c96 SHA512 570bed74ba7ff5c3efdcd6f7bd6229d94c1bf8ffba3b6324229ed4c7c30438a628608b7aed898b7d987ee29589eb9bdd6f8667e4f26e6b44d6ca330832f038f9 WHIRLPOOL d0b7a861469587c6c3e9ffbcf88d5b12e40473b7fc738e661b9417f19b1e73994519079adab732d065ed9b3a28e63566d4cc5da27816e9ca36e1d6ace96e4020 diff --git a/media-gfx/opentoonz/metadata.xml b/media-gfx/opentoonz/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>contact@hacktivis.me</email> + <name>Haelwenn (lanodan) Monnier</name> +</maintainer> +</pkgmetadata> diff --git a/media-gfx/opentoonz/opentoonz-1.2.0.ebuild b/media-gfx/opentoonz/opentoonz-1.2.0.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +DESCRIPTION="An open-source full-featured 2D animation creation software" +HOMEPAGE="https://opentoonz.github.io/" +SRC_URI="https://github.com/opentoonz/opentoonz/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD CC0-1.0 libtiff" +SLOT="0" +KEYWORDS="~amd64 ~x86" +#IUSE="system-lzo system-superlu" +IUSE="" + +RDEPEND=" + >=dev-libs/boost-1.55.0:= + dev-libs/lzo:2= + dev-qt/linguist-tools:5 + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtmultimedia:5[widgets] + dev-qt/qtnetwork:5 + dev-qt/qtopengl:5 + dev-qt/qtprintsupport:5 + dev-qt/qtscript:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + media-libs/freeglut:= + media-libs/freetype:2= + media-libs/glew:= + media-libs/libmypaint + media-libs/libpng:= + media-libs/libsdl2:= + sci-libs/superlu:= + virtual/libusb:1= +" +DEPEND="${RDEPEND}" + +CMAKE_USE_DIR="${S}"/toonz/sources + +src_configure() { + local mycmakeargs=( + -DTIFF_LIBRARY="${S}/thirdparty/tiff-4.0.3/libtiff/.libs/libtiff.a" + -DWITH_SYSTEM_LZO=ON + -DWITH_SYSTEM_SUPERLU=ON + -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 + -DCMAKE_SKIP_RPATH=ON + cd thirdparty/tiff-4.0.3 || die + econf \ + --with-pic \ + --disable-jbig \ + --enable-static \ + --disable-shared + + cmake-utils_src_configure +} + +src_compile() { + cd "${S}"/thirdparty/tiff-4.0.3 || die + emake + + cmake-utils_src_compile +} + +pkg_postinst() { + elog "It is supposedly optional but some files are" + elog "actually required to run the executable properly." + elog + elog "The .config/OpenToonz/ directory in your home folder" + elog "will contain your settings, work and other files." + elog + elog "We need to create it from the command-line:" + elog + elog "$ mkdir -p \$HOME/.config/OpenToonz" + elog "$ cp -r /usr/share/opentoonz/stuff/ \$HOME/.config/OpenToonz/" +}