summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-11-03 09:37:05 +0000
committerJustin Lecher <jlec@gentoo.org>2010-11-03 09:37:05 +0000
commit5f27ca9bc2dd4afa231f2190b603e101dd388de5 (patch)
treec6494fc86f6c057dc55f50af3077fa18f9c5934d /sci-chemistry/gsim
parentx86 stable wrt security bug #343911 (diff)
downloadhistorical-5f27ca9bc2dd4afa231f2190b603e101dd388de5.tar.gz
historical-5f27ca9bc2dd4afa231f2190b603e101dd388de5.tar.bz2
historical-5f27ca9bc2dd4afa231f2190b603e101dd388de5.zip
New Addition, imported from sci opverlay
Package-Manager: portage-2.1.9.24/cvs/Linux x86_64
Diffstat (limited to 'sci-chemistry/gsim')
-rw-r--r--sci-chemistry/gsim/ChangeLog10
-rw-r--r--sci-chemistry/gsim/Manifest15
-rw-r--r--sci-chemistry/gsim/files/0.19.1-build.conf.patch44
-rw-r--r--sci-chemistry/gsim/gsim-0.19.1.ebuild63
-rw-r--r--sci-chemistry/gsim/metadata.xml11
5 files changed, 143 insertions, 0 deletions
diff --git a/sci-chemistry/gsim/ChangeLog b/sci-chemistry/gsim/ChangeLog
new file mode 100644
index 000000000000..a0930695c62b
--- /dev/null
+++ b/sci-chemistry/gsim/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-chemistry/gsim
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gsim/ChangeLog,v 1.1 2010/11/03 09:37:05 jlec Exp $
+
+*gsim-0.19.1 (03 Nov 2010)
+
+ 03 Nov 2010; Justin Lecher <jlec@gentoo.org>
+ +files/0.19.1-build.conf.patch, +gsim-0.19.1.ebuild, +metadata.xml:
+ New Addition, imported from sci opverlay
+
diff --git a/sci-chemistry/gsim/Manifest b/sci-chemistry/gsim/Manifest
new file mode 100644
index 000000000000..97461248544e
--- /dev/null
+++ b/sci-chemistry/gsim/Manifest
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX 0.19.1-build.conf.patch 2248 RMD160 02bd4a029e59bdd1d932154b6dded8e1946972ba SHA1 228d604619fe146a3609dcc7dc22359c71b1431e SHA256 3ffbcdf837737f18292b31a865c7836cc2ef9aaf5d8e6653e5e76bd5ad657531
+DIST gsim-0.19.1.tar.gz 3374301 RMD160 abd1c2402073584498a219e9195381f327efece5 SHA1 1e2640c139061c71fcf10bdadbda00eb1485d4ed SHA256 487c67869e561a334a0030392156b1bcb5663624e764b55cc4ca5a086c05a6a2
+EBUILD gsim-0.19.1.ebuild 1665 RMD160 5b43214ba769875c26fc50a5a682d7812085b0ca SHA1 41df9d7d51a56ff2e0e32d81fedf3a9ec9bc9dfe SHA256 80642a7555cf8fd4cbc91fe07b016b42b8adf7301a4215d18d818390625eb804
+MISC ChangeLog 396 RMD160 378fb468c7002fcedcf7e5c1fd8e871aa435348e SHA1 ad80e93cf46ad396d0dd91da6ea7d3b7c6815daf SHA256 8b8fb545dfc4004764a957455f8c01d129b9d430a1a4397821a8ecbad59eb4ed
+MISC metadata.xml 278 RMD160 e352d75d894fe99de02ea93b7def8cef27b93eac SHA1 a2fb7d10464705255bd76ab334026dbf50f34987 SHA256 ff060d868396cdbb49229295714d48722792e513ed8ea234ef69cd4e97429e04
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.16 (GNU/Linux)
+
+iEYEARECAAYFAkzRLUcACgkQgAnW8HDreRY1TgCeLZhgOOQcCZl+C+2cJ8hViAnt
+bOcAoJD5PK/Gyc5tcaXEwr7eESiUQ+d2
+=hWp9
+-----END PGP SIGNATURE-----
diff --git a/sci-chemistry/gsim/files/0.19.1-build.conf.patch b/sci-chemistry/gsim/files/0.19.1-build.conf.patch
new file mode 100644
index 000000000000..ed21a58d4519
--- /dev/null
+++ b/sci-chemistry/gsim/files/0.19.1-build.conf.patch
@@ -0,0 +1,44 @@
+diff --git a/gsim.pro b/gsim.pro
+index 60550e9..d159b19 100755
+--- a/gsim.pro
++++ b/gsim.pro
+@@ -1,36 +1,7 @@
+-###################################################################################################
+-# Change this part according to your system configuration #
+-###################################################################################################
+-
+-#Uncomment next line if you want to have a system console running alongside GSim on Windows
+-#win32: CONFIG +=console
+-
+-#Uncomment next line if you want to use OpenGL
+-#CONFIG+=use_opengl
+-
+-#Uncomment next line if you want to use EMF output
+-#EMF output requires libEMF or Wine on X11 systems and MAC(?)
+-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/vnmr1/libcmatrixR3/include \
+- /home/vnmr1/Minuit2/include \
+- /home/vnmr1/muparser/include
+-win32:INCLUDEPATH += "C:\Documents and Settings\vadzorin\My Documents\gsim\libcmatrixR3\include" "C:\Documents and Settings\vadzorin\My Documents\gsim\Minuit2\include" "C:\Documents and Settings\vadzorin\My Documents\gsim\muparser\include"
+-
+-unix:LIBS += -lcmatrix -L/home/vnmr1/libcmatrixR3 -lMinuit2Base -L/home/vnmr1/Minuit2/lib -L/home/vnmr1/muparser/lib -lmuparser
+-win32:LIBS += -lcmatrix -L"C:\Documents and Settings\vadzorin\My Documents\gsim\libcmatrixR3" -lMinuit2 -L"C:\Documents and Settings\vadzorin\My Documents\gsim\Minuit2\lib" -L"C:\Documents and Settings\vadzorin\My Documents\gsim\muparser\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
++GSIM_ROOT = .
++!include( $$GSIM_ROOT/build.conf ) {
++ message( "You need a build.conf file with local settings!" )
+ }
+-
+ #################################################################################################
+ # Don't change anything below this line #
+ #################################################################################################
diff --git a/sci-chemistry/gsim/gsim-0.19.1.ebuild b/sci-chemistry/gsim/gsim-0.19.1.ebuild
new file mode 100644
index 000000000000..c988caa5057f
--- /dev/null
+++ b/sci-chemistry/gsim/gsim-0.19.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/gsim/gsim-0.19.1.ebuild,v 1.1 2010/11/03 09:37:05 jlec Exp $
+
+EAPI="3"
+
+inherit eutils qt4-r2
+
+DESCRIPTION="Programm for visualisation and processing of experimental and simulated NMR spectra"
+HOMEPAGE="http://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="
+ x11-libs/qt-svg:4
+ dev-cpp/muParser
+ sci-libs/libcmatrix
+ virtual/blas
+ media-libs/freetype
+ emf? ( media-libs/libemf )
+ opengl? ( x11-libs/qt-opengl:4 )"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${PV}-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 $(pkg-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} || die "no ${PN}"
+ insinto /usr/share/${PN}
+ doins -r images ${PN}.ico || "no images"
+ insinto /usr/share/${PN}/ui
+ doins *.ui || die
+}
diff --git a/sci-chemistry/gsim/metadata.xml b/sci-chemistry/gsim/metadata.xml
new file mode 100644
index 000000000000..fa9b76fee4b3
--- /dev/null
+++ b/sci-chemistry/gsim/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<maintainer>
+ <email>jlec@gentoo.org</email>
+</maintainer>
+<use>
+ <flag name='emf'>Support for .emf export</flag>
+</use>
+</pkgmetadata>