commit: 90c27b4458590c8cc679a8a9353808d1857ce657 Author: Michael Weber <michael <AT> xmw <DOT> de> AuthorDate: Thu Jun 16 22:01:14 2016 +0000 Commit: Michael Weber <xmw <AT> gentoo <DOT> org> CommitDate: Thu Jun 16 22:01:14 2016 +0000 URL: https://gitweb.gentoo.org/dev/xmw.git/commit/?id=90c27b44
media-video/dcpomatic: USE=gui, fix .desktop files. Package-Manager: portage-2.2.28 Manifest-Sign-Key: 0x71D573A82F434065 media-video/dcpomatic/dcpomatic-2.8.0.ebuild | 11 ++++++-- .../dcpomatic/files/dcpomatic-2.8.0-desktop.patch | 32 ++++++++++++++++++++++ media-video/dcpomatic/metadata.xml | 3 ++ 3 files changed, 43 insertions(+), 3 deletions(-) diff --git a/media-video/dcpomatic/dcpomatic-2.8.0.ebuild b/media-video/dcpomatic/dcpomatic-2.8.0.ebuild index e4e1fc6..67820d6 100644 --- a/media-video/dcpomatic/dcpomatic-2.8.0.ebuild +++ b/media-video/dcpomatic/dcpomatic-2.8.0.ebuild @@ -16,7 +16,7 @@ SRC_URI="http://${PN}.com/downloads/${PV}/${P}.tar.bz2 LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="+gui" RDEPEND="dev-cpp/cairomm dev-cpp/glibmm:2 @@ -37,14 +37,15 @@ RDEPEND="dev-cpp/cairomm >=media-video/ffmpeg-3 net-libs/libssh net-misc/curl - x11-libs/gtk+:2 - x11-libs/wxGTK:3.0 " + gui? ( x11-libs/gtk+:2 + x11-libs/wxGTK:3.0 )" DEPEND="${RDEPEND} virtual/pkgconfig" PATCHES=( "${FILESDIR}"/${P}-wxGTK3.patch "${FILESDIR}"/${P}-no-ldconfig.patch + "${FILESDIR}"/${P}-desktop.patch ) src_prepare() { @@ -52,3 +53,7 @@ src_prepare() { default } + +src_configure() { + waf-utils_src_configure $(usex gui "" "--disable-gui") +} diff --git a/media-video/dcpomatic/files/dcpomatic-2.8.0-desktop.patch b/media-video/dcpomatic/files/dcpomatic-2.8.0-desktop.patch new file mode 100644 index 0000000..615a998 --- /dev/null +++ b/media-video/dcpomatic/files/dcpomatic-2.8.0-desktop.patch @@ -0,0 +1,32 @@ +--- dcpomatic-2.8.0/platform/linux/dcpomatic.desktop.in ++++ dcpomatic-2.8.0/platform/linux/dcpomatic.desktop.in +@@ -7,4 +7,4 @@ + Name=DCP-o-matic 2 + Icon=dcpomatic2 + Comment=DCP generator +-Categories=AudioVideo;Video ++Categories=AudioVideo;Video; +--- dcpomatic-2.8.0/platform/linux/dcpomatic_server.desktop.in ++++ dcpomatic-2.8.0/platform/linux/dcpomatic_server.desktop.in +@@ -7,4 +7,4 @@ + Name=DCP-o-matic 2 Encode Server + Icon=dcpomatic2_server + Comment=DCP generator +-Categories=AudioVideo;Video ++Categories=AudioVideo;Video; +--- dcpomatic-2.8.0/platform/linux/dcpomatic_kdm.desktop.in ++++ dcpomatic-2.8.0/platform/linux/dcpomatic_kdm.desktop.in +@@ -7,4 +7,4 @@ + Name=DCP-o-matic 2 KDM Creator + Icon=dcpomatic2_kdm + Comment=DCP generator +-Categories=AudioVideo;Video ++Categories=AudioVideo;Video; +--- dcpomatic-2.8.0/platform/linux/dcpomatic_batch.desktop.in ++++ dcpomatic-2.8.0/platform/linux/dcpomatic_batch.desktop.in +@@ -7,4 +7,4 @@ + Name=DCP-o-matic 2 Batch Converter + Icon=dcpomatic2_batch + Comment=DCP generator +-Categories=AudioVideo;Video ++Categories=AudioVideo;Video; diff --git a/media-video/dcpomatic/metadata.xml b/media-video/dcpomatic/metadata.xml index a535b88..0ab6170 100644 --- a/media-video/dcpomatic/metadata.xml +++ b/media-video/dcpomatic/metadata.xml @@ -5,4 +5,7 @@ <email>x...@gentoo.org</email> <name>Michael Weber</name> </maintainer> +<use> + <flag name="gui">Enable GUI</flag> +</use> </pkgmetadata>