public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Christoph Junghans" <ottxor@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/votca-csg/
Date: Wed, 30 Jan 2013 05:28:10 +0000 (UTC)	[thread overview]
Message-ID: <1359523673.791b1a7e08cd16a7f36b7494e50e462dbb28f27c.ottxor@gentoo> (raw)

commit:     791b1a7e08cd16a7f36b7494e50e462dbb28f27c
Author:     Christoph Junghans <ottxor <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 30 05:27:53 2013 +0000
Commit:     Christoph Junghans <ottxor <AT> gentoo <DOT> org>
CommitDate: Wed Jan 30 05:27:53 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=791b1a7e

clean up + merge csg-{manual,tutorials}

Package-Manager: portage-2.2.0_alpha161

---
 sci-chemistry/votca-csg/ChangeLog             |    5 ++-
 sci-chemistry/votca-csg/votca-csg-9999.ebuild |   43 +++++++++++++++++++-----
 2 files changed, 38 insertions(+), 10 deletions(-)

diff --git a/sci-chemistry/votca-csg/ChangeLog b/sci-chemistry/votca-csg/ChangeLog
index bd1f2d3..0e965ae 100644
--- a/sci-chemistry/votca-csg/ChangeLog
+++ b/sci-chemistry/votca-csg/ChangeLog
@@ -1,7 +1,10 @@
 # ChangeLog for sci-chemistry/votca-csg
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  30 Jan 2013; Christoph Junghans <ottxor@gentoo.org> votca-csg-9999.ebuild:
+  clean up + merge csg-{manual,tutorials}
+
   31 Dec 2012; Christoph Junghans <ottxor@gentoo.org> votca-csg-9999.ebuild:
   update EHG_REPO_URI
 

diff --git a/sci-chemistry/votca-csg/votca-csg-9999.ebuild b/sci-chemistry/votca-csg/votca-csg-9999.ebuild
index 10953bc..2a3c943 100644
--- a/sci-chemistry/votca-csg/votca-csg-9999.ebuild
+++ b/sci-chemistry/votca-csg/votca-csg-9999.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
-EAPI=4
+EAPI=5
 
 inherit bash-completion-r1 cmake-utils multilib
 
@@ -17,8 +17,6 @@ else
 	SRC_URI=""
 	inherit mercurial
 	EHG_REPO_URI="https://code.google.com/p/votca.csg/"
-	PDEPEND="${PDEPEND} doc? ( =app-doc/${PN}-manual-${PV} )
-		examples? ( =sci-chemistry/${PN}-tutorials-${PV} )"
 fi
 
 DESCRIPTION="Votca coarse-graining engine"
@@ -29,17 +27,38 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-macos"
 
 RDEPEND="=sci-libs/votca-tools-${PV}
-	gromacs? ( sci-chemistry/gromacs )
+	gromacs? ( sci-chemistry/gromacs:= )
 	dev-lang/perl
 	app-shells/bash"
 
 DEPEND="${RDEPEND}
-	doc? ( || ( <app-doc/doxygen-1.7.6.1[-nodot] >=app-doc/doxygen-1.7.6.1[dot] ) )
+	doc? (
+		|| ( <app-doc/doxygen-1.7.6.1[-nodot] >=app-doc/doxygen-1.7.6.1[dot] )
+		dev-texlive/texlive-latexextra
+		virtual/latex-base
+		dev-tex/pgf
+	)
 	>=app-text/txt2tags-2.5
 	virtual/pkgconfig"
 
 DOCS=( README NOTICE )
 
