summaryrefslogtreecommitdiff
path: root/sci-chemistry/chemical-mime-data
diff options
context:
space:
mode:
Diffstat (limited to 'sci-chemistry/chemical-mime-data')
-rw-r--r--sci-chemistry/chemical-mime-data/Manifest10
-rw-r--r--sci-chemistry/chemical-mime-data/chemical-mime-data-0.1.94-r2.ebuild60
-rw-r--r--sci-chemistry/chemical-mime-data/chemical-mime-data-0.1.94-r3.ebuild49
-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-rsvg-convert.patch30
-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.xml14
8 files changed, 252 insertions, 0 deletions
diff --git a/sci-chemistry/chemical-mime-data/Manifest b/sci-chemistry/chemical-mime-data/Manifest
new file mode 100644
index 000000000000..4a5e36fc2c8b
--- /dev/null
+++ b/sci-chemistry/chemical-mime-data/Manifest
@@ -0,0 +1,10 @@
+AUX chemical-mime-data-0.1.94-namespace-svg.patch 798 SHA256 d22f61f87f3042c0f66a3e4a9c5d8c0b1355ef8b92557dc6811a1626f4905323 SHA512 64addfac817a7f056f381515561b4311936410dc46385a3ded8c65f8fbc3d5dda731c4ec02e9369299c8122e7c43a6dc53005a4957e4165bbf958f683708513d WHIRLPOOL 797d22b29caf2b804f08310db66ecc61a09f1f012c60d37600bf4080e73d6488fcbf7ac7a2944c7e8c03b2e02bf03b5fd7e17551d0c670af66045e157d985fa7
+AUX chemical-mime-data-0.1.94-pigz.patch 481 SHA256 af97f7048e8618c3134a695e907af39a61dafaec4901f664cd0271d670980dac SHA512 a16839c1b88486ed26b4987a22594d0c3d45254d31157560135bdba008e5caa0a372d11e7db858564f1eca75452d2e43509899a91c2a8872465ea06277a1fb6c WHIRLPOOL df23df58a0f96dcd94e98d2c03073aa211322a9bdc9f7edc490ef1343e7ff2188be243be39f7e007bde70548a67c37762b91fdf4520e5a70e9959ae10efce1ad
+AUX chemical-mime-data-0.1.94-rsvg-convert.patch 1039 SHA256 e30a3903585570d0ec9360638e2972ff145efef51f394f9c39ca34f821cc2613 SHA512 9c12f96f16e7982a5ba11fc546293a2e74f8918ef6eb274e3b1a618fc28aff244402c9b28ffebc2e01c8f6eb0e9e2516da82852bd0f9142c10e97f027670e60d WHIRLPOOL 2bebab7b2f67e4b249396af59ef5578981a97a73d63d864d66555b78c188c80f7bdfad5dd3f90b60acc2508d38f9e24be2ed8a3fd70b2656a5da0f3022e9595a
+AUX chemical-mime-data-0.1.94-turbomole.patch 2451 SHA256 1fc2ca2eeb840a6ba16b32306deffb7ad67d5c2890ed196d304a3a197668dfd8 SHA512 1bfa8818d159f0f917a24a06b0bfe926f0854f4242d8c2dbbedcd4210ffd38a459298862dc1d1aedbbe648a933db99c5d647c5409af74f88b03dd3033946df54 WHIRLPOOL 247e1eeb5eaa42261d9112065e2d3d01bf4afe5736a5bf1fe42613175338b074676407a68ea751eaa4225bf54a4585fd6460207c0341489720fee0003b63c619
+DIST chemical-mime-data-0.1.94.tar.bz2 146077 SHA256 4907cdf60e9edca0a453f6f24e9179ae9da085b67168e932ba44a4280316bff1 SHA512 7f3d967149f27ab1de53c948dc055959e661e1be9d778e3d56d06bea95769da7770ab5fb66afab6607747ef91ffb1dbbcf921e5f06e3303351781968594b5f00 WHIRLPOOL 2e601b37ca22cc1d2b77b5d82713e756dea380fcb0a01c517513be0271162df6e19e7cc7dbc0af8f25e579bb809e0768cc2ee394124c91c296ed0d4c38cfa213
+EBUILD chemical-mime-data-0.1.94-r2.ebuild 1340 SHA256 9ad0f9d012212a546af1a51cdd13023b7758aec932d17a6e0387859d71c2f5b0 SHA512 bbbdb5aea48fef9f226fb2b7c94a9bc126e72647a94054ec58c307c159609855c655a070ddb8bb5fe110a77ec82b2cfeed965ff9ad8fd9c8d7a66aba9de9a8cc WHIRLPOOL 15f1964f8856f732c71273fc61b275b702009969c44f7a3af04702cdcf3fac48f2c27455e88ded00058cc78683a4c64eaf73708e01f1f5752218bf0cc0ad6fd0
+EBUILD chemical-mime-data-0.1.94-r3.ebuild 1000 SHA256 b49111ece8e84eddf0b3ec424323781c245fd4858e75e185cb53923f1c1c8f4a SHA512 86c723dbc3d8ab4753a103e74771b5ead0fb312cffa5e277e474358dc214beecc309ff527e7c4f53a257e40e4ca82edcdf41fd934eaac0ab36fd33d7179cb27b WHIRLPOOL 3a4f92fe0aa48b01da667e16c3f41f7b9b04102212a4464be8e3b94d11c581998a1083cb51952e22faf5c1df3e6fa88c474a6a68e25f6499bd359ec49a7dc2a9
+MISC ChangeLog 4270 SHA256 45308e98f37866ffe75ab48db7dec57885b8ab4767eeaaa37126048da1e4c05b SHA512 7405847da5e582d15ad04d510a9ba14701b26553ac6215e0cee36563ff875d011859d220cbf039b4a8d3af667d81e40c7daefcfe43776367d3e9463a90b30899 WHIRLPOOL 654a03bd80c780e5c09b88bbc7f55361a29c186c6e62eb0b397fa03487d9c799fc07b5b564f9f1b2a8d5fbb6d4531b90c7204c6bfec8e606d27eb6ddeb1f73b9
+MISC ChangeLog-2015 1942 SHA256 fbdb6d124f4b9374ba912e58ad8b7d713a9a2b71e4e473b868b0937e038a1d48 SHA512 2b62aafb60a5f7b1ba03360a061a30e72e43ed8b75211691617564469576ac15cd169560d3b7e03481e687c054119cddcd265c721566ae2d15f633dab82532ce WHIRLPOOL d65a815de44f777f37fc9e36a6cbeffc3ec3188c9ebcfe0258fcd6d81a9a75b6682382b4c72da7f29530ea2e611d439aab96cfdec5ab293e73f443f043c99b53
+MISC metadata.xml 474 SHA256 fe1f26b7fafcaf892d4b578e492626459bc6ef84be9a73687d3bd3e16dacf602 SHA512 59cfe759a75bf49fb020652168434fb610c2d5ba56507945253f556b5542a119bc9c9dc4f2b71ceed93f6672b31e5713cc9d76c433e95b0a08c51e9e577bac00 WHIRLPOOL 86b31834eba5f32a09199138d836598aeb6c71cba48675763db1e6f1044443b0201b0023f55adcdb2b7b06c376568ed050e857ee1d5d4216e6d384efc84a75f4
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..d9d29973585b
--- /dev/null
+++ b/sci-chemistry/chemical-mime-data/chemical-mime-data-0.1.94-r2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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,png,svg]
+ 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/chemical-mime-data-0.1.94-r3.ebuild b/sci-chemistry/chemical-mime-data/chemical-mime-data-0.1.94-r3.ebuild
new file mode 100644
index 000000000000..56b7db9129ac
--- /dev/null
+++ b/sci-chemistry/chemical-mime-data/chemical-mime-data-0.1.94-r3.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools xdg
+
+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 arm 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
+ || (
+ gnome-base/librsvg
+ media-gfx/imagemagick[xml,png,svg]
+ )
+ media-gfx/imagemagick[png]
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-turbomole.patch
+ "${FILESDIR}"/${P}-pigz.patch
+ "${FILESDIR}"/${P}-namespace-svg.patch
+ "${FILESDIR}"/${P}-rsvg-convert.patch
+ )
+
+src_prepare() {
+ xdg_src_prepare
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-update-database
+ --htmldir=/usr/share/doc/${PF}/html
+ )
+ econf ${myeconfargs[@]}
+}
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-rsvg-convert.patch b/sci-chemistry/chemical-mime-data/files/chemical-mime-data-0.1.94-rsvg-convert.patch
new file mode 100644
index 000000000000..8a92e19e1578
--- /dev/null
+++ b/sci-chemistry/chemical-mime-data/files/chemical-mime-data-0.1.94-rsvg-convert.patch
@@ -0,0 +1,30 @@
+ configure.ac | 2 +-
+ icons/hicolor/Makefile.am | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 6f87a94..a503da4 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -102,7 +102,7 @@ if test "x$enable_convert" != "xyes" -a "x$CONVERT" = "xno" ; then
+ [RSVG],
+ [The 'rsvg' binary with path. Use it to define or override the location of 'rsvg'.]
+ )
+- AC_PATH_PROG([RSVG], [rsvg], [no])
++ AC_PATH_PROG([RSVG], [rsvg-convert], [no])
+ AC_SUBST([RSVG])
+ fi
+
+diff --git a/icons/hicolor/Makefile.am b/icons/hicolor/Makefile.am
+index ba0847a..f2e0a84 100644
+--- a/icons/hicolor/Makefile.am
++++ b/icons/hicolor/Makefile.am
+@@ -24,7 +24,7 @@ if BOOL_HICOLOR_THEME
+ gzip -c $< > $@
+ for size in $(icon_sizes) ; do \
+ if test "x$(RSVG)" != "x" ; then \
+- $(RSVG) -w $${size} -h $${size} -f png $< $*_$${size}.png ; \
++ $(RSVG) -w $${size} -h $${size} -f png $< --output $*_$${size}.png ; \
+ else \
+ $(CONVERT) $< -resize $${size}x$${size} $*_$${size}.png ; \
+ fi \
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
new file mode 100644
index 000000000000..fa1ab91bf749
--- /dev/null
+++ b/sci-chemistry/chemical-mime-data/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-chemistry@gentoo.org</email>
+ <name>Gentoo Chemistry Project</name>
+ </maintainer>
+ <longdescription lang="en">
+A collection of data files to add support for chemical MIME types.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">chemical-mime</remote-id>
+ </upstream>
+</pkgmetadata>