From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QUBJ1-0000ZC-4v for garchives@archives.gentoo.org; Wed, 08 Jun 2011 05:27:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C27901C008; Wed, 8 Jun 2011 05:27:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 83F571C00E for ; Wed, 8 Jun 2011 05:27:37 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DAC362AC00E for ; Wed, 8 Jun 2011 05:27:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 502C88003C for ; Wed, 8 Jun 2011 05:27:36 +0000 (UTC) From: "Dongxu Li" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Dongxu Li" Message-ID: Subject: [gentoo-commits] proj/sci:master commit in: sci-visualization/v_sim/ X-VCS-Repository: proj/sci X-VCS-Files: sci-visualization/v_sim/ChangeLog sci-visualization/v_sim/metadata.xml sci-visualization/v_sim/v_sim-3.6.0.ebuild X-VCS-Directories: sci-visualization/v_sim/ X-VCS-Committer: dongxuli X-VCS-Committer-Name: Dongxu Li X-VCS-Revision: fd20d68c669c843f878f8f5c35102fc0da011fa7 Date: Wed, 8 Jun 2011 05:27:36 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 52e8fd15bd6fbc314e7b116eee9179a6 commit: fd20d68c669c843f878f8f5c35102fc0da011fa7 Author: Dongxu Li gmail com> AuthorDate: Wed Jun 8 05:27:14 2011 +0000 Commit: Dongxu Li gmail com> CommitDate: Wed Jun 8 05:27:14 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3Dfd20d68c 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: $ =20 + 08 Jun 2011; Dongxu Li +v_sim-3.6.0.ebuild: + Version bump to 3.6.0, added USE flags: cube xsf. Added dependency of=20 + sci-libs/etsf_io for USE=3Dabinit, still need to fix sci-physics/abini= t for proper abinit plugin support + 07 Mar 2011; Justin Lecher v_sim-3.5.1.ebuild: Correct Slots for gtk 3 introduction to tree =20 diff --git a/sci-visualization/v_sim/metadata.xml b/sci-visualization/v_s= im/metadata.xml index 3fbb2de..b771a05 100644 --- a/sci-visualization/v_sim/metadata.xml +++ b/sci-visualization/v_sim/metadata.xml @@ -7,6 +7,8 @@ Add support for ABINIT file formats sci-phys= ics/abinit + Add support plug-in support for Cube files (densiti= es and structures) Add support for ABINIT file formats sci-c= hemistry/openbabel + plug-in support for files that follow the XCrysDen f= ormat for structural positions and densities diff --git a/sci-visualization/v_sim/v_sim-3.6.0.ebuild b/sci-visualizati= on/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=3D"4" + +inherit eutils + +DESCRIPTION=3D"Displays atomic structures such as crystals, gain boudari= es, molecules" +HOMEPAGE=3D"http://www-drfmc.cea.fr/sp2m/L_Sim/V_Sim/index.en.html" +SRC_URI=3D"http://www-drfmc.cea.fr/sp2m/L_Sim/V_Sim/download/${P}.tar.bz= 2" + +LICENSE=3D"CeCILL-1.1" +SLOT=3D"0" +KEYWORDS=3D"~amd64 ~x86" + +# doc: Adds developer documentation (/usr/share/doc/${PF}/APIreference= /) +# Example files are copied even when USE=3D'-doc' +# debug: Adds console debug messages. This is really verbose. +IUSE=3D"abinit blas doc cube debug netcdf openbabel xsf" + +RDEPEND=3D" + x11-libs/gtk+:2 + dev-libs/glib:2 + x11-libs/pango + media-libs/libpng + virtual/opengl" +DEPEND=3D"${RDEPEND} + abinit? ( sci-physics/abinit sci-libs/etsf_io ) + blas? ( virtual/blas ) + sys-apps/sed + netcdf? ( sci-libs/netcdf ) + openbabel? ( sci-chemistry/openbabel ) + doc? ( >=3Ddev-util/gtk-doc-1.4-r1 )" + +src_prepare() { + # The author follows Debian conventions, hence the example files and do= cs + # 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 o= n updating directories in visu_basic.c" +} + +src_configure() { + if use doc ; then + gtkdocize + fi + local MY_CONF=3D"--without-etsf-io" + use abinit && MY_CONF=3D"--with-etsf-io=3D/usr --with-etsf-io-include=3D= /usr/lib/finclude --with-etsf-io-libdir=3D/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=3D"${S}" emake +} + +src_install() { + emake DESTDIR=3D"${D}" install +} + +pkg_postinst() { + einfo "Example files are in /usr/share/doc/${PF}/examples" + einfo "(even with USE=3D'-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 fi= les" + 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.r= c" + einfo "If you choose 'none' or if you comment the line, your current" + einfo "gtk skin will be used." +}