Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/cifparse-obj/files/, sci-libs/cifparse-obj/
Date: Sun, 29 Jan 2017 14:02:45
Message-Id: 1485698560.f806a9d8e446c02b00291d1e439b7c7be5d979c1.jlec@gentoo
1 commit: f806a9d8e446c02b00291d1e439b7c7be5d979c1
2 Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 29 14:02:31 2017 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 29 14:02:40 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f806a9d8
7
8 sci-libs/cifparse-obj: Version Bump
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11 Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
12
13 sci-libs/cifparse-obj/Manifest | 1 +
14 sci-libs/cifparse-obj/cifparse-obj-7.105.ebuild | 55 +++++++++++
15 .../files/cifparse-obj-7.105-makefile.patch | 110 +++++++++++++++++++++
16 3 files changed, 166 insertions(+)
17
18 diff --git a/sci-libs/cifparse-obj/Manifest b/sci-libs/cifparse-obj/Manifest
19 index c833b22..a68648b 100644
20 --- a/sci-libs/cifparse-obj/Manifest
21 +++ b/sci-libs/cifparse-obj/Manifest
22 @@ -1 +1,2 @@
23 DIST cifparse-obj-v7.025-prod-src.tar.gz 928484 SHA256 f2fd71fc2af0995839d9ee7825403e383209bb45a1bad68c270e5756476a8ef8 SHA512 bf5d6b55592aca8678396eb9819f5bd7bff4d912410590dfb750c9ad85bdcdbd251425c45b67e2db027a8ce8d028b77c91edcc5333279ed1190f6049c01f5cc9 WHIRLPOOL 0bd0376f3ea1d562c9650186dd1b48eef454f8acd0f4c0e074a1fccbbccf6edbef2d3e2dcd92799c1e15f0e0a4f1d32a50aaee0120c06ef846f6c971cede4924
24 +DIST cifparse-obj-v7.105-prod-src.tar.gz 931151 SHA256 3a0d48d6101fbe5fca4b65c53e5669726979db1a57bccf11ee769a3e40f2a856 SHA512 d626aa055bdd6762eda4b5b04121f37fff3bc09460b12cd6cb80566545d23e5c08a8ad54fa184076932d2cff38aa9d91fa659fbe9a70d4a07b8b1677c28549f4 WHIRLPOOL e1cb2e89916b40ad3094b2c53050869dfee0dbb4f8a4219153bef51a5c90729bda0922103a1d423bba1c6768c1b65c975f43c9f542ba1c333a85207f6fa09e9a
25
26 diff --git a/sci-libs/cifparse-obj/cifparse-obj-7.105.ebuild b/sci-libs/cifparse-obj/cifparse-obj-7.105.ebuild
27 new file mode 100644
28 index 00000000..de69652
29 --- /dev/null
30 +++ b/sci-libs/cifparse-obj/cifparse-obj-7.105.ebuild
31 @@ -0,0 +1,55 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
35 +
36 +EAPI=6
37 +
38 +inherit eutils toolchain-funcs
39 +
40 +MY_P="${PN}-v${PV}-prod-src"
41 +
42 +DESCRIPTION="Provides an object-oriented application interface to information in mmCIF format"
43 +HOMEPAGE="http://sw-tools.pdb.org/apps/CIFPARSE-OBJ/index.html"
44 +SRC_URI="http://sw-tools.pdb.org/apps/CIFPARSE-OBJ/source/${MY_P}.tar.gz"
45 +
46 +LICENSE="PDB"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
49 +IUSE=""
50 +
51 +RDEPEND=""
52 +DEPEND="
53 + sys-devel/bison
54 + sys-devel/flex"
55 +
56 +S="${WORKDIR}/${MY_P}"
57 +
58 +PATCHES=(
59 + "${FILESDIR}"/${P}-makefile.patch
60 + "${FILESDIR}"/${PN}-7.025-gcc5_6.patch
61 +)
62 +
63 +src_prepare() {
64 + default
65 +
66 + sed \
67 + -e "s:^\(CC=\).*:\1$(tc-getCC):g" \
68 + -e "s:^\(CCC=\).*:\1$(tc-getCXX):g" \
69 + -e "s:^\(F77=\).*:\1${FORTRANC}:g" \
70 + -e "s:^\(F77_LINKER=\).*:\1${FORTRANC}:g" \
71 + -e "s:-static::g" \
72 + -i "${S}"/etc/make.* || die "Failed to fix makefile"
73 +}
74 +
75 +src_compile() {
76 + # parallel make fails
77 + emake -j1 \
78 + C_OPT="${CFLAGS}" \
79 + CXX_OPT="${CXXFLAGS}"
80 +}
81 +
82 +src_install() {
83 + dolib.a lib/*
84 + insinto /usr/include/${PN}
85 + doins include/*
86 +}
87
88 diff --git a/sci-libs/cifparse-obj/files/cifparse-obj-7.105-makefile.patch b/sci-libs/cifparse-obj/files/cifparse-obj-7.105-makefile.patch
89 new file mode 100644
90 index 00000000..1716cd6
91 --- /dev/null
92 +++ b/sci-libs/cifparse-obj/files/cifparse-obj-7.105-makefile.patch
93 @@ -0,0 +1,110 @@
94 + etc/make.platform.gnu3 | 14 +++++++-------
95 + etc/make.platform.gnu4 | 16 ++++++++--------
96 + 2 files changed, 15 insertions(+), 15 deletions(-)
97 +
98 +diff --git a/etc/make.platform.gnu3 b/etc/make.platform.gnu3
99 +index 54b0297..138fa47 100644
100 +--- a/etc/make.platform.gnu3
101 ++++ b/etc/make.platform.gnu3
102 +@@ -107,8 +107,8 @@ NON_ANSI_C_FLAG=
103 + C_WARNINGS=$(WARNINGS)
104 +
105 + # C compiler flags
106 +-CFLAGS=$(OPT) $(ABI) $(PIC) $(ANSI_C_FLAG) $(C_WARNINGS) $(DEFINES) $(INCLUDES)
107 +-CFLAGS_NONANSI=$(OPT) $(ABI) $(PIC) $(NON_ANSI_C_FLAG) $(C_WARNINGS) \
108 ++CFLAGS=$(C_OPT) $(ABI) $(PIC) $(ANSI_C_FLAG) $(C_WARNINGS) $(DEFINES) $(INCLUDES)
109 ++CFLAGS_NONANSI=$(C_OPT) $(ABI) $(PIC) $(NON_ANSI_C_FLAG) $(C_WARNINGS) \
110 + $(DEFINES) $(INCLUDES)
111 +
112 + ## C++ compiler
113 +@@ -128,14 +128,14 @@ C_PLUS_WARNINGS=$(WARNINGS) $(NO_DEPRECATED)
114 + EXT=C
115 +
116 + # C++ compiler flags
117 +-C++FLAGS=$(OPT) $(ABI) $(PIC) $(ANSI_C_PLUS_FLAG) $(C_PLUS_WARNINGS) \
118 ++C++FLAGS=$(CXX_OPT) $(ABI) $(PIC) $(ANSI_C_PLUS_FLAG) $(C_PLUS_WARNINGS) \
119 + $(DEFINES) $(INCLUDES)
120 +-C++FLAGS_NONANSI=$(OPT) $(ABI) $(PIC) $(NON_ANSI_C_PLUS_FLAG) \
121 ++C++FLAGS_NONANSI=$(CXX_OPT) $(ABI) $(PIC) $(NON_ANSI_C_PLUS_FLAG) \
122 + $(C_PLUS_WARNINGS) $(DEFINES) $(INCLUDES)
123 +
124 + # C++FLAGS_RELAXED should be set to avoid warnings reported by third party
125 + # source code that is not maintained by PDB
126 +-C++FLAGS_RELAXED=$(OPT) $(ABI) $(PIC) $(ANSI_C_PLUS_FLAG) $(NO_DEPRECATED) \
127 ++C++FLAGS_RELAXED=$(CXX_OPT) $(ABI) $(PIC) $(ANSI_C_PLUS_FLAG) $(NO_DEPRECATED) \
128 + $(DEFINES) $(INCLUDES)
129 +
130 + ## Fortran compiler
131 +@@ -145,7 +145,7 @@ C++FLAGS_RELAXED=$(OPT) $(ABI) $(PIC) $(ANSI_C_PLUS_FLAG) $(NO_DEPRECATED) \
132 + F77=f77
133 +
134 + # Fortran compiler flags
135 +-FFLAGS=-O -u
136 ++FFLAGS=$(F_OPT)
137 +
138 + # Additional Fortran libraries
139 + F77LIBS=
140 +@@ -158,7 +158,7 @@ F77LIBS=
141 + STATIC_LINKING=-static
142 +
143 + # Linker flags
144 +-LDFLAGS=$(ABI) -w $(STATIC_LINKING)
145 ++LDFLAGS=$(ABI) -w $(STATIC_LINKING) $(LD_OPT)
146 + LDFLAGS_NO_STATIC=$(ABI) -w
147 +
148 + # Fortran linker
149 +diff --git a/etc/make.platform.gnu4 b/etc/make.platform.gnu4
150 +index 6676f35..51681fa 100644
151 +--- a/etc/make.platform.gnu4
152 ++++ b/etc/make.platform.gnu4
153 +@@ -107,11 +107,11 @@ NON_ANSI_C_FLAG=
154 + C_WARNINGS=$(WARNINGS)
155 +
156 + # C compiler flags
157 +-CFLAGS=$(OPT) $(ABI) $(PIC) $(ANSI_C_FLAG) $(C_WARNINGS) $(DEFINES) $(INCLUDES)
158 +-CFLAGS_NONANSI=$(OPT) $(ABI) $(PIC) $(NON_ANSI_C_FLAG) $(DEFINES) $(INCLUDES)
159 ++CFLAGS=$(C_OPT) $(ABI) $(PIC) $(ANSI_C_FLAG) $(C_WARNINGS) $(DEFINES) $(INCLUDES)
160 ++CFLAGS_NONANSI=$(C_OPT) $(ABI) $(PIC) $(NON_ANSI_C_FLAG) $(DEFINES) $(INCLUDES)
161 +
162 + ## C++ compiler
163 +-## This part defines C++ compiler information
164 ++
165 +
166 + # C++ compiler executable
167 + CCC=g++
168 +@@ -127,14 +127,14 @@ C_PLUS_WARNINGS=$(WARNINGS) $(NO_DEPRECATED)
169 + EXT=C
170 +
171 + # C++ compiler flags
172 +-C++FLAGS=$(OPT) $(ABI) $(PIC) $(ANSI_C_PLUS_FLAG) $(C_PLUS_WARNINGS) \
173 ++C++FLAGS=$(CXX_OPT) $(ABI) $(PIC) $(ANSI_C_PLUS_FLAG) $(C_PLUS_WARNINGS) \
174 + $(DEFINES) $(INCLUDES)
175 +-C++FLAGS_NONANSI=$(OPT) $(ABI) $(PIC) $(NON_ANSI_C_PLUS_FLAG) \
176 ++C++FLAGS_NONANSI=$(CXX_OPT) $(ABI) $(PIC) $(NON_ANSI_C_PLUS_FLAG) \
177 + $(C_PLUS_WARNINGS) $(DEFINES) $(INCLUDES)
178 +
179 + # C++FLAGS_RELAXED should be set to avoid warnings reported by third party
180 + # source code that is not maintained by PDB
181 +-C++FLAGS_RELAXED=$(OPT) $(ABI) $(PIC) $(ANSI_C_PLUS_FLAG) $(NO_DEPRECATED) \
182 ++C++FLAGS_RELAXED=$(CXX_OPT) $(ABI) $(PIC) $(ANSI_C_PLUS_FLAG) $(NO_DEPRECATED) \
183 + $(DEFINES) $(INCLUDES)
184 +
185 + ## Fortran compiler
186 +@@ -144,7 +144,7 @@ C++FLAGS_RELAXED=$(OPT) $(ABI) $(PIC) $(ANSI_C_PLUS_FLAG) $(NO_DEPRECATED) \
187 + F77=f77
188 +
189 + # Fortran compiler flags
190 +-FFLAGS=-O -u
191 ++FFLAGS=$(F_OPT)
192 +
193 + # Additional Fortran libraries
194 + F77LIBS=
195 +@@ -157,7 +157,7 @@ F77LIBS=
196 + STATIC_LINKING=-static
197 +
198 + # Linker flags
199 +-LDFLAGS=$(ABI) -w $(STATIC_LINKING)
200 ++LDFLAGS=$(ABI) -w $(STATIC_LINKING) $(LD_OPT)
201 + LDFLAGS_NO_STATIC=$(ABI) -w
202 +
203 + # Fortran linker