1 |
dberkholz 08/03/24 19:45:25 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pvm-3.4.5-r3.ebuild |
5 |
Log: |
6 |
Actually respect the user's compiler and CFLAGS. Build libpvm3.a PIC so that other apps can link against it on architectures such as amd64. |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.37 sys-cluster/pvm/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/pvm/ChangeLog?rev=1.37&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/pvm/ChangeLog?rev=1.37&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/pvm/ChangeLog?r1=1.36&r2=1.37 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sys-cluster/pvm/ChangeLog,v |
19 |
retrieving revision 1.36 |
20 |
retrieving revision 1.37 |
21 |
diff -u -r1.36 -r1.37 |
22 |
--- ChangeLog 31 Jan 2008 07:01:18 -0000 1.36 |
23 |
+++ ChangeLog 24 Mar 2008 19:45:24 -0000 1.37 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for sys-cluster/pvm |
26 |
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pvm/ChangeLog,v 1.36 2008/01/31 07:01:18 dberkholz Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pvm/ChangeLog,v 1.37 2008/03/24 19:45:24 dberkholz Exp $ |
29 |
+ |
30 |
+*pvm-3.4.5-r3 (24 Mar 2008) |
31 |
+ |
32 |
+ 24 Mar 2008; Donnie Berkholz <dberkholz@g.o>; |
33 |
+ +files/pvm-3.4.5-respect-cflags.patch, +pvm-3.4.5-r3.ebuild: |
34 |
+ Actually respect the user's compiler and CFLAGS. Build libpvm3.a PIC so |
35 |
+ that other apps can link against it on architectures such as amd64. |
36 |
|
37 |
31 Jan 2008; Donnie Berkholz <dberkholz@g.o>; -pvm-3.4.4-r2.ebuild: |
38 |
Clean up. |
39 |
|
40 |
|
41 |
|
42 |
1.1 sys-cluster/pvm/pvm-3.4.5-r3.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/pvm/pvm-3.4.5-r3.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/pvm/pvm-3.4.5-r3.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: pvm-3.4.5-r3.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2008 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/sys-cluster/pvm/pvm-3.4.5-r3.ebuild,v 1.1 2008/03/24 19:45:24 dberkholz Exp $ |
52 |
|
53 |
inherit eutils multilib flag-o-matic toolchain-funcs |
54 |
|
55 |
MY_P="${P/-}" |
56 |
DESCRIPTION="PVM: Parallel Virtual Machine" |
57 |
HOMEPAGE="http://www.epm.ornl.gov/pvm/pvm_home.html" |
58 |
SRC_URI="ftp://ftp.netlib.org/pvm3/${MY_P}.tgz " |
59 |
IUSE="crypt" |
60 |
DEPEND="" |
61 |
RDEPEND="virtual/libc" |
62 |
SLOT="0" |
63 |
LICENSE="as-is" |
64 |
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
65 |
S="${WORKDIR}/${MY_P%%.*}" |
66 |
|
67 |
src_unpack() { |
68 |
unpack ${A} |
69 |
cd ${S} |
70 |
# Patches from Red Hat |
71 |
epatch ${FILESDIR}/${P}-envvars.patch || die |
72 |
epatch ${FILESDIR}/${P}-strerror.patch || die |
73 |
epatch ${FILESDIR}/${P}-extra-arches.patch || die |
74 |
epatch ${FILESDIR}/${P}-x86_64-segfault.patch || die |
75 |
epatch ${FILESDIR}/${P}-gcc-4.1.patch || die |
76 |
epatch ${FILESDIR}/${P}-bug_147337.patch || die |
77 |
|
78 |
# setup def files for other archs |
79 |
cp conf/LINUX64.def conf/LINUXPPC64.def |
80 |
cp conf/LINUX64.m4 conf/LINUXPPC64.m4 |
81 |
|
82 |
epatch ${FILESDIR}/${P}-ppc64.patch || die |
83 |
epatch ${FILESDIR}/${P}-respect-cflags.patch || die |
84 |
|
85 |
# s390 should go in this list if there is ever interest |
86 |
# Patch the 64bit def files to look in lib64 dirs as well for libraries. |
87 |
for I in 64 PPC64; do |
88 |
sed -i -e "s|ARCHDLIB =|ARCHDLIB = -L/usr/lib64 -L/usr/X11R6/lib64 |" conf/LINUX${I}.def || die "Failed to fix 64-bit" |
89 |
sed -i -e "s|ARCHLIB =|ARCHLIB = -L/usr/lib64 -L/usr/X11R6/lib64 |" conf/LINUX${I}.def || die "Failed to fix 64-bit" |
90 |
done |
91 |
|
92 |
if use crypt; then |
93 |
for i in ${S}/conf/LINUX*def; do |
94 |
sed -i.orig -e '/^ARCHCFLAGS/s~/usr/bin/rsh~/usr/bin/ssh~' "${i}" || |
95 |
die "Failed to set ssh instead of rsh" |
96 |
done |
97 |
fi |
98 |
|
99 |
} |
100 |
|
101 |
src_compile() { |
102 |
unset PVM_ARCH |
103 |
|
104 |
export PVM_ROOT="${S}" |
105 |
|
106 |
# libpvm3.a needs to be PIC so other apps can link against it. The |
107 |
# build system sucks, so it's a huge pain to try to make only the |
108 |
# library PIC. |
109 |
if [[ $(get_libdir) = lib64 ]]; then |
110 |
append-flags -fPIC |
111 |
fi |
112 |
|
113 |
emake \ |
114 |
CC=$(tc-getCC) \ |
115 |
CFLOPTS="${CFLAGS}" \ |
116 |
|| die |
117 |
} |
118 |
|
119 |
src_install() { |
120 |
dodir /usr/share/man |
121 |
rm man/man1 -fr |
122 |
mv man/man3 ${D}/usr/share/man/ |
123 |
|
124 |
dodoc Readme |
125 |
|
126 |
#installs the rest of pvm |
127 |
dodir /usr/share/pvm3 |
128 |
cp -r * ${D}/usr/share/pvm3 |
129 |
dodir /usr/bin |
130 |
|
131 |
# (#132711) Symlink to the right spot on multilib systems |
132 |
local linuxdir |
133 |
if [[ $(get_libdir) = lib64 ]]; then |
134 |
linuxdir="LINUX64" |
135 |
else |
136 |
linuxdir="LINUX" |
137 |
fi |
138 |
ln -s /usr/share/pvm3/lib/${linuxdir}/pvm ${D}/usr/bin/pvm |
139 |
ln -s /usr/share/pvm3/lib/${linuxdir}/pvmd3 ${D}/usr/bin/pvmd3 |
140 |
ln -s /usr/share/pvm3/lib/${linuxdir}/pvmgs ${D}/usr/bin/pvmgs |
141 |
|
142 |
#environment variables: |
143 |
echo PVM_ROOT=/usr/share/pvm3 > ${T}/98pvm |
144 |
echo PVM_ARCH=$(${D}/usr/share/pvm3/lib/pvmgetarch) >> ${T}/98pvm |
145 |
doenvd ${T}/98pvm |
146 |
} |
147 |
|
148 |
pkg_postinst() { |
149 |
ewarn "Environment variables have changed. Do not forget to run etc-update," |
150 |
ewarn "reboot or perform . /etc/profile before using pvm!" |
151 |
} |
152 |
|
153 |
|
154 |
|
155 |
-- |
156 |
gentoo-commits@l.g.o mailing list |