+src_unpack() {
+	if [[ ${PV} != *9999 ]]; then
+		default
+	else
+		mercurial_src_unpack
+		use doc && mercurial_fetch \
+			https://code.google.com/p/votca.csg-manual/ \
+			votca.csg-manual \
+			"${WORKDIR}/manual"
+		use examples && mercurial_fetch \
+			https://code.google.com/p/votca.csg-tutorials/ \
+			votca.csg-tutorials \
+			"${WORKDIR}/${PN}-tutorials"
+	fi
+}
+
 src_configure() {
 	local GMX_DEV="OFF" GMX_DOUBLE="OFF" extra
 
@@ -56,6 +75,7 @@ src_configure() {
 		$(cmake-utils_use_with gromacs GMX)
 		-DWITH_GMX_DEVEL="${GMX_DEV}"
 		-DGMX_DOUBLE="${GMX_DOUBLE}"
+		-DCMAKE_INSTALL_RPATH="\\\$ORIGIN/../$(get_libdir)"
 		${extra}
 		-DWITH_RC_FILES=OFF
 		-DLIB=$(get_libdir)
@@ -67,17 +87,22 @@ src_install() {
 	newbashcomp scripts/csg-completion.bash ${PN}
 	cmake-utils_src_install
 	if use doc; then
-		if [ -n "${PV##*9999}" ]; then
+		if [[ ${PV} = *9999* ]]; then
+			pushd "${WORKDIR}"/manual
+			emake PATH="${PATH}:${ED}/usr/bin"
+			newdoc manual.pdf "${PN}-manual-${PV}.pdf"
+			popd > /dev/null
+		else
 			dodoc "${DISTDIR}/${PN}-manual-${PV}.pdf"
 		fi
 		cd "${CMAKE_BUILD_DIR}" || die
 		emake html
 		dohtml -r share/doc/html/*
 	fi
-	if use examples && [ -n "${PV##*9999}" ]; then
+	if use examples; then
 		insinto "/usr/share/doc/${PF}/tutorials"
 		docompress -x "/usr/share/doc/${PF}/tutorials"
-		doins -r "${WORKDIR}/${PN}-tutorials-${PV}"/*
+		doins -r "${WORKDIR}/${PN}"-tutorials*/*
 	fi
 }
 


             reply	other threads:[~2013-01-30  5:28 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-30  5:28 Christoph Junghans [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-07-14 17:31 [gentoo-commits] proj/sci:master commit in: sci-chemistry/votca-csg/ Christoph Junghans
2015-11-16  4:23 Christoph Junghans
2015-09-24  5:20 Christoph Junghans
2015-09-21 17:44 Justin Lecher
2015-02-12  0:44 Christoph Junghans
2014-10-24  3:33 Christoph Junghans
2014-09-01  0:21 Christoph Junghans
2014-02-27 23:01 Sebastien Fabbro
2013-03-09  1:48 Christoph Junghans
2012-12-31  3:17 Christoph Junghans
2012-07-25  1:24 Christoph Junghans
2012-07-18  2:53 Christoph Junghans
2012-03-24 22:46 Christoph Junghans
2011-11-05  2:33 Christoph Junghans
2011-11-05  2:33 Christoph Junghans
2011-11-03 23:51 Christoph Junghans
2011-09-10 15:04 Christoph Junghans
2011-09-10 14:57 Christoph Junghans
2011-09-05 17:13 Christoph Junghans
2011-08-25 20:33 Christoph Junghans
2011-08-14 15:04 Christoph Junghans
2011-07-17 13:14 Christoph Junghans
2011-07-17 12:38 Christoph Junghans
2011-06-24 17:09 Justin Lecher
2011-06-03 21:59 Christoph Junghans
2011-05-28 12:27 Christoph Junghans
2011-03-10 19:51 Christoph Junghans
2011-03-08 21:40 Christoph Junghans
2011-03-03 21:43 Christoph Junghans
2011-03-03 21:43 Christoph Junghans
2011-02-20 13:30 Christoph Junghans
2011-02-19 17:03 Christoph Junghans
2011-02-13 17:27 Christoph Junghans
2011-02-12 16:23 Christoph Junghans
2011-02-12 14:53 Christoph Junghans

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=1359523673.791b1a7e08cd16a7f36b7494e50e462dbb28f27c.ottxor@gentoo \
    --to=ottxor@gentoo.org \
    --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