From 6cc2f1b9a5e930e6fb2bec5597b14132e51bd580 Mon Sep 17 00:00:00 2001 From: Chris Mayo Date: Mon, 20 Aug 2018 20:34:56 +0100 Subject: [PATCH] media-gfx/gnofract4d: version bump to 4.0.1 Added help and video USE flags. Package-Manager: Portage-2.3.47, Repoman-2.3.10 --- media-gfx/gnofract4d/Manifest | 1 + .../files/gnofract4d-4.0.1-xsl.patch | 26 ++++++++ media-gfx/gnofract4d/gnofract4d-4.0.1.ebuild | 60 +++++++++++++++++++ media-gfx/gnofract4d/metadata.xml | 5 +- 4 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 media-gfx/gnofract4d/files/gnofract4d-4.0.1-xsl.patch create mode 100644 media-gfx/gnofract4d/gnofract4d-4.0.1.ebuild diff --git a/media-gfx/gnofract4d/Manifest b/media-gfx/gnofract4d/Manifest index 4051e8f4c6c36..6e9a7e87a0435 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.tar.gz 7637862 BLAKE2B 26790424cb9c3d832d9bd309b19a111a0f4bdf33169985f251c7ec0f347a3ba59ea5835ffe12a2820d4cd77ac71d3243558df8d19e0db9e7229fa94c08b2cc87 SHA512 02e30819b89bc019be2b52c22ab0e6f53e41b0c011d7c73b5f8be692b8bd5bc6b0e8f15f08d036c61857a382e29fad11da9abe23921c2a4e69e0c05bee262ba1 diff --git a/media-gfx/gnofract4d/files/gnofract4d-4.0.1-xsl.patch b/media-gfx/gnofract4d/files/gnofract4d-4.0.1-xsl.patch new file mode 100644 index 0000000000000..f894e82628a0e --- /dev/null +++ b/media-gfx/gnofract4d/files/gnofract4d-4.0.1-xsl.patch @@ -0,0 +1,26 @@ +diff --git a/createdocs.py b/createdocs.py +index f31ee8b..69c89b2 100755 +--- a/createdocs.py ++++ b/createdocs.py +@@ -24,7 +24,7 @@ def create_stdlib_docs(): + + # create HTML version of docs for them as don't have yelp + os.chdir("doc/gnofract4d-manual/C") +- retval = os.system("xsltproc --output gnofract4d-manual.html --stringparam html.stylesheet docbook.css gnofract4d.xsl gnofract4d-manual.xml") ++ retval = os.system("xsltproc --nonet --output gnofract4d-manual.html --stringparam html.stylesheet docbook.css gnofract4d.xsl gnofract4d-manual.xml") + if retval != 0: + raise Exception("error processing xslt") + except Exception as err: +diff --git a/doc/gnofract4d-manual/C/gnofract4d.xsl b/doc/gnofract4d-manual/C/gnofract4d.xsl +index 4b0120d..19ad421 100644 +--- a/doc/gnofract4d-manual/C/gnofract4d.xsl ++++ b/doc/gnofract4d-manual/C/gnofract4d.xsl +@@ -3,7 +3,7 @@ + + + +- ++ + + + diff --git a/media-gfx/gnofract4d/gnofract4d-4.0.1.ebuild b/media-gfx/gnofract4d/gnofract4d-4.0.1.ebuild new file mode 100644 index 0000000000000..0f37a774cf0f9 --- /dev/null +++ b/media-gfx/gnofract4d/gnofract4d-4.0.1.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python3_{6,7} ) +DISTUTILS_SINGLE_IMPL=1 + +inherit distutils-r1 gnome2-utils xdg-utils + +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/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+help video" + +COMMON_DEPEND=" + media-libs/libpng:0= + virtual/jpeg:0" +RDEPEND="${COMMON_DEPEND} + dev-python/pycairo[${PYTHON_USEDEP}] + dev-python/pygobject[${PYTHON_USEDEP}] + x11-libs/gtk+:3[introspection] + video? ( media-video/ffmpeg[vpx,zlib] )" +DEPEND="${COMMON_DEPEND} + virtual/pkgconfig + help? ( app-text/docbook-xsl-stylesheets + dev-libs/libxslt )" + +PATCHES=( + "${FILESDIR}"/${P}-xsl.patch +) + +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 -rf "${ED%/}"/usr/share/doc/${PN} || die + use help || rm -rf "${ED%/}"/usr/share/gnome/help/${PN} || die +} + +pkg_postinst() { + gnome2_icon_cache_update + xdg_desktop_database_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + gnome2_icon_cache_update + xdg_desktop_database_update + xdg_mimeinfo_database_update +} diff --git a/media-gfx/gnofract4d/metadata.xml b/media-gfx/gnofract4d/metadata.xml index fb2b6be847f09..9d262e8792a06 100644 --- a/media-gfx/gnofract4d/metadata.xml +++ b/media-gfx/gnofract4d/metadata.xml @@ -6,7 +6,10 @@ Gentoo Graphics Project - gnofract4d edyoung/gnofract4d + + Install user manual + Support creation of videos +