Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-chemistry/chemical-mime-data/files/, sci-chemistry/chemical-mime-data/
Date: Fri, 07 Feb 2020 18:41:28
Message-Id: 1581100867.db812912bedf3a9abd4e24a9db087d3212638159.pacho@gentoo
1 commit: db812912bedf3a9abd4e24a9db087d3212638159
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 7 18:35:45 2020 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 7 18:41:07 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db812912
7
8 sci-chemistry/chemical-mime-data: Drop problematic mime type
9
10 Bug: https://bugs.gentoo.org/701900
11 Closes: https://bugs.gentoo.org/707284
12 Package-Manager: Portage-2.3.87, Repoman-2.3.20
13 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
14
15 .../chemical-mime-data-0.1.94-r4.ebuild | 53 ++++++++++++++++++++++
16 ...me-data-0.1.94-drop-turbomole-vibrational.patch | 20 ++++++++
17 2 files changed, 73 insertions(+)
18
19 diff --git a/sci-chemistry/chemical-mime-data/chemical-mime-data-0.1.94-r4.ebuild b/sci-chemistry/chemical-mime-data/chemical-mime-data-0.1.94-r4.ebuild
20 new file mode 100644
21 index 00000000000..ad703d67872
22 --- /dev/null
23 +++ b/sci-chemistry/chemical-mime-data/chemical-mime-data-0.1.94-r4.ebuild
24 @@ -0,0 +1,53 @@
25 +# Copyright 1999-2020 Gentoo Authors
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=7
29 +inherit autotools xdg
30 +
31 +DESCRIPTION="A collection of data files to add support for chemical MIME types"
32 +HOMEPAGE="https://github.com/dleidert/chemical-mime"
33 +SRC_URI="mirror://sourceforge/${PN/-data/}/${P}.tar.bz2"
34 +
35 +LICENSE="LGPL-2.1"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
38 +IUSE=""
39 +
40 +RDEPEND="
41 + x11-misc/shared-mime-info
42 +"
43 +DEPEND="${RDEPEND}"
44 +BDEPEND="
45 + dev-util/intltool
46 + dev-util/desktop-file-utils
47 + dev-libs/libxslt
48 + || (
49 + gnome-base/librsvg
50 + media-gfx/imagemagick[xml,png,svg]
51 + )
52 + media-gfx/imagemagick[png]
53 + virtual/pkgconfig
54 +"
55 +
56 +PATCHES=(
57 + "${FILESDIR}"/${P}-turbomole.patch
58 + "${FILESDIR}"/${P}-pigz.patch
59 + "${FILESDIR}"/${P}-namespace-svg.patch
60 + "${FILESDIR}"/${P}-rsvg-convert.patch
61 + # https://github.com/dleidert/chemical-mime/issues/1
62 + "${FILESDIR}"/${P}-drop-turbomole-vibrational.patch
63 +)
64 +
65 +src_prepare() {
66 + xdg_src_prepare
67 + eautoreconf
68 +}
69 +
70 +src_configure() {
71 + econf \
72 + --disable-update-database \
73 + --without-gnome-mime \
74 + --without-pixmaps \
75 + --without-kde-mime \
76 + --htmldir=/usr/share/doc/${PF}/html
77 +}
78
79 diff --git a/sci-chemistry/chemical-mime-data/files/chemical-mime-data-0.1.94-drop-turbomole-vibrational.patch b/sci-chemistry/chemical-mime-data/files/chemical-mime-data-0.1.94-drop-turbomole-vibrational.patch
80 new file mode 100644
81 index 00000000000..4c25b1a1834
82 --- /dev/null
83 +++ b/sci-chemistry/chemical-mime-data/files/chemical-mime-data-0.1.94-drop-turbomole-vibrational.patch
84 @@ -0,0 +1,20 @@
85 +diff -up chemical-mime-data-0.1.94/src/chemical-mime-database.xml.in.turbomole_vibration chemical-mime-data-0.1.94/src/chemical-mime-database.xml.in
86 +--- chemical-mime-data-0.1.94/src/chemical-mime-database.xml.in.turbomole_vibration 2020-01-29 17:32:45.000000000 +0100
87 ++++ chemical-mime-data-0.1.94/src/chemical-mime-database.xml.in 2020-01-29 17:32:45.000000000 +0100
88 +@@ -1401,16 +1401,6 @@
89 + <specification url="http://www.cosmologic.de/data/DOK_HTML/"/>
90 + </mime-type>
91 +
92 +- <mime-type type="chemical/x-turbomole-vibrational" support="yes">
93 +- <_comment>Turbomole Vibrational Data File</_comment>
94 +- <glob pattern="???"/>
95 +- <sub-class-of type="text/plain"/>
96 +- <icon kde="qc"/>
97 +- <supported-by>
98 +- <application name="viewmol"/>
99 +- </supported-by>
100 +- <specification url="http://www.cosmologic.de/data/DOK_HTML/"/>
101 +- </mime-type>
102 +
103 + <mime-type type="chemical/x-vamas-iso14976" cm:support="no">
104 + <_comment>VAMAS document</_comment>