public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Dongxu Li" <dongxuli2011@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-visualization/v_sim/
Date: Wed,  8 Jun 2011 05:27:36 +0000 (UTC)	[thread overview]
Message-ID: <fd20d68c669c843f878f8f5c35102fc0da011fa7.dongxuli@gentoo> (raw)

commit:     fd20d68c669c843f878f8f5c35102fc0da011fa7
Author:     Dongxu Li <dongxuli2011 <AT> gmail <DOT> com>
AuthorDate: Wed Jun  8 05:27:14 2011 +0000
Commit:     Dongxu Li <dongxuli2011 <AT> gmail <DOT> com>
CommitDate: Wed Jun  8 05:27:14 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=fd20d68c

sci-visualization/v_sim: version bump to 3.6.0

---
 sci-visualization/v_sim/ChangeLog          |    4 +
 sci-visualization/v_sim/metadata.xml       |    2 +
 sci-visualization/v_sim/v_sim-3.6.0.ebuild |   90 ++++++++++++++++++++++++++++
 3 files changed, 96 insertions(+), 0 deletions(-)

diff --git a/sci-visualization/v_sim/ChangeLog b/sci-visualization/v_sim/ChangeLog
index ef07543..4559b70 100644
--- a/sci-visualization/v_sim/ChangeLog
+++ b/sci-visualization/v_sim/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  08 Jun 2011; Dongxu Li <dongxuli2011@gmail.com> +v_sim-3.6.0.ebuild:
+  Version bump to 3.6.0, added USE flags: cube xsf. Added dependency of 
+  sci-libs/etsf_io for USE=abinit, still need to fix sci-physics/abinit for proper abinit plugin support
+
   07 Mar 2011; Justin Lecher <jlec@gentoo.org> v_sim-3.5.1.ebuild:
   Correct Slots for gtk 3 introduction to tree
 

diff --git a/sci-visualization/v_sim/metadata.xml b/sci-visualization/v_sim/metadata.xml
index 3fbb2de..b771a05 100644
--- a/sci-visualization/v_sim/metadata.xml
+++ b/sci-visualization/v_sim/metadata.xml
@@ -7,6 +7,8 @@
 </maintainer>
 <use>
 	<flag name='abinit'>Add support for ABINIT file formats <pkg>sci-physics/abinit</pkg></flag>
+	<flag name='cube'>Add support plug-in support for Cube files (densities and structures)</flag>
 	<flag name='openbabel'>Add support for ABINIT file formats <pkg>sci-chemistry/openbabel</pkg></flag>
+	<flag name='xsf'>plug-in support for files that follow the XCrysDen format for structural positions and densities</flag>
 </use>
 </pkgmetadata>

diff --git a/sci-visualization/v_sim/v_sim-3.6.0.ebuild b/sci-visualization/v_sim/v_sim-3.6.0.ebuild
new file mode 100644
index 0000000..cf3db75
--- /dev/null
+++ b/sci-visualization/v_sim/v_sim-3.6.0.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit eutils
+
+DESCRIPTION="Displays atomic structures such as crystals, gain boudaries, molecules"
+HOMEPAGE="http://www-drfmc.cea.fr/sp2m/L_Sim/V_Sim/index.en.html"
+SRC_URI="http://www-drfmc.cea.fr/sp2m/L_Sim/V_Sim/download/${P}.tar.bz2"
+
+LICENSE="CeCILL-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# doc:   Adds developer documentation (/usr/share/doc/${PF}/APIreference/)
+#        Example files are copied even when USE='-doc'
+# debug: Adds console debug messages. This is really verbose.
+IUSE="abinit blas doc cube debug netcdf openbabel xsf"
+
+RDEPEND="
+	x11-libs/gtk+:2
+	dev-libs/glib:2
+	x11-libs/pango
+	media-libs/libpng
+	virtual/opengl"
+DEPEND="${RDEPEND}
+	abinit? ( sci-physics/abinit sci-libs/etsf_io )
+	blas? ( virtual/blas )
+	sys-apps/sed
+	netcdf? ( sci-libs/netcdf )
+	openbabel? ( sci-chemistry/openbabel )
+	doc?  ( >=dev-util/gtk-doc-1.4-r1 )"
+
+src_prepare() {
+	# The author follows Debian conventions, hence the example files and docs
+	# end up in /usr/share/doc/${PN} instead of /usr/share/doc/${PF}. We
+	# correct this here.
+	sed -i -e "s@/doc/.\${package}.@/doc/${PF}@g" -e "s@/doc/\$PACKAGE@/doc/${PF}@g" configure \
+		|| die "sed failed on tweaking configure file"
+	# TODO: test if this can be done via --docdir
+
+	# The /share/ directories are #define in the code and must be adapted.
+	sed -i -e "s:/usr/local/:/usr/:g" src/visu_basic.c || die "sed failed on updating directories in visu_basic.c"
+}
+
+src_configure() {
+	if use doc ; then
+		gtkdocize
+	fi
+	local MY_CONF="--without-etsf-io"
+	use abinit && MY_CONF="--with-etsf-io=/usr --with-etsf-io-include=/usr/lib/finclude --with-etsf-io-libdir=/usr/$(get_libdir)"
+	econf "${MY_CONF}" \
+		$(use_with blas) \
+		$(use_with cube) \
+		$(use_with netcdf) \
+		$(use_with openbabel) \
+		$(use_with xsf) \
+		$(use_enable doc gtk-doc) \
+		$(use_enable debug debug-messages)
+}
+
+src_compile() {
+	HOME="${S}" emake
+}
+
+src_install() {
+	emake DESTDIR="${D}" install
+}
+
+pkg_postinst() {
+	einfo "Example files are in /usr/share/doc/${PF}/examples"
+	einfo "(even with USE='-doc')"
+	einfo ""
+	einfo "The global v_sim config files are in /usr/share/${PN}/"
+	einfo "There are a few options which can only be configured in these files"
+	einfo "and not through the UI. For example, one can specify different"
+	einfo "colors for the box and the axes in the files, but in the UI one can"
+	einfo "only change them together."
+	einfo ""
+	einfo "V_sim uses by default its own weird gtk skin. You can edit the"
+	einfo "skin settings in /usr/share/${PN}/v_sim.rc"
+	einfo "You can change the skin file used in the config file v_sim.par:"
+	einfo "Go to the line 'config_skin[gtk]: V_Sim'. The argument may be:"
+	einfo "'V_Sim', 'none' or the path to your own rc file. The keyword "
+	einfo "'V_Sim' stands for the default rc file, /usr/share/v_sim/v_sim.rc"
+	einfo "If you choose 'none' or if you comment the line, your current"
+	einfo "gtk skin will be used."
+}



             reply	other threads:[~2011-06-08  5:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-08  5:27 Dongxu Li [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-02-22 15:46 [gentoo-commits] proj/sci:master commit in: sci-visualization/v_sim/ Justin Lecher
2011-06-24 17:09 Justin Lecher
2011-06-08 12:22 Dongxu Li
2011-04-09 21:46 Dongxu Li
2011-03-07 12:01 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fd20d68c669c843f878f8f5c35102fc0da011fa7.dongxuli@gentoo \
    --to=dongxuli2011@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox