1 |
bicatali 09/02/02 18:34:08 |
2 |
|
3 |
Modified: ChangeLog cdf-3.2.1-r1.ebuild |
4 |
Added: cdf-3.2.4.ebuild |
5 |
Removed: cdf-3.1.ebuild cdf-3.2.1.ebuild |
6 |
Log: |
7 |
Version bump. Added LDFLAGS propagation, and link tools dynamically, closing bug #253251 |
8 |
(Portage version: 2.2_rc23/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.17 sci-libs/cdf/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cdf/ChangeLog?rev=1.17&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cdf/ChangeLog?rev=1.17&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cdf/ChangeLog?r1=1.16&r2=1.17 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/cdf/ChangeLog,v |
20 |
retrieving revision 1.16 |
21 |
retrieving revision 1.17 |
22 |
diff -u -r1.16 -r1.17 |
23 |
--- ChangeLog 11 May 2008 12:20:32 -0000 1.16 |
24 |
+++ ChangeLog 2 Feb 2009 18:34:08 -0000 1.17 |
25 |
@@ -1,6 +1,15 @@ |
26 |
# ChangeLog for sci-libs/cdf |
27 |
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/cdf/ChangeLog,v 1.16 2008/05/11 12:20:32 dertobi123 Exp $ |
29 |
+# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/cdf/ChangeLog,v 1.17 2009/02/02 18:34:08 bicatali Exp $ |
31 |
+ |
32 |
+*cdf-3.2.4 (02 Feb 2009) |
33 |
+ |
34 |
+ 02 Feb 2009; Sébastien Fabbro <bicatali@g.o> |
35 |
+ files/cdf-3.2-Makefile.patch, -files/cdf-Makefile.patch, |
36 |
+ -files/cdf-soname.patch, -cdf-3.1.ebuild, -cdf-3.2.1.ebuild, |
37 |
+ cdf-3.2.1-r1.ebuild, +cdf-3.2.4.ebuild: |
38 |
+ Version bump. Added LDFLAGS propagation, and link tools dynamically, |
39 |
+ closing bug #253251 |
40 |
|
41 |
11 May 2008; Tobias Scherbaum <dertobi123@g.o> cdf-3.2.1-r1.ebuild: |
42 |
ppc stable, bug #220391 |
43 |
|
44 |
|
45 |
|
46 |
1.4 sci-libs/cdf/cdf-3.2.1-r1.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cdf/cdf-3.2.1-r1.ebuild?rev=1.4&view=markup |
49 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cdf/cdf-3.2.1-r1.ebuild?rev=1.4&content-type=text/plain |
50 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cdf/cdf-3.2.1-r1.ebuild?r1=1.3&r2=1.4 |
51 |
|
52 |
Index: cdf-3.2.1-r1.ebuild |
53 |
=================================================================== |
54 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/cdf/cdf-3.2.1-r1.ebuild,v |
55 |
retrieving revision 1.3 |
56 |
retrieving revision 1.4 |
57 |
diff -u -r1.3 -r1.4 |
58 |
--- cdf-3.2.1-r1.ebuild 11 May 2008 12:20:32 -0000 1.3 |
59 |
+++ cdf-3.2.1-r1.ebuild 2 Feb 2009 18:34:08 -0000 1.4 |
60 |
@@ -1,6 +1,6 @@ |
61 |
-# Copyright 1999-2008 Gentoo Foundation |
62 |
+# Copyright 1999-2009 Gentoo Foundation |
63 |
# Distributed under the terms of the GNU General Public License v2 |
64 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/cdf/cdf-3.2.1-r1.ebuild,v 1.3 2008/05/11 12:20:32 dertobi123 Exp $ |
65 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/cdf/cdf-3.2.1-r1.ebuild,v 1.4 2009/02/02 18:34:08 bicatali Exp $ |
66 |
|
67 |
inherit eutils toolchain-funcs multilib versionator |
68 |
|
69 |
@@ -71,10 +71,11 @@ |
70 |
-c cdfNativeLibrary.c \ |
71 |
-o cdfNativeLibrary.o \ |
72 |
|| die "compiling java lib failed" |
73 |
- $(tc-getLD) \ |
74 |
+ $(tc-getCC) \ |
75 |
+ ${LDFLAGS} \ |
76 |
-L${CDF_LIB} -lcdf -lm \ |
77 |
-shared cdfNativeLibrary.o \ |
78 |
- -soname=libcdfNativeLibrary.so.${PV_SO} \ |
79 |
+ -Wl,-soname=libcdfNativeLibrary.so.${PV_SO} \ |
80 |
-o libcdfNativeLibrary.so.${PV_SO} \ |
81 |
|| die "linking java lib failed" |
82 |
fi |
83 |
@@ -99,7 +100,7 @@ |
84 |
|
85 |
if use doc; then |
86 |
insinto /usr/share/doc/${PF} |
87 |
- doins "${DISTDIR}"/${MY_P}*.pdf |
88 |
+ doins "${DISTDIR}"/${MY_DP}*.pdf |
89 |
use java || rm "${D}"/usr/share/doc/${PF}/${MY_P}jrm.pdf |
90 |
fi |
91 |
|
92 |
|
93 |
|
94 |
|
95 |
1.1 sci-libs/cdf/cdf-3.2.4.ebuild |
96 |
|
97 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cdf/cdf-3.2.4.ebuild?rev=1.1&view=markup |
98 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cdf/cdf-3.2.4.ebuild?rev=1.1&content-type=text/plain |
99 |
|
100 |
Index: cdf-3.2.4.ebuild |
101 |
=================================================================== |
102 |
# Copyright 1999-2009 Gentoo Foundation |
103 |
# Distributed under the terms of the GNU General Public License v2 |
104 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/cdf/cdf-3.2.4.ebuild,v 1.1 2009/02/02 18:34:08 bicatali Exp $ |
105 |
|
106 |
inherit eutils toolchain-funcs multilib versionator java-pkg-opt-2 |
107 |
|
108 |
MY_DP="${PN}$(get_version_component_range 1)$(get_version_component_range 2)" |
109 |
MY_P="${MY_DP}_$(get_version_component_range 3)" |
110 |
|
111 |
DESCRIPTION="Common Data Format I/O library for multi-dimensional data sets" |
112 |
HOMEPAGE="http://cdf.gsfc.nasa.gov/" |
113 |
SRC_BASE="ftp://cdaweb.gsfc.nasa.gov/pub/${PN}/dist/${MY_P}/unix" |
114 |
|
115 |
SRC_URI="${SRC_BASE}/${MY_P}-dist-${PN}.tar.gz |
116 |
java? ( ${SRC_BASE}/${MY_P}-dist-java.tar.gz ) |
117 |
doc? ( ${SRC_BASE}/${MY_P}_documentation/${MY_DP}crm.pdf |
118 |
${SRC_BASE}/${MY_P}_documentation/${MY_DP}frm.pdf |
119 |
${SRC_BASE}/${MY_P}_documentation/${MY_DP}ifd.pdf |
120 |
${SRC_BASE}/${MY_P}_documentation/${MY_DP}prm.pdf |
121 |
${SRC_BASE}/${MY_P}_documentation/${MY_DP}ug.pdf |
122 |
java? ( ${SRC_BASE}/${MY_P}_documentation/${MY_DP}jrm.pdf ) )" |
123 |
|
124 |
LICENSE="CDF" |
125 |
SLOT="0" |
126 |
KEYWORDS="~amd64 ~ppc ~x86" |
127 |
IUSE="doc examples java ncurses" |
128 |
|
129 |
RDEPEND="ncurses? ( sys-libs/ncurses ) |
130 |
java? ( >=virtual/jre-1.5 )" |
131 |
DEPEND="ncurses? ( sys-libs/ncurses ) |
132 |
java? ( >=virtual/jdk-1.5 )" |
133 |
|
134 |
S="${WORKDIR}/${MY_P}-dist" |
135 |
|
136 |
src_unpack() { |
137 |
unpack ${A} |
138 |
cd "${S}" |
139 |
# respect cflags, remove useless scripts |
140 |
epatch "${FILESDIR}"/${PN}-3.2-Makefile.patch |
141 |
epatch "${FILESDIR}"/${PN}-3.2-soname.patch |
142 |
# use proper lib dir |
143 |
sed -i \ |
144 |
-e "s:\$(INSTALLDIR)/lib:\$(INSTALLDIR)/$(get_libdir):g" \ |
145 |
Makefile || die "sed failed" |
146 |
} |
147 |
|
148 |
src_compile() { |
149 |
local myconf |
150 |
if use ncurses; then |
151 |
myconf="${myconf} CURSES=yes" |
152 |
else |
153 |
myconf="${myconf} CURSES=no" |
154 |
fi |
155 |
PV_SO=${PV:0:1} |
156 |
emake \ |
157 |
OS=linux \ |
158 |
ENV=gnu \ |
159 |
SHARED=yes \ |
160 |
SHAREDEXT_linux=so.${PV_SO} \ |
161 |
${myconf} \ |
162 |
all || die "emake failed" |
163 |
|
164 |
if use java; then |
165 |
export CDF_BASE="${S}" |
166 |
export CDF_LIB="${S}/src/lib" |
167 |
cd cdfjava/jni |
168 |
$(tc-getCC) \ |
169 |
${CFLAGS} -fPIC \ |
170 |
-I${CDF_BASE}/src/include \ |
171 |
-I$(java-config -O)/include \ |
172 |
-I$(java-config -O)/include/linux \ |
173 |
-c cdfNativeLibrary.c \ |
174 |
-o cdfNativeLibrary.o \ |
175 |
|| die "compiling java lib failed" |
176 |
$(tc-getCC) \ |
177 |
${LDFLAGS} \ |
178 |
-L${CDF_LIB} -lcdf -lm \ |
179 |
-shared cdfNativeLibrary.o \ |
180 |
-Wl,-soname=libcdfNativeLibrary.so.${PV_SO} \ |
181 |
-o libcdfNativeLibrary.so.${PV_SO} \ |
182 |
|| die "linking java lib failed" |
183 |
fi |
184 |
} |
185 |
|
186 |
src_test() { |
187 |
emake -j1 test || die "test failed" |
188 |
} |
189 |
|
190 |
src_install() { |
191 |
dodir /usr/bin |
192 |
dodir /usr/$(get_libdir) |
193 |
# -j1 (fragile non-autotooled make) |
194 |
emake -j1 \ |
195 |
INSTALLDIR="${D}usr" \ |
196 |
SHAREDEXT=so.${PV_SO} \ |
197 |
install || die "emake install failed" |
198 |
dosym libcdf.so.${PV_SO} /usr/$(get_libdir)/libcdf.so |
199 |
|
200 |
dodoc Release.notes CHANGES.txt Welcome.txt || die |
201 |
doenvd "${FILESDIR}"/50cdf |
202 |
|
203 |
if use doc; then |
204 |
insinto /usr/share/doc/${PF} |
205 |
doins "${DISTDIR}"/${MY_DP}*.pdf |
206 |
use java || rm "${D}"/usr/share/doc/${PF}/${MY_P}jrm.pdf |
207 |
fi |
208 |
|
209 |
if use examples; then |
210 |
insinto /usr/share/doc/${PF}/examples |
211 |
doins samples/* |
212 |
fi |
213 |
|
214 |
if use java; then |
215 |
cd cdfjava |
216 |
dolib.so jni/libcdfNativeLibrary.so.${PV_SO} |
217 |
dosym libcdfNativeLibrary.so.${PV_SO} \ |
218 |
/usr/$(get_libdir)/libcdfNativeLibrary.so |
219 |
java-pkg_dojar */*.jar |
220 |
if use examples; then |
221 |
insinto /usr/share/doc/${PF}/examples/java |
222 |
doins examples/* |
223 |
fi |
224 |
fi |
225 |
|
226 |
} |