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 1Q8fys-0002ay-ME for garchives@archives.gentoo.org; Sat, 09 Apr 2011 21:46:10 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A4353E0458; Sat, 9 Apr 2011 21:46:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 602A9E0458 for ; Sat, 9 Apr 2011 21:46:02 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7C1C41B4065 for ; Sat, 9 Apr 2011 21:46:01 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id BFA5080065 for ; Sat, 9 Apr 2011 21:46:00 +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: <16a8aa8e8f7d9eaeb909f04bb8be2d94ba3f5cbf.dongxuli@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-visualization/v_sim/ X-VCS-Repository: proj/sci X-VCS-Files: sci-visualization/v_sim/metadata.xml sci-visualization/v_sim/v_sim-3.5.2.ebuild X-VCS-Directories: sci-visualization/v_sim/ X-VCS-Committer: dongxuli X-VCS-Committer-Name: Dongxu Li X-VCS-Revision: 16a8aa8e8f7d9eaeb909f04bb8be2d94ba3f5cbf Date: Sat, 9 Apr 2011 21:46:00 +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: 2678daeff9bd53da94d08077eba66316 commit: 16a8aa8e8f7d9eaeb909f04bb8be2d94ba3f5cbf Author: Dongxu Li gmail com> AuthorDate: Sat Apr 9 17:45:24 2011 +0000 Commit: Dongxu Li gmail com> CommitDate: Sat Apr 9 17:45:24 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3D16a8aa8e v_sim: version bump to 3.5.2 --- sci-visualization/v_sim/metadata.xml | 4 + sci-visualization/v_sim/v_sim-3.5.2.ebuild | 87 ++++++++++++++++++++++= ++++++ 2 files changed, 91 insertions(+), 0 deletions(-) diff --git a/sci-visualization/v_sim/metadata.xml b/sci-visualization/v_s= im/metadata.xml index efb490d..3fbb2de 100644 --- a/sci-visualization/v_sim/metadata.xml +++ b/sci-visualization/v_sim/metadata.xml @@ -5,4 +5,8 @@ sci@gentoo.org + + Add support for ABINIT file formats sci-phys= ics/abinit + Add support for ABINIT file formats sci-c= hemistry/openbabel + diff --git a/sci-visualization/v_sim/v_sim-3.5.2.ebuild b/sci-visualizati= on/v_sim/v_sim-3.5.2.ebuild new file mode 100644 index 0000000..cbcd0c4 --- /dev/null +++ b/sci-visualization/v_sim/v_sim-3.5.2.ebuild @@ -0,0 +1,87 @@ +# 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 debug netcdf openbabel" + +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 ) + 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 + + econf \ + $(use_with blas) \ + $(use_with netcdf) \ + $(use_with openbabel) \ + $(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." +}