diff options
author | Justin Lecher <jlec@gentoo.org> | 2010-04-15 14:46:26 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2010-04-15 14:46:26 +0000 |
commit | d992656ce40e2654412759c92380eb874773d7f4 (patch) | |
tree | 2d4b322ded234659a79d87f8ef962a76006ecbed /sci-chemistry | |
parent | Version bump dev-python/couchdb-python to 0.7. (diff) | |
download | gentoo-2-d992656ce40e2654412759c92380eb874773d7f4.tar.gz gentoo-2-d992656ce40e2654412759c92380eb874773d7f4.tar.bz2 gentoo-2-d992656ce40e2654412759c92380eb874773d7f4.zip |
Install docs into correct path, #315399; Link as-needed conform; build docs only with USE=doc, #248348
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sci-chemistry')
-rw-r--r-- | sci-chemistry/moldy/ChangeLog | 9 | ||||
-rw-r--r-- | sci-chemistry/moldy/files/2.16e-as-needed.patch | 65 | ||||
-rw-r--r-- | sci-chemistry/moldy/moldy-2.16e-r2.ebuild | 66 |
3 files changed, 139 insertions, 1 deletions
diff --git a/sci-chemistry/moldy/ChangeLog b/sci-chemistry/moldy/ChangeLog index 7425667bedd3..9502d5eac6a8 100644 --- a/sci-chemistry/moldy/ChangeLog +++ b/sci-chemistry/moldy/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sci-chemistry/moldy # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/moldy/ChangeLog,v 1.17 2010/02/17 21:22:21 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/moldy/ChangeLog,v 1.18 2010/04/15 14:46:26 jlec Exp $ + +*moldy-2.16e-r2 (15 Apr 2010) + + 15 Apr 2010; Justin Lecher <jlec@gentoo.org> +files/2.16e-as-needed.patch, + +moldy-2.16e-r2.ebuild: + Install docs into correct path, #315399; Link as-needed conform; build + docs only with USE=doc, #248348 *moldy-2.16e-r1 (17 Feb 2010) diff --git a/sci-chemistry/moldy/files/2.16e-as-needed.patch b/sci-chemistry/moldy/files/2.16e-as-needed.patch new file mode 100644 index 000000000000..67399e08560e --- /dev/null +++ b/sci-chemistry/moldy/files/2.16e-as-needed.patch @@ -0,0 +1,65 @@ +diff --git a/Makefile.in b/Makefile.in +index 0b02f00..ec588a8 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -115,25 +115,25 @@ VMSBUILD= compile_moldy.com link_moldy.com defcomm.com\ + + DOSBUILD= Makefile.mak OFILES.RSP SHAKOBJS.RSP Makefile.w32 + +-all: moldy utilities Makefile ++all: moldy utilities + + moldy: $(OFILES) $(EXTRA_OBJ) $(HFILES) +- $(CC) -o moldy $(LDFLAGS) $(OFILES) $(EXTRA_OBJ) $(LIBS) ++ $(CC) $(LDFLAGS) -o moldy $(LDFLAGS) $(OFILES) $(EXTRA_OBJ) $(LIBS) + + moldyext: moldyext.c $(LIBOBJS) $(HFILES) +- $(CC) $(CFLAGS) -o moldyext $(OPT) $(DEFS) $(LDFLAGS1) moldyext.c $(LIBOBJS) $(LDFLAGS) $(LIBS) ++ $(CC) $(LDFLAGS) $(CFLAGS) -o moldyext $(OPT) $(DEFS) $(LDFLAGS1) moldyext.c $(LIBOBJS) $(LIBS) + + manalyze: manalyze.c $(HFILES) +- $(CC) $(CFLAGS) -o manalyze $(OPT) $(DEFS) $(LDFLAGS1) manalyze.c $(LDFLAGS) $(LIBS) ++ $(CC) $(LDFLAGS) $(CFLAGS) -o manalyze $(OPT) $(DEFS) $(LDFLAGS1) manalyze.c $(LIBS) + + dumpanal: dumpanal.c xdr.o $(HFILES) +- $(CC) $(CFLAGS) -o dumpanal $(OPT) $(DEFS) $(LDFLAGS1) dumpanal.c xdr.o $(LDFLAGS) $(LIBS) ++ $(CC) $(LDFLAGS) $(CFLAGS) -o dumpanal $(OPT) $(DEFS) $(LDFLAGS1) dumpanal.c xdr.o $(LIBS) + + dumpext: dumpext.c xdr.o utlsup.o matrix.o $(LIBOBJS) $(HFILES) +- $(CC) $(CFLAGS) -o dumpext $(OPT) $(DEFS) $(LDFLAGS1) dumpext.c xdr.o utlsup.o matrix.o $(LIBOBJS) $(LDFLAGS) $(LIBS) ++ $(CC) $(LDFLAGS) $(CFLAGS) -o dumpext $(OPT) $(DEFS) $(LDFLAGS1) dumpext.c xdr.o utlsup.o matrix.o $(LIBOBJS) $(LIBS) + + dumpconv: dumpconv.c xdr.o $(HFILES) +- $(CC) $(CFLAGS) -o dumpconv $(OPT) $(DEFS) $(LDFLAGS1) dumpconv.c xdr.o $(LDFLAGS) $(LIBS) ++ $(CC) $(LDFLAGS) $(CFLAGS) -o dumpconv $(OPT) $(DEFS) $(LDFLAGS1) dumpconv.c xdr.o $(LIBS) + + #mdtraj: mdtraj.o $(SHAKOBJS) $(LIBOBJS) + # $(CC) -o mdtraj $(LDFLAGS) mdtraj.o $(SHAKOBJS) $(LIBOBJS) $(LIBS) +@@ -142,21 +142,21 @@ mdshak: mdshak.o $(SHAKOBJS) $(LIBOBJS) + $(CC) -o mdshak $(LDFLAGS) mdshak.o $(SHAKOBJS) $(LIBOBJS) $(LIBS) + + msd: msd.o $(SHAKOBJS) $(LIBOBJS) +- $(CC) -o msd $(LDFLAGS1) msd.o $(SHAKOBJS) $(LIBOBJS) $(LDFLAGS) $(LIBS) ++ $(CC) $(LDFLAGS) -o msd $(LDFLAGS1) msd.o $(SHAKOBJS) $(LIBOBJS) $(LIBS) + + mdvaf: mdvaf.o $(SHAKOBJS) $(LIBOBJS) +- $(CC) -o mdvaf $(LDFLAGS1) mdvaf.o $(SHAKOBJS) $(LIBOBJS) $(LDFLAGS) $(LIBS) ++ $(CC) $(LDFLAGS) -o mdvaf $(LDFLAGS1) mdvaf.o $(SHAKOBJS) $(LIBOBJS) $(LIBS) + mdavpos: mdavpos.o $(SHAKOBJS) $(LIBOBJS) +- $(CC) -o mdavpos $(LDFLAGS1) mdavpos.o $(SHAKOBJS) $(LIBOBJS) $(LDFLAGS) $(LIBS) ++ $(CC) $(LDFLAGS) -o mdavpos $(LDFLAGS1) mdavpos.o $(SHAKOBJS) $(LIBOBJS) $(LIBS) + + mdbond: mdbond.o $(SHAKOBJS) $(LIBOBJS) +- $(CC) -o mdbond $(LDFLAGS1) mdbond.o $(SHAKOBJS) $(LIBOBJS) $(LDFLAGS) $(LIBS) ++ $(CC) $(LDFLAGS) -o mdbond $(LDFLAGS1) mdbond.o $(SHAKOBJS) $(LIBOBJS) $(LIBS) + + bdist: bdist.c $(HFILES) +- $(CC) $(CFLAGS) -o bdist $(OPT) $(DEFS) $(LDFLAGS1) bdist.c $(LIBOBJS) $(LDFLAGS) $(LIBS) ++ $(CC) $(CFLAGS) $(LDFLAGS) -o bdist $(OPT) $(DEFS) $(LDFLAGS1) bdist.c $(LIBOBJS) $(LIBS) + + ransub: ransub.o $(SHAKOBJS) $(LIBOBJS) +- $(CC) -o ransub $(LDFLAGS1) ransub.o $(SHAKOBJS) $(LIBOBJS) $(LDFLAGS) $(LIBS) ++ $(CC) $(LDFLAGS) -o ransub $(LDFLAGS1) ransub.o $(SHAKOBJS) $(LIBOBJS) $(LIBS) + + utilities: $(UTILS) $(UTILS2) + diff --git a/sci-chemistry/moldy/moldy-2.16e-r2.ebuild b/sci-chemistry/moldy/moldy-2.16e-r2.ebuild new file mode 100644 index 000000000000..4dec449079b4 --- /dev/null +++ b/sci-chemistry/moldy/moldy-2.16e-r2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/moldy/moldy-2.16e-r2.ebuild,v 1.1 2010/04/15 14:46:26 jlec Exp $ + +EAPI="3" + +inherit eutils toolchain-funcs + +DESCRIPTION="Program for performing molecular dynamics simulations." +HOMEPAGE="http://www.ccp5.ac.uk/moldy/moldy.html" +SRC_URI="ftp://ftp.earth.ox.ac.uk/pub/keith/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64 ~x86-linux ~ppc-macos" +IUSE="doc examples" + +DEPEND="doc? ( virtual/latex-base )" + +S="${WORKDIR}" + +src_prepare() { + epatch "${FILESDIR}"/${PV}-as-needed.patch +} + +src_configure() { + #Individuals may want to edit the OPT* variables below. + #From the READ.ME: + #You may need to "hand-tune" compiler or optimization options, + #which may be specified by setting the OPT and OPT2 environment + #variables. OPT2 is used to compile only the most performance-critical + #modules and usually will select a very high level of optimization. + #It should be safe to select an optimization which means "treat all + #function arguments as restricted pointers which are not aliased to + #any other object". OPT is used for less preformance-critical modules + #and may be set to a lower level of optimization than OPT2. + + OPT="${CFLAGS}" \ + OPT2="${CFLAGS} ${CFLAGS_OPT}" \ + CC=$(tc-getCC) \ + econf +} + +src_compile() { + emake || die + # To prevent sandbox violations by metafont + if use doc; then + VARTEXFONTS="${T}"/fonts emake moldy.pdf || die + fi +} + +src_install() { + dodir /usr/bin + emake prefix="${ED}"/usr install || die + dodoc BENCHMARK READ.ME RELNOTES || die + + if use examples; then + rm Makefile.in configure.in config.h.in + insinto /usr/share/${PN}/examples/ + doins *.in *.out control.* || die + fi + if use doc; then + insinto /usr/share/doc/${PF}/pdf + newins moldy.pdf moldy-manual.pdf + fi +} |