diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-03-20 00:40:44 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-03-20 00:40:44 +0000 |
commit | 4cbcc855382a06088e2f016f62cafdbcb7e40665 (patch) | |
tree | 356496503d52354aa6d9f2d36126302fed5f3a73 /media-gfx/pencil/pencil-0.6.6-r1.ebuild | |
parent | fcc5224904648a8e6eb528d7603154160a20022f (diff) |
gentoo resync : 20.03.2022
Diffstat (limited to 'media-gfx/pencil/pencil-0.6.6-r1.ebuild')
-rw-r--r-- | media-gfx/pencil/pencil-0.6.6-r1.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/media-gfx/pencil/pencil-0.6.6-r1.ebuild b/media-gfx/pencil/pencil-0.6.6-r1.ebuild new file mode 100644 index 000000000000..5eb1e6e06838 --- /dev/null +++ b/media-gfx/pencil/pencil-0.6.6-r1.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit qmake-utils xdg-utils + +DESCRIPTION="2D animation and drawing program based on Qt5" +HOMEPAGE="https://www.pencil2d.org/" +SRC_URI="https://github.com/pencil2d/${PN}/archive/v${PV/_/-}.tar.gz -> ${P}.tar.gz + https://raw.githubusercontent.com/pencil2d/pencil/617c8868fd27ce540de285ff75c8946fba0c975b/tests/src/catch.hpp" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtmultimedia:5 + dev-qt/qtnetwork:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 +" +DEPEND="${RDEPEND} + test? ( dev-qt/qttest:5 ) +" + +S="${WORKDIR}/${P/_/-}" + +src_prepare() { + cp "${DISTDIR}"/catch.hpp tests/src/ + default + sed -e "/^QT/s/xmlpatterns //" \ + -i core_lib/core_lib.pro tests/tests.pro || die +} + +src_configure() { + eqmake5 PREFIX=/usr $(usex test "" "CONFIG+=NO_TESTS") +} + +src_install() { + einstalldocs + emake INSTALL_ROOT="${D}" install + # TODO: Install l10n files +} + +pkg_postinst() { + xdg_mimeinfo_database_update + xdg_desktop_database_update +} |