1 |
jlec 12/04/04 07:09:52 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: dsdp-5.8-r2.ebuild |
5 |
Removed: dsdp-5.8-r1.ebuild |
6 |
Log: |
7 |
sci-libs/dsdp: Fix underlinking, #410735 |
8 |
|
9 |
(Portage version: 2.2.0_alpha99/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.6 sci-libs/dsdp/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/dsdp/ChangeLog?rev=1.6&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/dsdp/ChangeLog?rev=1.6&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/dsdp/ChangeLog?r1=1.5&r2=1.6 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/dsdp/ChangeLog,v |
21 |
retrieving revision 1.5 |
22 |
retrieving revision 1.6 |
23 |
diff -u -r1.5 -r1.6 |
24 |
--- ChangeLog 17 Jan 2012 17:36:56 -0000 1.5 |
25 |
+++ ChangeLog 4 Apr 2012 07:09:52 -0000 1.6 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for sci-libs/dsdp |
28 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/dsdp/ChangeLog,v 1.5 2012/01/17 17:36:56 bicatali Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/dsdp/ChangeLog,v 1.6 2012/04/04 07:09:52 jlec Exp $ |
31 |
+ |
32 |
+*dsdp-5.8-r2 (04 Apr 2012) |
33 |
+ |
34 |
+ 04 Apr 2012; Justin Lecher <jlec@g.o> -dsdp-5.8-r1.ebuild, |
35 |
+ +dsdp-5.8-r2.ebuild: |
36 |
+ Fix underlinking, #410735 |
37 |
|
38 |
*dsdp-5.8-r1 (17 Jan 2012) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 sci-libs/dsdp/dsdp-5.8-r2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/dsdp/dsdp-5.8-r2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/dsdp/dsdp-5.8-r2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: dsdp-5.8-r2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2012 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/dsdp/dsdp-5.8-r2.ebuild,v 1.1 2012/04/04 07:09:52 jlec Exp $ |
53 |
|
54 |
EAPI=4 |
55 |
|
56 |
inherit eutils toolchain-funcs versionator |
57 |
|
58 |
MYP=DSDP${PV} |
59 |
|
60 |
DESCRIPTION="Software for interior-point for semidefinite programming" |
61 |
HOMEPAGE="http://www.mcs.anl.gov/hs/software/DSDP/" |
62 |
SRC_URI="http://www.mcs.anl.gov/hs/software/DSDP//${MYP}.tar.gz" |
63 |
|
64 |
LICENSE="BSD" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~x86" |
67 |
IUSE="doc examples" |
68 |
|
69 |
RDEPEND="virtual/lapack" |
70 |
DEPEND="${RDEPEND} |
71 |
dev-util/pkgconfig" |
72 |
|
73 |
S="${WORKDIR}/${MYP}" |
74 |
|
75 |
make_shared_lib() { |
76 |
local soname=$(basename "${1%.a}").so.$(get_major_version) |
77 |
einfo "Making ${soname}" |
78 |
${2:-$(tc-getCC)} ${LDFLAGS} \ |
79 |
-shared -Wl,-soname="${soname}" \ |
80 |
-Wl,--whole-archive "${1}" -Wl,--no-whole-archive \ |
81 |
-o $(dirname "${1}")/"${soname}" \ |
82 |
-lm $(pkg-config --libs blas lapack) || return 1 |
83 |
} |
84 |
|
85 |
src_prepare() { |
86 |
epatch \ |
87 |
"${FILESDIR}"/${P}-readsdpa.patch \ |
88 |
"${FILESDIR}"/${P}-gold.patch |
89 |
# to do proper parallel compilation |
90 |
find . -name Makefile -exec \ |
91 |
sed -i -e 's:make :$(MAKE) :g' '{}' \; |
92 |
sed -i \ |
93 |
-e "s|#\(DSDPROOT[[:space:]]*=\).*|\1${S}|" \ |
94 |
-e "s|\(CC[[:space:]]*=\).*|\1$(tc-getCC)|" \ |
95 |
-e "s|\(OPTFLAGS[[:space:]]*=\).*|\1${CFLAGS}|" \ |
96 |
-e "s|\(CLINKER[[:space:]]*=\).*|\1 \${CC} ${LDFLAGS}|" \ |
97 |
-e "s|\(LAPACKBLAS[[:space:]]*=\).*|\1 $(pkg-config --libs blas lapack)|" \ |
98 |
-e "s|\(^ARCH[[:space:]]*=\).*|\1$(tc-getAR) cr|" \ |
99 |
-e "s|\(^RANLIB[[:space:]]*=\).*|\1$(tc-getRANLIB)|" \ |
100 |
make.include || die |
101 |
} |
102 |
|
103 |
src_compile() { |
104 |
emake OPTFLAGS="${CFLAGS} -fPIC" dsdplibrary |
105 |
make_shared_lib lib/lib${PN}.a || die "doing shared lib failed" |
106 |
} |
107 |
|
108 |
src_test() { |
109 |
emake -j1 example test |
110 |
} |
111 |
|
112 |
src_install() { |
113 |
dolib.so lib/lib${PN}.so.$(get_major_version) |
114 |
dosym lib${PN}.so.$(get_major_version) /usr/$(get_libdir)/lib${PN}.so |
115 |
|
116 |
insinto /usr/include |
117 |
doins include/*.h src/sdp/*.h |
118 |
|
119 |
use doc && dodoc docs/*.pdf |
120 |
|
121 |
if use examples; then |
122 |
insinto /usr/share/doc/${PF} |
123 |
doins -r examples |
124 |
fi |
125 |
} |