blob: 9b46e72997e92c9f17a842c49b858510eceee26d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="3"
EGIT_REPO_URI="git://git.gromacs.org/manual"
EGIT_BRANCH="master"
inherit git
DESCRIPTION="Manual for gromacs"
HOMEPAGE="http://www.gromacs.org/"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
IUSE=""
DEPEND="=sci-chemistry/gromacs-${PV}
dev-texlive/texlive-latex
sys-apps/coreutils
app-shells/tcsh"
RDEPEND=""
src_compile() {
local progs
./mkmdp /usr/share/doc/gromacs-${PV}/html || die "mkmdp failed"
progs=$(sed -e '/luck/d' /usr/share/gromacs/programs.list | tr '\n' ' ') || \
die "sed of programs.list failed"
echo "Building manpages for ${progs}"
sed -e "s@^set PROGRAMS.*@set PROGRAMS = '${progs}'@" mkman > mkman.gentoo || \
die "sed of mkman failed"
cmp -s mkman mkman.gentoo && die "sed of mkman.gentoo failed"
chmod 755 ./mkman.gentoo || die "chmod of mkman.gentoo failed"
./mkman.gentoo /usr/bin || die "mkman failed"
cp /usr/share/gromacs/programs.txt . || die "cp of programs.txt failed"
./mk_proglist || die "mk_proglist failed"
g_options -man tex || die "g_options failed"
mv g_options.tex options.tex || die "mv of options.tex failed"
make pdf
}
src_install() {
insinto /usr/share/doc/gromacs-${PV}
newins gromacs.pdf manual-${PV}.pdf
}
|