Gentoo Archives: gentoo-commits

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