Add sci-physics/sawsim pacakge.
authorW. Trevor King <wking@drexel.edu>
Tue, 2 Nov 2010 19:15:51 +0000 (15:15 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 2 Nov 2010 19:15:51 +0000 (15:15 -0400)
sci-physics/sawsim/ChangeLog [new file with mode: 0644]
sci-physics/sawsim/Manifest [new file with mode: 0644]
sci-physics/sawsim/metadata.xml [new file with mode: 0644]
sci-physics/sawsim/sawsim-9999.ebuild [new file with mode: 0644]

diff --git a/sci-physics/sawsim/ChangeLog b/sci-physics/sawsim/ChangeLog
new file mode 100644 (file)
index 0000000..8687b78
--- /dev/null
@@ -0,0 +1,14 @@
+# ChangeLog for media-gfx/metacam
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+*sawsim-9999 (02 Nov 2010)
+  07 Nov 2009; W. Trevor King <wking@drexel.edu> ChangeLog, metadata.xml, sawsim-9999.ebuild :
+  - Created ebuild suite for sawsim.
+  - Added initial ChangeLog which should be updated whenever the
+  package is updated in any way. This changelog is targetted to
+  users. This means that the comments should well explained and
+  written in clean English. The details about writing correct
+  changelogs are explained in the skel.ChangeLog file which you can
+  find in the root directory of the portage repository.
diff --git a/sci-physics/sawsim/Manifest b/sci-physics/sawsim/Manifest
new file mode 100644 (file)
index 0000000..f03770d
--- /dev/null
@@ -0,0 +1,3 @@
+EBUILD sawsim-9999.ebuild 1673 RMD160 a8d6045cbba40be73d7fb1dd4702b7bd3062da56 SHA1 26e23029db411b7ed896b9bfc38807b71cfc6aa8 SHA256 bf6b23310c4c8ea8d5aa12de20a1a38113ce917053e1df379dfcd94741ac0d12
+MISC ChangeLog 693 RMD160 14bb465302d5cd5ffd5ad2b0a5f67ffa6c72b6b4 SHA1 3cf70d316d71450a3e66ad1e03aa0c997af87350 SHA256 8cbc7ea70fd23daf14840cb537c107f8db0a545a4d1b9ab3da2d5fd0baca2641
+MISC metadata.xml 350 RMD160 530de16a9eca41ef2a505ab1d6f55abaee9d9f75 SHA1 c97a2b0e72288464ae048fdf60ec7d41d6b57351 SHA256 1cbcf298da442e91fc6e58bbca098279a42fd8dfb18f18ca7d3d402a956497c5
diff --git a/sci-physics/sawsim/metadata.xml b/sci-physics/sawsim/metadata.xml
new file mode 100644 (file)
index 0000000..6d6fa11
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd></herd>
+       <maintainer>
+               <email>wking@drexel.edu</email>
+               <name>W. Trevor King</name>
+               <description>sawsim is a monte-carlo simulator for force
+                 spectroscopy experiments.</description>
+       </maintainer>
+</pkgmetadata>
diff --git a/sci-physics/sawsim/sawsim-9999.ebuild b/sci-physics/sawsim/sawsim-9999.ebuild
new file mode 100644 (file)
index 0000000..ce27ff4
--- /dev/null
@@ -0,0 +1,81 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+PYTHON_DEPEND="*:2.6"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit eutils distutils
+
+if [[ ${PV} == "9999" ]] ; then
+       inherit git
+       EGIT_BRANCH="master"
+       EGIT_REPO_URI="http://www.physics.drexel.edu/~wking/code/git/sawsim.git"
+       SRC_URI=""
+else
+       SRC_URI="http://www.physics.drexel.edu/~wking/code/got/gitweb.cgi?p=${PN}.git;a=snapshot;h=v${PV};sf=tgz"
+fi
+
+DESCRIPTION="sawsim force spectroscopy simulator"
+HOMEPAGE="http://www.physics.drexel.edu/~wking/unfolding-disasters/posts/sawsim/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="mpi doc"
+
+RDEPEND="dev-lang/python
+       dev-python/nose
+       dev-python/matplotlib
+       dev-python/numpy
+       sci-libs/scipy
+       mpi? ( dev-python/mpi4py )"
+DEPEND="${RDEPEND}
+       dev-vcs/git
+       app-text/noweb
+       sci-libs/gsl
+       dev-libs/check
+  doc? ( dev-tex/pgf )"
+
+
+src_unpack() {
+       if [[ ${PV} == "9999" ]] ; then
+               git_src_unpack
+       else
+               unpack ${A}
+       fi
+       cd "${S}"
+}
+
+src_prepare() {
+       notangle -Rmakefile src/sawsim.nw | sed 's/        /\t/' > Makefile
+       assert "Failed to generate Makefile"
+       distutils_src_prepare
+}
+
+src_compile() {
+       emake all_bin || die "couldn't build binary targets"
+       if use doc ; then
+               emake all_doc || die "couldn't build documentation"
+       fi
+       distutils_src_compile
+}
+
+src_install() {
+       exeinto /usr/bin/
+       doexe bin/sawsim bin/k_model_utils bin/tension_model_utils || die "install failed"
+       dodoc README || die "dodoc failed"
+       if use doc ; then
+               dodoc doc/sawsim.pdf || die "couldn't install manual"
+       fi
+       distutils_src_install
+}
+
+pkg_postinst() {
+       python_mod_optimize py${PN}
+}
+
+pkg_postrm() {
+       python_mod_cleanup py${PN}
+}