summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Medinas <metalgod@gentoo.org>2006-07-02 22:59:39 +0000
committerLuis Medinas <metalgod@gentoo.org>2006-07-02 22:59:39 +0000
commit5e198d6e53cfa1c3aced2f98482a7912c9a8db5b (patch)
treedaa744d385a26b57bc4eb0f733665071db86f416 /sci-physics
parentsmall fixes, including pax fix (diff)
downloadgentoo-2-5e198d6e53cfa1c3aced2f98482a7912c9a8db5b.tar.gz
gentoo-2-5e198d6e53cfa1c3aced2f98482a7912c9a8db5b.tar.bz2
gentoo-2-5e198d6e53cfa1c3aced2f98482a7912c9a8db5b.zip
Moved from sci-misc/camfr to sci-physics/camfr.
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/camfr/ChangeLog24
-rw-r--r--sci-physics/camfr/Manifest31
-rw-r--r--sci-physics/camfr/camfr-1.2.ebuild60
-rw-r--r--sci-physics/camfr/files/SConstruct22
-rw-r--r--sci-physics/camfr/files/digest-camfr-1.23
-rw-r--r--sci-physics/camfr/files/machine_cfg.py57
-rw-r--r--sci-physics/camfr/files/throw_patch.diff29
-rw-r--r--sci-physics/camfr/metadata.xml9
8 files changed, 235 insertions, 0 deletions
diff --git a/sci-physics/camfr/ChangeLog b/sci-physics/camfr/ChangeLog
new file mode 100644
index 000000000000..2902fd3b93b9
--- /dev/null
+++ b/sci-physics/camfr/ChangeLog
@@ -0,0 +1,24 @@
+# ChangeLog for sci-misc/camfr
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/camfr/ChangeLog,v 1.1 2006/07/02 22:59:39 metalgod Exp $
+
+*camfr-1.2 (02 Jul 2006)
+
+ 02 Jul 2006; Luis Medinas <metalgod@gentoo.org> +files/SConstruct,
+ +files/machine_cfg.py, +files/throw_patch.diff, +metadata.xml,
+ +camfr-1.2.ebuild:
+ Moved from sci-misc/camfr to sci-physics/camfr.
+
+ 23 Feb 2006; Peter Bienstman <pbienst@gentoo.org> -files/camfr_wrap.cpp,
+ files/machine_cfg.py, +files/throw_patch.diff:
+ Remove big file.
+
+ 02 Nov 2005; Stefan Schweizer <genstef@gentoo.org> camfr-1.2.ebuild:
+ app-text/ghostscript -> virtual/ghostscript
+
+ 31 Oct 2005; Peter Bienstman <pbienst@gentoo.org> camfr-1.2.ebuild:
+ Use fortran eclass.
+
+ 05 Apr 2005; Peter Bienstman <pbienst@gentoo.org> :
+ Initial import. Closes bug 36560.
+
diff --git a/sci-physics/camfr/Manifest b/sci-physics/camfr/Manifest
new file mode 100644
index 000000000000..ed8c068f093b
--- /dev/null
+++ b/sci-physics/camfr/Manifest
@@ -0,0 +1,31 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 9c6587893b3ea167b7346993d2afa6e3 ChangeLog 648
+RMD160 27321052ac3b723b6d268b2f233aa1e339246bd2 ChangeLog 648
+SHA256 18d5bd96bfc7385fb3339b622c91067f4307afaff41ec7a4ba79a8fdb8afd556 ChangeLog 648
+MD5 0d379edc1c14fefa39bcd085eeb6f95d camfr-1.2.ebuild 1513
+RMD160 6ae0da6068fa9b23d5bc1059c681f0813ee514db camfr-1.2.ebuild 1513
+SHA256 3e7a0302fa372e34996d72864a786dfe399c8bb1791098b6ec9cc0d2e38ffaf3 camfr-1.2.ebuild 1513
+MD5 85926d5ac680e6e8b6c0271a4527f030 files/SConstruct 611
+RMD160 5918f74d17e0d01f643515b7ef6e8d0eb3c167d8 files/SConstruct 611
+SHA256 bc290cff89ba361838f94e96e42c793b08909655d8a3f9b2028de452c031ca8a files/SConstruct 611
+MD5 3d16ef7bebd101504e1fbb87eb86e19d files/digest-camfr-1.2 220
+RMD160 80e4084ce09a13f7f9956659c089bf1dbe0b60cc files/digest-camfr-1.2 220
+SHA256 24d2c70815f051f72108f55b7c1287ddf9bad16542df1226a7fc4852253e021a files/digest-camfr-1.2 220
+MD5 4cd973de864f783144eabf5983da3f59 files/machine_cfg.py 1272
+RMD160 ae91d457ed7c28aaf94d05209e149bd84f672364 files/machine_cfg.py 1272
+SHA256 44031c5deda4bfb515b8a6157e9c7c25e986cb12898d525266f736a8fc92801c files/machine_cfg.py 1272
+MD5 b63f9b364f119af0e7b51e9aacc16cc7 files/throw_patch.diff 1002
+RMD160 ed477645fcbc0d3e9caa09c403003391a37d99bf files/throw_patch.diff 1002
+SHA256 b063115ed23cb9be14e83d8e2ffa4e394f510e7ccf59600a2b7bd8a7a08eb879 files/throw_patch.diff 1002
+MD5 b29bc1bc900b3946fa0120f24f1061df metadata.xml 254
+RMD160 96e9d6bbf53b188945c21047837988dd9684ea6e metadata.xml 254
+SHA256 9c33299de944cb2d0da1adb55447f6fa68dcf52e4b85385810cf136361c7e9ec metadata.xml 254
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.4.2 (GNU/Linux)
+
+iD8DBQFD/dh7CRZPokWLroQRAvh3AKC9D6QV9WYk5PFuSRqbuIQrwa5ppwCgrS4D
+IksWyg0KxkLi4Wb5jg51dRg=
+=Alhc
+-----END PGP SIGNATURE-----
diff --git a/sci-physics/camfr/camfr-1.2.ebuild b/sci-physics/camfr/camfr-1.2.ebuild
new file mode 100644
index 000000000000..c5d0aabd9000
--- /dev/null
+++ b/sci-physics/camfr/camfr-1.2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/camfr/camfr-1.2.ebuild,v 1.1 2006/07/02 22:59:39 metalgod Exp $
+
+inherit eutils distutils fortran
+
+S=${WORKDIR}/camfr_${PV}
+IUSE="ifc"
+DESCRIPTION="Full vectorial Maxwell solver based on eigenmode expansion"
+SRC_URI="mirror://sourceforge/camfr/${P}.tgz"
+HOMEPAGE="http://camfr.sourceforge.net/"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+DEPEND="dev-lang/python
+ >=dev-util/scons-0.94
+ >=dev-python/numeric-23.1
+ >=dev-libs/boost-1.30.2
+ >=dev-python/imaging-1.1.4
+ >=dev-libs/blitz-0.7
+ virtual/lapack
+ virtual/tetex
+ virtual/ghostscript
+ >=app-text/texi2html-1.64"
+FORTAN="g77"
+
+src_unpack() {
+ python -c "import ImageTk" 2>/dev/null
+ if [ $? -ne 0 ]; then
+ eerror "Python and imaging don't have Tk support enabled."
+ eerror "Set the tcltk USE flag and reinstall python and imaging before continuing."
+ die
+ fi
+
+ unpack ${P}.tgz
+ cp ${FILESDIR}/machine_cfg.py ${S}/machine_cfg.py
+ cp ${FILESDIR}/SConstruct ${S}
+ cp ${FILESDIR}/camfr_wrap.cpp ${S}/camfr
+ echo '1;' >> ${S}/docs/texi2html.init
+}
+
+src_compile() {
+
+ cd ${S}
+ distutils_src_compile
+
+ cd ${S}/docs
+ make
+}
+
+
+src_install() {
+ distutils_src_install
+
+ cp ${S}/docs/camfr.pdf ${D}/usr/share/doc/${P}
+ dohtml ${S}/docs/*.html ${S}/docs/*.css
+ mkdir ${D}/usr/share/doc/${P}/html/figs
+ cp ${S}/docs/figs/*.png ${D}/usr/share/doc/${P}/html/figs
+ cp ${S}/docs/figs/*.gif ${D}/usr/share/doc/${P}/html/figs
+}
diff --git a/sci-physics/camfr/files/SConstruct b/sci-physics/camfr/files/SConstruct
new file mode 100644
index 000000000000..349d068cd0bd
--- /dev/null
+++ b/sci-physics/camfr/files/SConstruct
@@ -0,0 +1,22 @@
+from machine_cfg import *
+
+SConsignFile() # Tell Scons not to write data all over the file system.
+
+Default("camfr")
+import os
+
+# Construct build environments.
+
+env = Environment(CPPPATH = include_dirs,
+ LIBPATH = library_dirs,
+ CC = cc, CCFLAGS = flags,
+ CXX = cxx, CXXFLAGS = flags,
+ F77 = f77, F77FLAGS = fflags,
+ LINK = link, LINKFLAGS = link_flags,
+ LIBS = libs, SHLIBPREFIX = "",
+ ENV = {'PATH' : os.environ['PATH']})
+
+env_noopt = env.Copy(CCFLAGS = flags_noopt, CXXFLAGS = flags_noopt)
+
+Export("env", "env_noopt")
+SConscript("camfr/SConscript") \ No newline at end of file
diff --git a/sci-physics/camfr/files/digest-camfr-1.2 b/sci-physics/camfr/files/digest-camfr-1.2
new file mode 100644
index 000000000000..7c2519eae7f3
--- /dev/null
+++ b/sci-physics/camfr/files/digest-camfr-1.2
@@ -0,0 +1,3 @@
+MD5 ae2a13bfb1eee556c9712ee8ecf4a27e camfr-1.2.tgz 717898
+RMD160 e7f259391a18fc946d42cf3d4637268cd2c13019 camfr-1.2.tgz 717898
+SHA256 5036f61bb34ff4b3fe2b08a21b408443edc1190814961d25e0c25079b7f4537d camfr-1.2.tgz 717898
diff --git a/sci-physics/camfr/files/machine_cfg.py b/sci-physics/camfr/files/machine_cfg.py
new file mode 100644
index 000000000000..698f9e8eaed2
--- /dev/null
+++ b/sci-physics/camfr/files/machine_cfg.py
@@ -0,0 +1,57 @@
+# This Python script contains all the machine dependent settings
+# needed during the build process.
+
+# Get compiler flags from Gentoo's /etc/make.conf.
+
+import popen2
+
+r, w = popen2.popen2("source /etc/make.conf ; echo $CXXFLAGS")
+CXXFLAGS = r.readline().strip()
+r.close()
+w.close()
+
+# Compilers to be used.
+
+cc = "gcc"
+cxx = "g++"
+f77 = "g77"
+
+link = cxx
+link_flags = ""
+
+# Compiler flags.
+#
+# Note: for the Fortran name definition you can define one of the following
+# preprocessor macros:
+#
+# FORTRAN_SYMBOLS_WITHOUT_TRAILING_UNDERSCORES
+# FORTRAN_SYMBOLS_WITH_SINGLE_TRAILING_UNDERSCORE
+# FORTRAN_SYMBOLS_WITH_DOUBLE_TRAILING_UNDERSCORES
+
+base_flags = "-ftemplate-depth-60 \
+ -DFORTRAN_SYMBOLS_WITH_SINGLE_TRAILING_UNDERSCORE -DNDEBUG"
+
+flags_noopt = base_flags
+flags = base_flags + CXXFLAGS
+fflags = flags
+
+# Include directories.
+
+include_dirs = ["/usr/include/python2.4"]
+
+# Library directories.
+
+library_dirs = [""]
+
+# Library names.
+
+libs = ["boost_python", "blitz", "lapack", "blas", "g2c"]
+
+# Command to strip library of excess symbols:
+
+dllsuffix = ".so"
+strip_command = "strip --strip-unneeded camfr/_camfr" + dllsuffix
+
+# Extra files to copy into installation directory.
+
+extra_files = [("doc", ["docs/camfr.pdf"])]
diff --git a/sci-physics/camfr/files/throw_patch.diff b/sci-physics/camfr/files/throw_patch.diff
new file mode 100644
index 000000000000..4830f99d6f02
--- /dev/null
+++ b/sci-physics/camfr/files/throw_patch.diff
@@ -0,0 +1,29 @@
+--- camfr_1.2/camfr/camfr_wrap.cpp 2003-11-03 16:03:13.000000000 +0100
++++ camfr_1.2_new/camfr/camfr_wrap.cpp 2006-02-23 15:29:36.000000000 +0100
+@@ -352,7 +352,7 @@
+ {
+ PyErr_SetString(PyExc_ValueError,
+ "set_inc_field_function only implemented for slabs.");
+- throw boost::python::argument_error();
++ exit (-1); //throw boost::python::argument_error();
+ }
+
+ PythonFunction f(o);
+@@ -395,7 +395,7 @@
+ {
+ PyErr_SetString(PyExc_ValueError,
+ "set_inc_field_gaussian only implemented for slabs.");
+- throw boost::python::argument_error();
++ exit (-1); //throw boost::python::argument_error();
+ }
+
+ GaussianFunction f(height,width,pos);
+@@ -442,7 +442,7 @@
+ {
+ PyErr_SetString(PyExc_ValueError,
+ "set_inc_field_plane_Wave only implemented for slabs.");
+- throw boost::python::argument_error();
++ exit (-1); //throw boost::python::argument_error();
+ }
+
+ Complex index = slab->get_core()->n();
diff --git a/sci-physics/camfr/metadata.xml b/sci-physics/camfr/metadata.xml
new file mode 100644
index 000000000000..84c19bd696e9
--- /dev/null
+++ b/sci-physics/camfr/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>pbienst@gentoo.org</email>
+ <name>Peter Bienstman</name>
+</maintainer>
+</pkgmetadata>