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 1Q91N9-0003Rk-N2 for garchives@archives.gentoo.org; Sun, 10 Apr 2011 20:36:40 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2BDDA1C01F; Sun, 10 Apr 2011 20:36:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id DDD691C01F for ; Sun, 10 Apr 2011 20:36:29 +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 6D6081B40AB for ; Sun, 10 Apr 2011 20:36:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 99EFC80065 for ; Sun, 10 Apr 2011 20:36:28 +0000 (UTC) From: "Christoph Junghans" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Christoph Junghans" Message-ID: <4ebdb9e169700251efa6fb3998e5f656263838b8.kleiner_otti@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: app-doc/gromacs-manual/ X-VCS-Repository: proj/sci X-VCS-Files: app-doc/gromacs-manual/gromacs-manual-9999.ebuild X-VCS-Directories: app-doc/gromacs-manual/ X-VCS-Committer: kleiner_otti X-VCS-Committer-Name: Christoph Junghans X-VCS-Revision: 4ebdb9e169700251efa6fb3998e5f656263838b8 Date: Sun, 10 Apr 2011 20:36:28 +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: e294fe8a6273d2eb3b64aed5911db6c5 commit: 4ebdb9e169700251efa6fb3998e5f656263838b8 Author: Christoph Junghans gentoo org> AuthorDate: Sun Apr 10 20:36:19 2011 +0000 Commit: Christoph Junghans gmx de> CommitDate: Sun Apr 10 20:36:19 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/sci.git;a=3Dc= ommit;h=3D4ebdb9e1 [app-doc/gromacs-manual] updated (Portage version: 2.1.9.42/git/Linux i686, signed Manifest commit with ke= y C2000586) --- app-doc/gromacs-manual/gromacs-manual-9999.ebuild | 32 ++++++++-------= ----- 1 files changed, 13 insertions(+), 19 deletions(-) diff --git a/app-doc/gromacs-manual/gromacs-manual-9999.ebuild b/app-doc/= gromacs-manual/gromacs-manual-9999.ebuild index edc27c7..c5a593a 100644 --- a/app-doc/gromacs-manual/gromacs-manual-9999.ebuild +++ b/app-doc/gromacs-manual/gromacs-manual-9999.ebuild @@ -1,13 +1,13 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ =20 -EAPI=3D"3" +EAPI=3D"4" =20 EGIT_REPO_URI=3D"git://git.gromacs.org/manual" EGIT_BRANCH=3D"master" =20 -inherit git +inherit cmake-utils git =20 DESCRIPTION=3D"Manual for gromacs" HOMEPAGE=3D"http://www.gromacs.org/" @@ -25,25 +25,19 @@ DEPEND=3D"=3Dsci-chemistry/gromacs-${PV} =20 RDEPEND=3D"" =20 -src_compile() { +src_prepare() { local progs - einfo "Building mdp option file" - ./mkmdp /usr/share/doc/gromacs-${PV}/html || die - progs=3D$(sed -e '/g_luck/d' /usr/share/gromacs/programs.list | tr '\n'= ' ') || \ - die "sed of programs.list failed" - einfo "Building manpages for ${progs}" - sed -i "s@^\(set PROGRAMS\).*@\1 =3D '${progs}'@" mkman || die - ./mkman /usr/bin || die - cp /usr/share/gromacs/programs.txt . || die - einfo "Building program list" - ./mk_proglist || die - einfo "Building common option file" - emake g_options.tex || die - einfo "Building pdf manual" - emake pdf || die + progs=3D$(tr '\n' ' ' <${EROOT}usr/share/gromacs/programs.list) || die + sed -i "s/^\(PROGRAMS\).*/\1=3D'${progs}'/" mkman || die + sed -i "s@^\(INSTALLED.*=3D\).*@\1${EROOT}usr/bin/g_options@" mkoptions= || die + sed -e "s!\${GMXSRC}/admin/\(programs.txt\)!${EROOT}usr/share/gromacs/\= 1!" \ + -e "s!\${GMXSRC}/share/html!${EROOT}usr/share/doc/gromacs-${PV}/html!"= \ + -e "s!\${GMXBIN}!${EROOT}usr/bin!" \ + -e '/FATAL_ERROR.*GMX\(SRC\|BIN\)/s/^/#/' \ + -i CMakeLists.txt || die "sed of CMakeLists.txt failed" } =20 src_install() { insinto /usr/share/doc/gromacs-${PV} - newins gromacs.pdf manual-${PV}.pdf + newins ${CMAKE_BUILD_DIR}/gromacs.pdf manual-${PV}.pdf }