summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2013-06-20 19:04:08 +0000
committerJustin Lecher <jlec@gentoo.org>2013-06-20 19:04:08 +0000
commit7df2431def8e29e7c923bbef47849b863346b4e4 (patch)
tree70ba94f0fada6e19a78438433857a9ba5d5aa9f7 /sci-chemistry/chemical-mime-data
parentAdded sys-libs/tevent to DEPEND (bug #473944) (diff)
downloadgentoo-2-7df2431def8e29e7c923bbef47849b863346b4e4.tar.gz
gentoo-2-7df2431def8e29e7c923bbef47849b863346b4e4.tar.bz2
gentoo-2-7df2431def8e29e7c923bbef47849b863346b4e4.zip
sci-chemistry/chemical-mime-data: Fix for sandbox violation, #464782; Add missing deps; Bump to EAPI=5 and autotools-utils eclass; fix compatibility to pigz[symlink]; call fdo-mime function in pkg_postrm
(Portage version: 2.2.0_alpha183/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916)
Diffstat (limited to 'sci-chemistry/chemical-mime-data')
-rw-r--r--sci-chemistry/chemical-mime-data/ChangeLog13
-rw-r--r--sci-chemistry/chemical-mime-data/chemical-mime-data-0.1.94-r2.ebuild61
-rw-r--r--sci-chemistry/chemical-mime-data/files/chemical-mime-data-0.1.94-namespace-svg.patch16
-rw-r--r--sci-chemistry/chemical-mime-data/files/chemical-mime-data-0.1.94-pigz.patch16
-rw-r--r--sci-chemistry/chemical-mime-data/files/chemical-mime-data-0.1.94-turbomole.patch57
-rw-r--r--sci-chemistry/chemical-mime-data/metadata.xml13
6 files changed, 168 insertions, 8 deletions
diff --git a/sci-chemistry/chemical-mime-data/ChangeLog b/sci-chemistry/chemical-mime-data/ChangeLog
index 23acedae4626..ce1ba410651a 100644
--- a/sci-chemistry/chemical-mime-data/ChangeLog
+++ b/sci-chemistry/chemical-mime-data/ChangeLog
@@ -1,6 +1,17 @@
# ChangeLog for sci-chemistry/chemical-mime-data
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/chemical-mime-data/ChangeLog,v 1.7 2013/06/19 03:58:07 bicatali Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/chemical-mime-data/ChangeLog,v 1.8 2013/06/20 19:04:07 jlec Exp $
+
+*chemical-mime-data-0.1.94-r2 (20 Jun 2013)
+
+ 20 Jun 2013; Justin Lecher <jlec@gentoo.org>
+ +chemical-mime-data-0.1.94-r2.ebuild,
+ +files/chemical-mime-data-0.1.94-namespace-svg.patch,
+ +files/chemical-mime-data-0.1.94-pigz.patch,
+ +files/chemical-mime-data-0.1.94-turbomole.patch, metadata.xml:
+ Fix for sandbox violation, #464782; Add missing deps; Bump to EAPI=5 and
+ autotools-utils eclass; fix compatibility to pigz[symlink]; call fdo-mime
+ function in pkg_postrm
19 Jun 2013; Sébastien Fabbro <bicatali@gentoo.org> metadata.xml:
Changed herd to sci-chemistry
diff --git a/sci-chemistry/chemical-mime-data/chemical-mime-data-0.1.94-r2.ebuild b/sci-chemistry/chemical-mime-data/chemical-mime-data-0.1.94-r2.ebuild
new file mode 100644
index 000000000000..0ef2b4e3d412
--- /dev/null
+++ b/sci-chemistry/chemical-mime-data/chemical-mime-data-0.1.94-r2.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/chemical-mime-data/chemical-mime-data-0.1.94-r2.ebuild,v 1.1 2013/06/20 19:04:07 jlec Exp $
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils fdo-mime
+
+DESCRIPTION="A collection of data files to add support for chemical MIME types."
+HOMEPAGE="http://chemical-mime.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN/-data/}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ gnome-base/gnome-mime-data
+ x11-misc/shared-mime-info"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ dev-util/desktop-file-utils
+ dev-libs/libxslt
+ media-gfx/imagemagick[xml]
+ media-gfx/inkscape
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-turbomole.patch
+ "${FILESDIR}"/${P}-pigz.patch
+ "${FILESDIR}"/${P}-namespace-svg.patch
+ )
+
+src_prepare() {
+ # needed for convert/inkscape #464782
+ export XDG_CONFIG_HOME=$HOME/.config
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-update-database
+ --htmldir=/usr/share/doc/${PF}/html
+ )
+ autotools-utils_src_configure
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ ewarn "You can ignore any 'Unknown media type in type' warnings."
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ ewarn "You can ignore any 'Unknown media type in type' warnings."
+}
diff --git a/sci-chemistry/chemical-mime-data/files/chemical-mime-data-0.1.94-namespace-svg.patch b/sci-chemistry/chemical-mime-data/files/chemical-mime-data-0.1.94-namespace-svg.patch
new file mode 100644
index 000000000000..9860261af403
--- /dev/null
+++ b/sci-chemistry/chemical-mime-data/files/chemical-mime-data-0.1.94-namespace-svg.patch
@@ -0,0 +1,16 @@
+ icons/hicolor/gnome-mime-chemical.svg | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/icons/hicolor/gnome-mime-chemical.svg b/icons/hicolor/gnome-mime-chemical.svg
+index 1a8d428..804514c 100644
+--- a/icons/hicolor/gnome-mime-chemical.svg
++++ b/icons/hicolor/gnome-mime-chemical.svg
+@@ -5,7 +5,7 @@
+ <!ENTITY ns_svg "http://www.w3.org/2000/svg">
+ <!ENTITY ns_xlink "http://www.w3.org/1999/xlink">
+ ]>
+-<svg xmlns="&ns_svg;" xmlns:xlink="&ns_xlink;" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
++<svg xmlns:svg="&ns_svg;" xmlns:xlink="&ns_xlink;" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
+ width="128" height="128" viewBox="0 0 128 128" overflow="visible" enable-background="new 0 0 128 128" xml:space="preserve">
+ <g id="Layer_1">
+ <g>
diff --git a/sci-chemistry/chemical-mime-data/files/chemical-mime-data-0.1.94-pigz.patch b/sci-chemistry/chemical-mime-data/files/chemical-mime-data-0.1.94-pigz.patch
new file mode 100644
index 000000000000..8b5ccfbc3fd9
--- /dev/null
+++ b/sci-chemistry/chemical-mime-data/files/chemical-mime-data-0.1.94-pigz.patch
@@ -0,0 +1,16 @@
+ Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 96e03ab..ba0847a 100644
+--- a/icons/hicolor/Makefile.am
++++ b/icons/hicolor/Makefile.am
+@@ -21,7 +21,7 @@ icon_sizes = 16 22 24 32 36 48 64 72 96 128 192
+ if BOOL_HICOLOR_THEME
+
+ .svg.svgz:
+- gzip $< -c > $@
++ gzip -c $< > $@
+ for size in $(icon_sizes) ; do \
+ if test "x$(RSVG)" != "x" ; then \
+ $(RSVG) -w $${size} -h $${size} -f png $< $*_$${size}.png ; \
diff --git a/sci-chemistry/chemical-mime-data/files/chemical-mime-data-0.1.94-turbomole.patch b/sci-chemistry/chemical-mime-data/files/chemical-mime-data-0.1.94-turbomole.patch
new file mode 100644
index 000000000000..852d6b0605be
--- /dev/null
+++ b/sci-chemistry/chemical-mime-data/files/chemical-mime-data-0.1.94-turbomole.patch
@@ -0,0 +1,57 @@
+diff -up chemical-mime-data-0.1.94/src/chemical-mime-database.xml.in.turbomole chemical-mime-data-0.1.94/src/chemical-mime-database.xml.in
+--- chemical-mime-data-0.1.94/src/chemical-mime-database.xml.in.turbomole 2009-08-10 09:37:06.000000000 +0200
++++ chemical-mime-data-0.1.94/src/chemical-mime-database.xml.in 2009-08-10 09:40:57.000000000 +0200
+@@ -1290,7 +1290,7 @@
+ <specification url="http://ca.expasy.org/sprot/userman.html"/>
+ </mime-type>
+
+- <mime-type type="chemical/x-turbomole-basis" support="no">
++ <mime-type type="chemical/x-turbomole-basis" support="yes">
+ <_comment>Turbomole Basis Set File</_comment>
+ <glob pattern="basis"/>
+ <sub-class-of type="text/plain"/>
+@@ -1304,7 +1304,7 @@
+ <specification url="http://www.cosmologic.de/data/DOK_HTML/"/>
+ </mime-type>
+
+- <mime-type type="chemical/x-turbomole-control" support="no">
++ <mime-type type="chemical/x-turbomole-control" support="yes">
+ <_comment>Turbomole Control File</_comment>
+ <glob pattern="control"/>
+ <sub-class-of type="text/plain"/>
+@@ -1320,7 +1320,7 @@
+ <specification url="http://www.cosmologic.de/data/DOK_HTML/node230.html"/>
+ </mime-type>
+
+- <mime-type type="chemical/x-turbomole-coord" support="no">
++ <mime-type type="chemical/x-turbomole-coord" support="yes">
+ <_comment>Turbomole Coordinate File</_comment>
+ <glob pattern="coord"/>
+ <glob pattern="*.tmol"/>
+@@ -1335,7 +1335,7 @@
+ <specification url="http://www.cosmologic.de/data/DOK_HTML/"/>
+ </mime-type>
+
+- <mime-type type="chemical/x-turbomole-grad" support="no">
++ <mime-type type="chemical/x-turbomole-grad" support="yes">
+ <_comment>Turbomole Gradient File</_comment>
+ <glob pattern="gradient"/>
+ <sub-class-of type="text/plain"/>
+@@ -1383,7 +1383,7 @@
+ <specification url="http://www.cosmologic.de/data/DOK_HTML/"/>
+ </mime-type>
+
+- <mime-type type="chemical/x-turbomole-scfmo" support="no">
++ <mime-type type="chemical/x-turbomole-scfmo" support="yes">
+ <_comment>Turbomole SCF Molecular Orbital File</_comment>
+ <acronym>MO</acronym>
+ <expanded-acronym>Molecular Orbital</expanded-acronym>
+@@ -1401,7 +1401,7 @@
+ <specification url="http://www.cosmologic.de/data/DOK_HTML/"/>
+ </mime-type>
+
+- <mime-type type="chemical/x-turbomole-vibrational" support="no">
++ <mime-type type="chemical/x-turbomole-vibrational" support="yes">
+ <_comment>Turbomole Vibrational Data File</_comment>
+ <glob pattern="???"/>
+ <sub-class-of type="text/plain"/>
diff --git a/sci-chemistry/chemical-mime-data/metadata.xml b/sci-chemistry/chemical-mime-data/metadata.xml
index 4b1d7b55c844..25c4b2b47106 100644
--- a/sci-chemistry/chemical-mime-data/metadata.xml
+++ b/sci-chemistry/chemical-mime-data/metadata.xml
@@ -1,13 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>sci-chemistry</herd>
-<maintainer>
-<email>je_fro@gentoo.org</email>
-<name>Jeff Gardner</name>
-</maintainer>
-<longdescription lang="en">
+ <herd>sci-chemistry</herd>
+ <maintainer>
+ <email>je_fro@gentoo.org</email>
+ <name>Jeff Gardner</name>
+ </maintainer>
+ <longdescription lang="en">
A collection of data files to add support for chemical MIME types.
</longdescription>
</pkgmetadata>
-