1 |
jlec 10/03/30 19:55:26 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: molmol-2k_p2-r2.ebuild |
5 |
Log: |
6 |
Ldflags fix and prefix fix |
7 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.19 sci-chemistry/molmol/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/molmol/ChangeLog?rev=1.19&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/molmol/ChangeLog?rev=1.19&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/molmol/ChangeLog?r1=1.18&r2=1.19 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/molmol/ChangeLog,v |
19 |
retrieving revision 1.18 |
20 |
retrieving revision 1.19 |
21 |
diff -u -r1.18 -r1.19 |
22 |
--- ChangeLog 7 Mar 2010 11:19:03 -0000 1.18 |
23 |
+++ ChangeLog 30 Mar 2010 19:55:26 -0000 1.19 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for sci-chemistry/molmol |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/molmol/ChangeLog,v 1.18 2010/03/07 11:19:03 jlec Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/molmol/ChangeLog,v 1.19 2010/03/30 19:55:26 jlec Exp $ |
29 |
+ |
30 |
+*molmol-2k_p2-r2 (30 Mar 2010) |
31 |
+ |
32 |
+ 30 Mar 2010; Justin Lecher <jlec@g.o> molmol-2k_p2-r1.ebuild, |
33 |
+ +molmol-2k_p2-r2.ebuild, +files/ldflags.patch, +files/prefix.patch: |
34 |
+ Respecting LDFLAGS and fixes for prefix |
35 |
|
36 |
*molmol-2k_p2-r1 (07 Mar 2010) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 sci-chemistry/molmol/molmol-2k_p2-r2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/molmol/molmol-2k_p2-r2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-chemistry/molmol/molmol-2k_p2-r2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: molmol-2k_p2-r2.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/molmol/molmol-2k_p2-r2.ebuild,v 1.1 2010/03/30 19:55:26 jlec Exp $ |
51 |
|
52 |
EAPI="3" |
53 |
|
54 |
inherit eutils toolchain-funcs multilib prefix |
55 |
|
56 |
MY_PV="${PV/_p/.}.0" |
57 |
MY_P="${PN}-${MY_PV}" |
58 |
|
59 |
DESCRIPTION="Publication-quality molecular visualization package" |
60 |
HOMEPAGE="http://hugin.ethz.ch/wuthrich/software/molmol/index.html" |
61 |
SRC_URI="ftp://ftp.mol.biol.ethz.ch/software/MOLMOL/unix-gzip/${MY_P}-src.tar.gz |
62 |
ftp://ftp.mol.biol.ethz.ch/software/MOLMOL/unix-gzip/${MY_P}-doc.tar.gz" |
63 |
LICENSE="molmol" |
64 |
SLOT="0" |
65 |
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux" |
66 |
IUSE="" |
67 |
DEPEND=" |
68 |
media-libs/mesa[motif] |
69 |
media-libs/jpeg |
70 |
media-libs/tiff |
71 |
media-libs/libpng |
72 |
sys-libs/zlib |
73 |
x11-apps/xdpyinfo |
74 |
x11-libs/openmotif |
75 |
x11-libs/libXpm" |
76 |
# Run-time dependencies, same as DEPEND if RDEPEND isn't defined: |
77 |
#RDEPEND="" |
78 |
# Yeah, the gz's aren't in a subdir. |
79 |
S="${WORKDIR}" |
80 |
|
81 |
MMDIR="/usr/$(get_libdir)/molmol" |
82 |
|
83 |
src_prepare() { |
84 |
rm -rf tiff* |
85 |
# Patch from http://pjf.net/science/molmol.html, where src.rpm is provided |
86 |
epatch "${FILESDIR}"/pjf_RH9_molmol2k2.diff |
87 |
|
88 |
epatch "${FILESDIR}"/prefix.patch |
89 |
eprefixify molmol |
90 |
|
91 |
epatch "${FILESDIR}"/ldflags.patch |
92 |
|
93 |
ln -s makedef.lnx "${S}"/makedef |
94 |
|
95 |
# 1) The Korn shell is only taken by default because the Bourne shell |
96 |
# on DEC systems cannot handle the script. |
97 |
# We don't want this needless dependency. |
98 |
# 2) Fix up MOLMOLHOME, which determines the directory the binary's in. |
99 |
sed -i \ |
100 |
-e "s:/bin/ksh:${EPREFIX}/bin/sh:" \ |
101 |
-e "s:^MOLMOLHOME.*:MOLMOLHOME=${EPREFIX}/${MMDIR}:" \ |
102 |
"${S}"/molmol |
103 |
# 1) Set CFLAGS. |
104 |
# 2) Set compiler. |
105 |
sed -i \ |
106 |
-e "s:^MCFLAGS.*:MCFLAGS = ${CFLAGS}:" \ |
107 |
-e "s:^CC.*:CC = $(tc-getCC):" \ |
108 |
"${S}"/makedef |
109 |
} |
110 |
|
111 |
src_compile() { |
112 |
emake -j1 || die "emake failed" |
113 |
} |
114 |
|
115 |
src_install() { |
116 |
dobin molmol || die |
117 |
|
118 |
exeinto ${MMDIR} |
119 |
newexe src/main/molmol molmol.lnx || die |
120 |
insinto ${MMDIR} |
121 |
doins -r auxil help macros man setup tips || die |
122 |
|
123 |
dodoc HISTORY README || die |
124 |
} |