1 |
bicatali 08/05/09 10:18:53 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: cdf-3.2.1-r1.ebuild |
5 |
Log: |
6 |
Bump for new upstream tar balls, now with proper versions. Also fix bad patching. |
7 |
(Portage version: 2.1.5_rc6) |
8 |
|
9 |
Revision Changes Path |
10 |
1.14 sci-libs/cdf/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cdf/ChangeLog?rev=1.14&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cdf/ChangeLog?rev=1.14&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cdf/ChangeLog?r1=1.13&r2=1.14 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/cdf/ChangeLog,v |
19 |
retrieving revision 1.13 |
20 |
retrieving revision 1.14 |
21 |
diff -u -r1.13 -r1.14 |
22 |
--- ChangeLog 8 May 2008 10:22:37 -0000 1.13 |
23 |
+++ ChangeLog 9 May 2008 10:18:52 -0000 1.14 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for sci-libs/cdf |
26 |
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/cdf/ChangeLog,v 1.13 2008/05/08 10:22:37 bicatali Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/cdf/ChangeLog,v 1.14 2008/05/09 10:18:52 bicatali Exp $ |
29 |
+ |
30 |
+*cdf-3.2.1-r1 (09 May 2008) |
31 |
+ |
32 |
+ 09 May 2008; Sébastien Fabbro <bicatali@g.o> +cdf-3.2.1-r1.ebuild: |
33 |
+ Bump for new upstream tar balls, now with proper versions. Also fix bad |
34 |
+ patching. |
35 |
|
36 |
08 May 2008; Sébastien Fabbro <bicatali@g.o> cdf-3.2.1.ebuild: |
37 |
Upstream changed tar balls again, removing mirror restriction |
38 |
|
39 |
|
40 |
|
41 |
1.1 sci-libs/cdf/cdf-3.2.1-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cdf/cdf-3.2.1-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cdf/cdf-3.2.1-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: cdf-3.2.1-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2008 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/cdf/cdf-3.2.1-r1.ebuild,v 1.1 2008/05/09 10:18:52 bicatali Exp $ |
51 |
|
52 |
inherit eutils toolchain-funcs multilib versionator |
53 |
|
54 |
MY_DP="${PN}$(get_version_component_range 1)$(get_version_component_range 2)" |
55 |
MY_P="${MY_DP}_$(get_version_component_range 3)" |
56 |
|
57 |
DESCRIPTION="Common Data Format I/O library for multi-dimensional data sets" |
58 |
HOMEPAGE="http://cdf.gsfc.nasa.gov/" |
59 |
SRC_BASE="ftp://cdaweb.gsfc.nasa.gov/pub/${PN}/dist/${MY_P}/unix" |
60 |
|
61 |
SRC_URI="${SRC_BASE}/${MY_P}-dist-${PN}.tar.gz |
62 |
java? ( ${SRC_BASE}/${MY_P}-dist-java.tar.gz ) |
63 |
doc? ( ${SRC_BASE}/${MY_P}_documentation/${MY_DP}crm.pdf |
64 |
${SRC_BASE}/${MY_P}_documentation/${MY_DP}frm.pdf |
65 |
${SRC_BASE}/${MY_P}_documentation/${MY_DP}ifd.pdf |
66 |
${SRC_BASE}/${MY_P}_documentation/${MY_DP}prm.pdf |
67 |
${SRC_BASE}/${MY_P}_documentation/${MY_DP}ug.pdf |
68 |
java? ( ${SRC_BASE}/${MY_P}_documentation/${MY_DP}jrm.pdf ) )" |
69 |
|
70 |
LICENSE="CDF" |
71 |
SLOT="0" |
72 |
KEYWORDS="~amd64 ~ppc ~x86" |
73 |
IUSE="doc examples java ncurses" |
74 |
|
75 |
RDEPEND="ncurses? ( sys-libs/ncurses )" |
76 |
DEPEND="${RDEPEND} |
77 |
java? ( virtual/jdk dev-java/java-config )" |
78 |
|
79 |
S="${WORKDIR}/${MY_P}-dist" |
80 |
|
81 |
src_unpack() { |
82 |
unpack ${A} |
83 |
cd "${S}" |
84 |
# respect cflags, remove useless scripts |
85 |
epatch "${FILESDIR}"/${PN}-3.2-Makefile.patch |
86 |
epatch "${FILESDIR}"/${PN}-3.2-soname.patch |
87 |
# use proper lib dir |
88 |
sed -i \ |
89 |
-e "s:\$(INSTALLDIR)/lib:\$(INSTALLDIR)/$(get_libdir):g" \ |
90 |
Makefile || die "sed failed" |
91 |
} |
92 |
|
93 |
src_compile() { |
94 |
local myconf |
95 |
if use ncurses; then |
96 |
myconf="${myconf} CURSES=yes" |
97 |
else |
98 |
myconf="${myconf} CURSES=no" |
99 |
fi |
100 |
PV_SO=${PV:0:1} |
101 |
emake \ |
102 |
OS=linux \ |
103 |
ENV=gnu \ |
104 |
SHARED=yes \ |
105 |
SHAREDEXT_linux=so.${PV_SO} \ |
106 |
${myconf} \ |
107 |
all || die "emake failed" |
108 |
|
109 |
if use java; then |
110 |
export CDF_BASE="${S}" |
111 |
export CDF_LIB="${S}/src/lib" |
112 |
cd cdfjava/jni |
113 |
$(tc-getCC) \ |
114 |
${CFLAGS} -fPIC \ |
115 |
-I${CDF_BASE}/src/include \ |
116 |
-I$(java-config -O)/include \ |
117 |
-I$(java-config -O)/include/linux \ |
118 |
-c cdfNativeLibrary.c \ |
119 |
-o cdfNativeLibrary.o \ |
120 |
|| die "compiling java lib failed" |
121 |
$(tc-getLD) \ |
122 |
-L${CDF_LIB} -lcdf -lm \ |
123 |
-shared cdfNativeLibrary.o \ |
124 |
-soname=libcdfNativeLibrary.so.${PV_SO} \ |
125 |
-o libcdfNativeLibrary.so.${PV_SO} \ |
126 |
|| die "linking java lib failed" |
127 |
fi |
128 |
} |
129 |
|
130 |
src_test() { |
131 |
emake test || die "test failed" |
132 |
} |
133 |
|
134 |
src_install() { |
135 |
dodir /usr/bin |
136 |
dodir /usr/$(get_libdir) |
137 |
# -j1 (fragile non-autotooled make) |
138 |
emake -j1 \ |
139 |
INSTALLDIR="${D}usr" \ |
140 |
SHAREDEXT=so.${PV_SO} \ |
141 |
install || die "emake install failed" |
142 |
dosym libcdf.so.${PV_SO} /usr/$(get_libdir)/libcdf.so |
143 |
|
144 |
dodoc Release.notes CHANGES.txt Welcome.txt || die |
145 |
doenvd "${FILESDIR}"/50cdf |
146 |
|
147 |
if use doc; then |
148 |
insinto /usr/share/doc/${PF} |
149 |
doins "${DISTDIR}"/${MY_P}*.pdf |
150 |
use java || rm "${D}"/usr/share/doc/${PF}/${MY_P}jrm.pdf |
151 |
fi |
152 |
|
153 |
if use examples; then |
154 |
insinto /usr/share/doc/${PF}/examples |
155 |
doins samples/* |
156 |
fi |
157 |
|
158 |
if use java; then |
159 |
cd cdfjava |
160 |
dolib.so jni/libcdfNativeLibrary.so.${PV_SO} |
161 |
dosym libcdfNativeLibrary.so.${PV_SO} \ |
162 |
/usr/$(get_libdir)/libcdfNativeLibrary.so |
163 |
insinto /usr/share/cdf |
164 |
doins */*.jar |
165 |
if use examples; then |
166 |
insinto /usr/share/doc/${PF}/examples/java |
167 |
doins examples/* |
168 |
fi |
169 |
fi |
170 |
|
171 |
} |
172 |
|
173 |
|
174 |
|
175 |
-- |
176 |
gentoo-commits@l.g.o mailing list |