summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Mayo <aklhfex@gmail.com>2020-01-04 19:52:06 +0000
committerJoonas Niilola <juippis@gentoo.org>2020-01-05 12:09:43 +0200
commitf06d48ccb081edaf233e3cacc67fe08e6c328cad (patch)
treea2e824d2a25b549899e1f324f273ba7def4b3c14 /media-gfx
parentruby-ng.eclass: Include (-) in RUBY_TARGETS USE-dependencies (diff)
downloadgentoo-f06d48ccb081edaf233e3cacc67fe08e6c328cad.tar.gz
gentoo-f06d48ccb081edaf233e3cacc67fe08e6c328cad.tar.bz2
gentoo-f06d48ccb081edaf233e3cacc67fe08e6c328cad.zip
media-gfx/gnofract4d: version bump to 4.0.1_p1
New help and video USE flags. Closes: https://bugs.gentoo.org/665576 Package-Manager: Portage-2.3.79, Repoman-2.3.16 Signed-off-by: Chris Mayo <aklhfex@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/9640 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/gnofract4d/Manifest1
-rw-r--r--media-gfx/gnofract4d/gnofract4d-4.0.1_p1.ebuild64
-rw-r--r--media-gfx/gnofract4d/metadata.xml5
3 files changed, 69 insertions, 1 deletions
diff --git a/media-gfx/gnofract4d/Manifest b/media-gfx/gnofract4d/Manifest
index 4051e8f4c6c3..4ca01c42501b 100644
--- a/media-gfx/gnofract4d/Manifest
+++ b/media-gfx/gnofract4d/Manifest
@@ -1,2 +1,3 @@
DIST gnofract4d-3.14.1.tar.gz 4660808 BLAKE2B f5125be0414b847f506686734e9234c3d88732be6f7cd0feb9cbe759d6e0584f8ce143d64de17a5fcca9b28d75ae922e00993140f0ccb793d10faadb3221b990 SHA512 bcec1d12c589cdee2f0da5555a075db511debd21d4536db66793f6a28be35656258daffd8cbaaff4b5af041b18ca77c94d910ec4d0c7e14960412c580fd56725
DIST gnofract4d-3.14.tar.gz 862499 BLAKE2B dcca058b6a625b4d2f0153f896ed029b27b8e6135a310942c4b58bf5a6396977f5ca065061918e99034b6303a5634c5288cac90c887a8dfa87286d24f9f1d04f SHA512 cf3614f60a43f7ab20208fb1a62d3823495c84060d177d2926bad20a475e661d7ec45a7bc14e826229656027fe7c0f68aac093b6b0dc7912e84d8d8ec8ff81e5
+DIST gnofract4d-4.0.1_p1.tar.gz 7638038 BLAKE2B c12bade5f219d2d41dc50569c0df315273b0c2a0a6a40543f48f3e4cb766512ed18b979463574db65ac443b1a8dffbcc1f3c9dc04d7c6b89881fdfcfce95c41c SHA512 d7f3a081b3681866d2da911eedab6ec74f22f36d5175a85f93751519e96971cf147b99ddcda32c597283b39e9da4f0fc6a8843331334a18efa3bf459cfd00af5
diff --git a/media-gfx/gnofract4d/gnofract4d-4.0.1_p1.ebuild b/media-gfx/gnofract4d/gnofract4d-4.0.1_p1.ebuild
new file mode 100644
index 000000000000..b4044c6aed21
--- /dev/null
+++ b/media-gfx/gnofract4d/gnofract4d-4.0.1_p1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+DISTUTILS_SINGLE_IMPL=1
+DISTUTILS_USE_SETUPTOOLS=no
+
+inherit distutils-r1 virtualx xdg
+
+COMMIT=bd600c20921afff7b02fc0a76ab79242ebd0896d
+
+DESCRIPTION="A program for drawing beautiful mathematically-based images known as fractals"
+HOMEPAGE="http://edyoung.github.io/gnofract4d/"
+SRC_URI="https://github.com/edyoung/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+help video"
+REQUIRED_USE="test? ( help )"
+
+COMMON_DEPEND="
+ media-libs/libpng:0=
+ virtual/jpeg:0"
+RDEPEND="${COMMON_DEPEND}
+ dev-python/pycairo[${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ x11-libs/gtk+:3[introspection]
+ video? ( media-video/ffmpeg[vpx,zlib] )"
+BDEPEND="virtual/pkgconfig"
+DEPEND="${COMMON_DEPEND}
+ help? ( app-text/docbook-xsl-stylesheets
+ dev-python/pygobject[${PYTHON_USEDEP}]
+ dev-libs/libxslt
+ x11-libs/gtk+:3[introspection] )"
+
+distutils_enable_tests pytest
+
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+src_prepare() {
+ distutils-r1_src_prepare
+}
+
+python_test() {
+ virtx pytest fract4d fract4dgui test.py || die
+}
+
+python_compile_all() {
+ if use help; then
+ ln -s "${BUILD_DIR}"/lib/fract4d/*.so fract4d/ || die
+ "${EPYTHON}" createdocs.py || die
+ fi
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+ rm -r "${ED}"/usr/share/doc/${PN} || die
+ if ! use help; then
+ rm -r "${ED}"/usr/share/gnome/help/${PN} || die
+ fi
+}
diff --git a/media-gfx/gnofract4d/metadata.xml b/media-gfx/gnofract4d/metadata.xml
index fb2b6be847f0..9d262e8792a0 100644
--- a/media-gfx/gnofract4d/metadata.xml
+++ b/media-gfx/gnofract4d/metadata.xml
@@ -6,7 +6,10 @@
<name>Gentoo Graphics Project</name>
</maintainer>
<upstream>
- <remote-id type="sourceforge">gnofract4d</remote-id>
<remote-id type="github">edyoung/gnofract4d</remote-id>
</upstream>
+ <use>
+ <flag name="help">Install user manual</flag>
+ <flag name="video">Support creation of videos</flag>
+ </use>
</pkgmetadata>