Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/dsdp/
Date: Tue, 06 Sep 2016 20:25:59
Message-Id: 1473193377.02e4852151f782c8b30aa05afb261a3951836e01.soap@gentoo
1 commit: 02e4852151f782c8b30aa05afb261a3951836e01
2 Author: Gerhard Bräunlich <wippbox <AT> gmx <DOT> net>
3 AuthorDate: Tue Sep 6 10:34:49 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 6 20:22:57 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02e48521
7
8 sci-libs/dsdp: Removed EAPI 4 ebuild dsdp-5.8-r2.ebuild
9
10 Package-Manager: portage-2.2.28
11 Closes: https://github.com/gentoo/gentoo/pull/2249
12
13 Signed-off-by: David Seifert <soap <AT> gentoo.org>
14
15 sci-libs/dsdp/dsdp-5.8-r2.ebuild | 80 ----------------------------------------
16 sci-libs/dsdp/dsdp-5.8-r3.ebuild | 6 +--
17 2 files changed, 3 insertions(+), 83 deletions(-)
18
19 diff --git a/sci-libs/dsdp/dsdp-5.8-r2.ebuild b/sci-libs/dsdp/dsdp-5.8-r2.ebuild
20 deleted file mode 100644
21 index c60090d..00000000
22 --- a/sci-libs/dsdp/dsdp-5.8-r2.ebuild
23 +++ /dev/null
24 @@ -1,80 +0,0 @@
25 -# Copyright 1999-2013 Gentoo Foundation
26 -# Distributed under the terms of the GNU General Public License v2
27 -# $Id$
28 -
29 -EAPI=4
30 -
31 -inherit eutils multilib toolchain-funcs versionator
32 -
33 -MYP=DSDP${PV}
34 -
35 -DESCRIPTION="Software for interior-point for semidefinite programming"
36 -HOMEPAGE="http://www.mcs.anl.gov/hs/software/DSDP/"
37 -SRC_URI="http://www.mcs.anl.gov/hs/software/DSDP//${MYP}.tar.gz"
38 -
39 -LICENSE="BSD"
40 -SLOT="0"
41 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~ppc-macos ~x86-linux ~x86-macos ~x64-macos"
42 -IUSE="doc examples"
43 -
44 -RDEPEND="virtual/lapack"
45 -DEPEND="${RDEPEND}
46 - virtual/pkgconfig"
47 -
48 -S="${WORKDIR}/${MYP}"
49 -
50 -make_shared_lib() {
51 - local soname=$(basename "${1%.a}")$(get_libname $(get_major_version))
52 - einfo "Making ${soname}"
53 - ${2:-$(tc-getCC)} ${LDFLAGS} \
54 - -shared -Wl,-soname="${soname}" \
55 - $([[ ${CHOST} == *-darwin* ]] && echo "-Wl,-install_name -Wl,${EPREFIX}/usr/$(get_libdir)/${soname}") \
56 - -Wl,--whole-archive "${1}" -Wl,--no-whole-archive \
57 - -o $(dirname "${1}")/"${soname}" \
58 - -lm $($(tc-getPKG_CONFIG) --libs blas lapack) || return 1
59 -
60 -}
61 -
62 -src_prepare() {
63 - epatch \
64 - "${FILESDIR}"/${P}-readsdpa.patch \
65 - "${FILESDIR}"/${P}-malloc.patch \
66 - "${FILESDIR}"/${P}-gold.patch
67 - # to do proper parallel compilation
68 - find . -name Makefile -exec \
69 - sed -i -e 's:make :$(MAKE) :g' '{}' \;
70 - sed -i \
71 - -e "s|#\(DSDPROOT[[:space:]]*=\).*|\1${S}|" \
72 - -e "s|\(CC[[:space:]]*=\).*|\1$(tc-getCC)|" \
73 - -e "s|\(OPTFLAGS[[:space:]]*=\).*|\1${CFLAGS}|" \
74 - -e "s|\(CLINKER[[:space:]]*=\).*|\1 \${CC} ${LDFLAGS}|" \
75 - -e "s|\(LAPACKBLAS[[:space:]]*=\).*|\1 $($(tc-getPKG_CONFIG) --libs blas lapack)|" \
76 - -e "s|\(^ARCH[[:space:]]*=\).*|\1$(tc-getAR) cr|" \
77 - -e "s|\(^RANLIB[[:space:]]*=\).*|\1$(tc-getRANLIB)|" \
78 - make.include || die
79 -}
80 -
81 -src_compile() {
82 - emake OPTFLAGS="${CFLAGS} -fPIC" dsdplibrary
83 - make_shared_lib lib/lib${PN}.a || die "doing shared lib failed"
84 -}
85 -
86 -src_test() {
87 - emake -j1 example test
88 -}
89 -
90 -src_install() {
91 - dolib.so lib/lib${PN}$(get_libname $(get_major_version))
92 - dosym lib${PN}$(get_libname $(get_major_version)) \
93 - /usr/$(get_libdir)/lib${PN}$(get_libname)
94 -
95 - insinto /usr/include
96 - doins include/*.h src/sdp/*.h
97 -
98 - use doc && dodoc docs/*.pdf
99 -
100 - if use examples; then
101 - insinto /usr/share/doc/${PF}
102 - doins -r examples
103 - fi
104 -}
105
106 diff --git a/sci-libs/dsdp/dsdp-5.8-r3.ebuild b/sci-libs/dsdp/dsdp-5.8-r3.ebuild
107 index 625dc23..b9503b7 100644
108 --- a/sci-libs/dsdp/dsdp-5.8-r3.ebuild
109 +++ b/sci-libs/dsdp/dsdp-5.8-r3.ebuild
110 @@ -6,11 +6,11 @@ EAPI=6
111
112 inherit multilib toolchain-funcs versionator
113
114 -MYP=DSDP${PV}
115 +MY_P="${PN^^}${PV}"
116
117 DESCRIPTION="Software for interior-point for semidefinite programming"
118 HOMEPAGE="http://www.mcs.anl.gov/hs/software/DSDP/"
119 -SRC_URI="http://www.mcs.anl.gov/hs/software/DSDP//${MYP}.tar.gz"
120 +SRC_URI="http://www.mcs.anl.gov/hs/software/DSDP/${MY_P}.tar.gz"
121
122 LICENSE="BSD"
123 SLOT="0"
124 @@ -21,7 +21,7 @@ RDEPEND="virtual/lapack"
125 DEPEND="${RDEPEND}
126 virtual/pkgconfig"
127
128 -S="${WORKDIR}/${MYP}"
129 +S="${WORKDIR}/${MY_P}"
130
131 PATCHES=(
132 "${FILESDIR}"/${P}-readsdpa.patch