diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-chemistry/gsim |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-chemistry/gsim')
-rw-r--r-- | sci-chemistry/gsim/Manifest | 7 | ||||
-rw-r--r-- | sci-chemistry/gsim/files/gsim-21.3-build.conf.patch | 49 | ||||
-rw-r--r-- | sci-chemistry/gsim/gsim-21.3-r1.ebuild | 79 | ||||
-rw-r--r-- | sci-chemistry/gsim/gsim-21.3.ebuild | 66 | ||||
-rw-r--r-- | sci-chemistry/gsim/metadata.xml | 14 |
5 files changed, 215 insertions, 0 deletions
diff --git a/sci-chemistry/gsim/Manifest b/sci-chemistry/gsim/Manifest new file mode 100644 index 000000000000..f0fc16777525 --- /dev/null +++ b/sci-chemistry/gsim/Manifest @@ -0,0 +1,7 @@ +AUX gsim-21.3-build.conf.patch 1897 SHA256 565b9db57e8525ad4b3bc7e9d445cd54d282500d5f7e1beb0cef31db2da1bacb SHA512 d1bd0fb6ce8279edfa5aff48ce9d7174825c17531b6d71b5fa872b744160d9c836f80c751e184b34308b05e1f7a817c4fd6b9071bab7e874ca2d59280adc8312 WHIRLPOOL dd9ff16c359e9f7a2d88b9f193c0d646a6be1e724d310e903b0d8188f0c4f935f77335b03dfcaccaf66ab2dee4e4d98f06c358c46c266770e7615aa59b430d30 +DIST gsim-21.3.tar.gz 4100589 SHA256 d3dd161078862fa990b40ff5df988bb82c8469e17dda8e81eda5f1419742de47 SHA512 0a65ec416a11893fe9f249126ed8e7b9f7991dc8f02d6b62b01962de6dfabda805acdc3d7fc6939b609ff018f16cefff616f37ee906776712209460374bb225d WHIRLPOOL d8dde220a52608b5dc48e494fb1b0bad49f13f770e132641b9671cd544c951cdd03a4578bf983492dfb0b74567e51ef716ecbb828ba40b2a3385d26788b83bea +EBUILD gsim-21.3-r1.ebuild 1794 SHA256 c18bfdd909e7a50fa57eae5a834adfecf7bff564e804e18adc2e20bc8d0edf78 SHA512 7222acbf7145886e3f4e1b6758ffba1d656edbf536e6f3caa25989812df67dbfd9794e77578394fb0a51879db8512d7be5ed119f08327ca465ad37cf5c0f786f WHIRLPOOL de7436b5317a35024816f9a4c94e5c6812efb75642a7e4bae53dde8c229a0c61b040e81d1e5847f7d5eb56144bec3801a51e22e56a5daf2558252c6149c25bc6 +EBUILD gsim-21.3.ebuild 1584 SHA256 4b82507ee74c14d650bf25d98b06b306aa22b0ddcb6bada085ff6cbfde60369d SHA512 44b321797c196099c93ccf07747aed4c1d023da78edf44e3deb87a17905cf11adc15b4c20eba649337734634e80bb170bc89142e592f16e1d9d5cf4a5c78c57a WHIRLPOOL 959f3738974c35243adc64702accd0aa2d47bc5d01f390fc91be2668f27b55b5c58d9a27ea90ad1f8c95ab01056a9af2ab5979258ed0240f7a7ca3c007cc9f47 +MISC ChangeLog 3196 SHA256 95fba6bbd01106bc4e2bf872ed8cba4da1e2234b4424ec65bf2fbee1fc4073b3 SHA512 60b9723227d723f18f5dc9610cdc37a4053aae2d6d8ce60b95e5655f46ee7c20f600fe543597a3d27bf7bd03c2c50ac49f209c2c9a00d9e4f698a08f353a212b WHIRLPOOL 03cc6c697e305373dfd330845e2de5b612694fe47a13cdd298a4eeef5c0f682a9e6752ec49ba0ec5f6bcf78e44f08bd9e985cef550ef787a29ed074b40fc6d41 +MISC ChangeLog-2015 1847 SHA256 8c38512d6a95c21f235691f7c424211588df06f9ee72c5aa81ecc4d8bda8a9dc SHA512 f0271aee3dd5744a2f9ba6774ba18a91a378fea4f511b7ff38da84dc8045436c55cab7612850bdb786cdc934661af6e2088db1870b666f65bb2d37e67e89b958 WHIRLPOOL 379b05d646e20673ad2dc0d0d4e51494aaafd0801a9869d5b1034c468e836270cb8abfb2e164b98f4d79711e992d6e18151f9cf91de363d3f4f80ea5e5ff40c2 +MISC metadata.xml 418 SHA256 b33b23ee4b8bc935dca4d48f930d3222e9e10a5770ccba79aa84b0b008c9a545 SHA512 d7ff66672b3e97b217dae26956f7cb56deeded4893eee1f27ad35c203917c2ab2e820b5eed5748fc63378cc7987cb45d699e05aab9fd80c4baa5a17a472f3ff8 WHIRLPOOL 9712b9168c668db5f9cf1142637128e194c036d069f6b8649ccf54e1d559eff1e9baff0aff5f6c4591382654e7f6fc9a4dc6553ef09aa0bc351bec779384af79 diff --git a/sci-chemistry/gsim/files/gsim-21.3-build.conf.patch b/sci-chemistry/gsim/files/gsim-21.3-build.conf.patch new file mode 100644 index 000000000000..da7d7b7b4457 --- /dev/null +++ b/sci-chemistry/gsim/files/gsim-21.3-build.conf.patch @@ -0,0 +1,49 @@ + gsim.pro | 23 ++++++++++++++---------
+ 1 file changed, 14 insertions(+), 9 deletions(-)
+
+diff --git a/gsim.pro b/gsim.pro
+index f88dc8a..579a91c 100755
+--- a/gsim.pro
++++ b/gsim.pro
+@@ -10,27 +10,32 @@
+
+ #Uncomment next line if you want to use EMF output
+ #EMF output requires libEMF or Wine on X11 systems and MAC(?)
+-CONFIG+=use_emf
++#CONFIG+=use_emf
+
+ #DO NOT UNCOMMENT NEXT LINE. The scripting possibilty won't work at the moment
+ #CONFIG+=use_script
+
+ # Change directories locations for libcmatrix, MinUIT and muParser libraries
+-unix:INCLUDEPATH += /home/dch0ph/libcmatrixR3nosse/include \
+- /home/dch1vz/Minuit2/include \
+- /home/dch1vz/muparser/include
++#unix:INCLUDEPATH += /home/dch0ph/libcmatrixR3nosse/include \
++# /home/dch1vz/Minuit2/include \
++# /home/dch1vz/muparser/include
+
+ win32:INCLUDEPATH += "C:\gsim\libcmatrixR3_qt4\include" "C:\gsim\Minuit2_qt4\include" "C:\gsim\muparser_qt4\include"
+
+-unix:LIBS += -lcmatrix -L/home/dch0ph/libcmatrixR3nosse/lib -lMinuit2Base -L/home/dch1vz/Minuit2/lib -L/home/dch1vz/muparser/lib -lmuparser
++#unix:LIBS += -lcmatrix -L/home/dch0ph/libcmatrixR3nosse/lib -lMinuit2Base -L/home/dch1vz/Minuit2/lib -L/home/dch1vz/muparser/lib -lmuparser
+
+ win32:LIBS += -lcmatrix -L"C:\gsim\libcmatrixR3_qt4\lib" -lMinuit2 -L"C:\gsim\Minuit2_qt4\lib" -L"C:\gsim\muparser_qt4\lib" -lmuparser
+
+ #Change directories location for libEMF (if used)
+-use_emf {
+- DEFINES+=USE_EMF_OUTPUT
+- unix:LIBS +=-lEMF -L/usr/include/libEmf
+- win32:LIBS +=-lgdi32
++#use_emf {
++# DEFINES+=USE_EMF_OUTPUT
++# unix:LIBS +=-lEMF -L/usr/include/libEmf
++# win32:LIBS +=-lgdi32
++#}
++
++GSIM_ROOT = .
++!include( $$GSIM_ROOT/build.conf ) {
++ message( "You need a build.conf file with local settings!" )
+ }
+
+ #################################################################################################
diff --git a/sci-chemistry/gsim/gsim-21.3-r1.ebuild b/sci-chemistry/gsim/gsim-21.3-r1.ebuild new file mode 100644 index 000000000000..ea74adc598c7 --- /dev/null +++ b/sci-chemistry/gsim/gsim-21.3-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit flag-o-matic qmake-utils toolchain-funcs + +DESCRIPTION="Visualisation and processing of experimental and simulated NMR spectra" +HOMEPAGE="https://sourceforge.net/projects/gsim/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="cpu_flags_x86_sse3 emf opengl" +REQUIRED_USE="cpu_flags_x86_sse3" + +RDEPEND=" + dev-cpp/muParser + media-libs/freetype + sci-libs/libcmatrix + sci-libs/minuit + virtual/blas + dev-qt/qtsvg:4 + emf? ( media-libs/libemf ) + opengl? ( dev-qt/qtopengl:4 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${P}-build.conf.patch" +) +DOCS="release.txt README_GSIM.* quickstart.* changes.log programming.*" + +src_prepare() { + edos2unix ${PN}.pro + + default + + # C{,XX}FLAGS need to explicitly enable SSE3 support + # bug #555972 + filter-flags -mno-sse3 + append-cflags -msse3 + append-cxxflags -msse3 + + cat >> build.conf <<- EOF + INCLUDEPATH += "${EPREFIX}/usr/include/libcmatrixR3/" \ + "${EPREFIX}/usr/include/Minuit2" \ + "${EPREFIX}/usr/include" + LIBS += -lcmatrix -lMinuit2 -lmuparser $($(tc-getPKG_CONFIG) --libs cblas) + EOF + + use opengl && echo "CONFIG+=use_opengl" >> build.conf + + if use emf; then + cat >> build.conf <<- EOF + CONFIG+=use_emf + DEFINES+=USE_EMF_OUTPUT + LIBS += -L\"${EPREFIX}/usr/include/libEMF\" -lEMF + EOF + fi + sed \ + -e "s:quickstart.pdf:../share/doc/${PF}/quickstart.pdf:g" \ + -e "s:README_GSIM.pdf:../share/doc/${PF}/README_GSIM.pdf:g" \ + -i mainform.h || die +} + +src_configure() { + eqmake4 ${PN}.pro +} + +src_install() { + default + dobin ${PN} + insinto /usr/share/${PN} + doins -r images ${PN}.ico + insinto /usr/share/${PN}/ui + doins *.ui +} diff --git a/sci-chemistry/gsim/gsim-21.3.ebuild b/sci-chemistry/gsim/gsim-21.3.ebuild new file mode 100644 index 000000000000..332b51b655e0 --- /dev/null +++ b/sci-chemistry/gsim/gsim-21.3.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils qt4-r2 toolchain-funcs + +DESCRIPTION="Programm for visualisation and processing of experimental and simulated NMR spectra" +HOMEPAGE="https://sourceforge.net/projects/gsim/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="emf opengl" + +RDEPEND=" + dev-cpp/muParser + media-libs/freetype + sci-libs/libcmatrix + sci-libs/minuit + virtual/blas + dev-qt/qtsvg:4 + emf? ( media-libs/libemf ) + opengl? ( dev-qt/qtopengl:4 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/${P}-build.conf.patch ) +DOCS="release.txt README_GSIM.* quickstart.* changes.log programming.*" + +src_prepare() { + edos2unix ${PN}.pro + + qt4-r2_src_prepare + + cat >> build.conf <<- EOF + INCLUDEPATH += "${EPREFIX}/usr/include/libcmatrixR3/" \ + "${EPREFIX}/usr/include/Minuit2" \ + "${EPREFIX}/usr/include" + LIBS += -lcmatrix -lMinuit2 -lmuparser $($(tc-getPKG_CONFIG) --libs cblas) + EOF + + use opengl && echo "CONFIG+=use_opengl" >> build.conf + + if use emf; then + cat >> build.conf <<- EOF + CONFIG+=use_emf + DEFINES+=USE_EMF_OUTPUT + LIBS += -L\"${EPREFIX}/usr/include/libEMF\" -lEMF + EOF + fi + sed \ + -e "s:quickstart.pdf:../share/doc/${PF}/quickstart.pdf:g" \ + -e "s:README_GSIM.pdf:../share/doc/${PF}/README_GSIM.pdf:g" \ + -i mainform.h || die +} + +src_install() { + qt4-r2_src_install + dobin ${PN} + insinto /usr/share/${PN} + doins -r images ${PN}.ico + insinto /usr/share/${PN}/ui + doins *.ui +} diff --git a/sci-chemistry/gsim/metadata.xml b/sci-chemistry/gsim/metadata.xml new file mode 100644 index 000000000000..43fbb821ad19 --- /dev/null +++ b/sci-chemistry/gsim/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> + <use> + <flag name="emf">Support for .emf export</flag> + </use> + <upstream> + <remote-id type="sourceforge">gsim</remote-id> + </upstream> +</pkgmetadata> |