diff options
author | Donnie Berkholz <spyderous@gentoo.org> | 2005-07-13 10:12:46 +0000 |
---|---|---|
committer | Donnie Berkholz <spyderous@gentoo.org> | 2005-07-13 10:12:46 +0000 |
commit | f463f844508f1594b8698a3d834adeec04e41f61 (patch) | |
tree | b20833003196aca1d021e3e80207bfa2f1407242 /sci-chemistry | |
parent | Pruned old ebuilds. (diff) | |
download | gentoo-2-f463f844508f1594b8698a3d834adeec04e41f61.tar.gz gentoo-2-f463f844508f1594b8698a3d834adeec04e41f61.tar.bz2 gentoo-2-f463f844508f1594b8698a3d834adeec04e41f61.zip |
Initial commit.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'sci-chemistry')
-rw-r--r-- | sci-chemistry/molmol/ChangeLog | 10 | ||||
-rw-r--r-- | sci-chemistry/molmol/Manifest | 3 | ||||
-rw-r--r-- | sci-chemistry/molmol/files/digest-molmol-2k_p2 | 2 | ||||
-rw-r--r-- | sci-chemistry/molmol/files/pjf_RH9_molmol2k2.diff | 115 | ||||
-rw-r--r-- | sci-chemistry/molmol/metadata.xml | 9 | ||||
-rw-r--r-- | sci-chemistry/molmol/molmol-2k_p2.ebuild | 70 |
6 files changed, 209 insertions, 0 deletions
diff --git a/sci-chemistry/molmol/ChangeLog b/sci-chemistry/molmol/ChangeLog new file mode 100644 index 000000000000..88a553701a21 --- /dev/null +++ b/sci-chemistry/molmol/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sci-chemistry/molmol +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/molmol/ChangeLog,v 1.1 2005/07/13 10:12:46 spyderous Exp $ + +*molmol-2k_p2 (13 Jul 2005) + + 13 Jul 2005; Donnie Berkholz <spyderous@gentoo.org>; + +files/pjf_RH9_molmol2k2.diff, +metadata.xml, +molmol-2k_p2.ebuild: + Initial commit. + diff --git a/sci-chemistry/molmol/Manifest b/sci-chemistry/molmol/Manifest new file mode 100644 index 000000000000..b308177725d2 --- /dev/null +++ b/sci-chemistry/molmol/Manifest @@ -0,0 +1,3 @@ +MD5 2baf701562c1f1d280505879b90eb40e molmol-2k_p2.ebuild 2033 +MD5 cf1e205f2decc5b55e9970d9b74f199b files/pjf_RH9_molmol2k2.diff 3655 +MD5 362482186ee96b64ce53b5e0bea55df6 files/digest-molmol-2k_p2 140 diff --git a/sci-chemistry/molmol/files/digest-molmol-2k_p2 b/sci-chemistry/molmol/files/digest-molmol-2k_p2 new file mode 100644 index 000000000000..ace8b09d3c59 --- /dev/null +++ b/sci-chemistry/molmol/files/digest-molmol-2k_p2 @@ -0,0 +1,2 @@ +MD5 e1f4416d8041a67fa08cadb03ed91c7c molmol-2k.2.0-src.tar.gz 1088805 +MD5 517545b60b0179ab691a679ed29903a7 molmol-2k.2.0-doc.tar.gz 1062297 diff --git a/sci-chemistry/molmol/files/pjf_RH9_molmol2k2.diff b/sci-chemistry/molmol/files/pjf_RH9_molmol2k2.diff new file mode 100644 index 000000000000..5ce277086190 --- /dev/null +++ b/sci-chemistry/molmol/files/pjf_RH9_molmol2k2.diff @@ -0,0 +1,115 @@ +Only in molmol_rh9: makedef +diff -ru molmol_rh9_unpatched/makedef.lnx molmol_rh9/makedef.lnx +--- molmol_rh9_unpatched/makedef.lnx 2003-01-20 16:10:18.000000000 -0500 ++++ molmol_rh9/makedef.lnx 2003-05-06 10:40:08.000000000 -0400 +@@ -1,31 +1,38 @@ + # definitions for Linux + +-MISSFUNC = -Dsqrtf=sqrt -Dexpf=exp -Dlogf=log -Dpowf=pow \ +- -Dsinf=sin -Dcosf=cos -Dtanf=tan \ +- -Dasinf=asin -Dacosf=acos -Datanf=atan -Datan2f=atan2 \ +- -Dfabsf=fabs -Dceilf=ceil +-MCPPFLAGS = $(MISSFUNC) +-MCFLAGS = -O2 +- +-RANLIB = /bin/true +-WAIT = /usr/bin/sleep 2 +-SHELL = /bin/sh +-CPP = /lib/cpp +-CC = /usr/bin/gcc ++#TIFFDIR = $(TOP)/tiff-v3.4/libtiff ++#JPEGDIR = $(TOP)/../libjpeg/jpeg-6a ++#PNGDIR = $(TOP)/../libpng/libpng-0.89c ++#ZLIBDIR = $(TOP)/../libpng/zlib-1.0.2 ++ ++IMGDEF = -DTIFF_SUPPORT -DJPEG_SUPPORT -DPNG_SUPPORT ++IMGLIB = -ltiff -ljpeg -lpng -lz ++IMGINCL = # -I$(TIFFDIR) -I$(JPEGDIR) -I$(PNGDIR) -I$(ZLIBDIR) ++ ++XINCL = -I/usr/X11R6/include ++ ++CC=gcc ++MCPPFLAGS = ++MCFLAGS =-pipe -O3 -ffast-math -march=i686 -mcpu=i686 ++ ++RANLIB = /bin/true ++WAIT = sleep 2 ++SHELL = /bin/sh ++CPP = /lib/cpp + +-SGDEVDIR = x11 no pov rib vrml1 vrml2 ps fm +- +-SGDEVDEF = -DSG_DEV_X11 -DSG_DEV_NO -DSG_DEV_POV -DSG_DEV_RIB -DSG_DEV_VRML1 -DSG_DEV_VRML2 -DSG_DEV_PS -DSG_DEV_CPS -DSG_DEV_FM3 -DSG_DEV_FM4 ++SGDEVDIR = ogl x11 no pov rib vrml1 vrml2 ps fm ++SGDEVDEF = -DSG_DEV_OGL -DSG_DEV_X11 -DSG_DEV_NO -DSG_DEV_POV -DSG_DEV_RIB -DSG_DEV_VRML1 -DSG_DEV_VRML2 -DSG_DEV_PS -DSG_DEV_CPS -DSG_DEV_FM3 -DSG_DEV_FM4 + + PUDEVDIR = motif tty + PUDEVDEF = -DPU_DEV_MOTIF -DPU_DEV_TTY + +-IODEVDIR = motx11 ttyno +-IODEVDEF = -DIO_DEV_MOTIF_X11 -DIO_DEV_TTY_NO ++IODEVDIR = motogl motx11 ttyno ++IODEVDEF = -DIO_DEV_MOTIF_OGL -DIO_DEV_MOTIF_X11 -DIO_DEV_TTY_NO + ++OPENGLDEF = -DOPENGL_SGI_STEREO + MOTIFDEF = -DFUNCPROTO + +-SYSLIB = -L/usr/X11R6/lib -lXm -lXt -lXpm -lX11 -lm -lc -lieee ++SYSLIB = -lGLw -lGLU -lGL -lXm -lXp -lXt -lXext -lX11 -lm + + TOOLSDIR = $(TOP)/tools +-SGDIR = $(TOP)/sg ++SGDIR = $(TOP)/sg +diff -ru molmol_rh9_unpatched/src/main/Makefile molmol_rh9/src/main/Makefile +--- molmol_rh9_unpatched/src/main/Makefile 1997-02-17 10:01:14.000000000 -0500 ++++ molmol_rh9/src/main/Makefile 2003-05-06 11:56:55.000000000 -0400 +@@ -22,7 +22,7 @@ + default: $(PROGRAM) + + $(PROGRAM): $(OBJ) $(LIBS) $(SGLIB) $(TOOLSLIB) +- $(CC) -o $@ $(CFLAGS) $(OBJ) $(LIBS) $(SGLIB) $(TOOLSLIB) $(SYSLIB) ++ $(CC) -o $@ $(CFLAGS) $(OBJ) $(LIBS) $(SGLIB) $(TOOLSLIB) $(SYSLIB) -L/usr/X11R6/lib + + clean: + rm -f $(OBJ) $(PROGRAM) core *.ps +diff -ru molmol_rh9_unpatched/src/motogl/MotOGL.c molmol_rh9/src/motogl/MotOGL.c +--- molmol_rh9_unpatched/src/motogl/MotOGL.c 2000-05-29 12:31:51.000000000 -0400 ++++ molmol_rh9/src/motogl/MotOGL.c 2003-05-06 11:51:05.000000000 -0400 +@@ -31,7 +31,7 @@ + #include <Xm/XmStrDefs.h> + + #define BOOL MOTIF_BOOL /* hack to avoid naming conflict */ +-#include <X11/GLw/GLwMDrawA.h> ++#include <GL/GLwMDrawA.h> + #undef BOOL + + #include <sg.h> +diff -ru molmol_rh9_unpatched/src/os/GFile.c molmol_rh9/src/os/GFile.c +--- molmol_rh9_unpatched/src/os/GFile.c 2001-06-17 14:59:17.000000000 -0400 ++++ molmol_rh9/src/os/GFile.c 2003-05-06 12:34:34.000000000 -0400 +@@ -30,6 +30,7 @@ + #include <string.h> + #include <memory.h> + #include <ctype.h> ++#include <errno.h> + + #include <linlist.h> + +@@ -38,7 +39,7 @@ + const INT32 GFMagic = 0x3b7a12f9; + + #ifndef __linux__ +-extern char *sys_errlist[]; ++extern char *strerror(); + #endif + extern int errno; + +@@ -81,7 +82,7 @@ + { + if (msg == NULL) { + if (NextMsg == NULL) +- msg = sys_errlist[errno]; ++ msg = strerror(errno); + else + msg = NextMsg; + } diff --git a/sci-chemistry/molmol/metadata.xml b/sci-chemistry/molmol/metadata.xml new file mode 100644 index 000000000000..211b8bd0f0a4 --- /dev/null +++ b/sci-chemistry/molmol/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +<maintainer> +<email>spyderous@gentoo.org</email> +<name>Donnie Berkholz</name> +</maintainer> +</pkgmetadata> diff --git a/sci-chemistry/molmol/molmol-2k_p2.ebuild b/sci-chemistry/molmol/molmol-2k_p2.ebuild new file mode 100644 index 000000000000..d7765bf4ed99 --- /dev/null +++ b/sci-chemistry/molmol/molmol-2k_p2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/molmol/molmol-2k_p2.ebuild,v 1.1 2005/07/13 10:12:46 spyderous Exp $ + +inherit eutils toolchain-funcs multilib + +MY_PV="${PV/_p/.}.0" +MY_P="${PN}-${MY_PV}" + +DESCRIPTION="Publication-quality molecular visualization package" +HOMEPAGE="http://hugin.ethz.ch/wuthrich/software/molmol/index.html" +SRC_URI="ftp://ftp.mol.biol.ethz.ch/software/MOLMOL/unix-gzip/${MY_P}-src.tar.gz + ftp://ftp.mol.biol.ethz.ch/software/MOLMOL/unix-gzip/${MY_P}-doc.tar.gz" +LICENSE="molmol" +SLOT="0" +KEYWORDS="~x86" +IUSE="" +DEPEND="virtual/motif + virtual/x11 + media-libs/jpeg + media-libs/tiff + media-libs/libpng + sys-libs/zlib" +# Run-time dependencies, same as DEPEND if RDEPEND isn't defined: +#RDEPEND="" +# Yeah, the gz's aren't in a subdir. +S=${WORKDIR} + +MMDIR="/usr/$(get_libdir)/molmol" + +src_unpack() { + unpack ${A} + + # Patch from http://pjf.net/science/molmol.html, where src.rpm is provided + epatch ${FILESDIR}/pjf_RH9_molmol2k2.diff + + ln -s makedef.lnx ${S}/makedef + + # 1) The Korn shell is only taken by default because the Bourne shell + # on DEC systems cannot handle the script. + # We don't want this needless dependency. + # 2) Fix up MOLMOLHOME, which determines the directory the binary's in. + sed -i \ + -e "s:/bin/ksh:/bin/sh:" \ + -e "s:^MOLMOLHOME.*:MOLMOLHOME=${MMDIR}:" \ + ${S}/molmol + # 1) Set CFLAGS. + # 2) Set compiler. + sed -i \ + -e "s:^MCFLAGS.*:MCFLAGS = ${CFLAGS}:" \ + -e "s:^CC.*:CC = $(tc-getCC):" \ + ${S}/makedef +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + dobin molmol + + EXEDESTTREE=/usr/lib/molmol newexe src/main/molmol molmol.lnx + + # Macros, setup and tips must be subdirs of molmol. + # Perhaps we should do /usr/lib/molmol? + + INSDESTTREE=${MMDIR} doins -r auxil help macros man setup tips + + dodoc HISTORY README +} |