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-mathematics/cgal: cgal-3.3.1.ebuild metadata.xml Manifest ChangeLog
Date: Mon, 27 Oct 2008 15:17:27
Message-Id: E1KuTqO-00069U-IY@stork.gentoo.org
1 bicatali 08/10/27 15:17:24
2
3 Added: cgal-3.3.1.ebuild metadata.xml Manifest ChangeLog
4 Log:
5 Initial import. Closing bug #167944.
6 (Portage version: 2.2_rc11/cvs/Linux 2.6.25-gentoo-r7 x86_64)
7
8 Revision Changes Path
9 1.1 sci-mathematics/cgal/cgal-3.3.1.ebuild
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/cgal/cgal-3.3.1.ebuild?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/cgal/cgal-3.3.1.ebuild?rev=1.1&content-type=text/plain
13
14 Index: cgal-3.3.1.ebuild
15 ===================================================================
16 # Copyright 1999-2008 Gentoo Foundation
17 # Distributed under the terms of the GNU General Public License v2
18 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/cgal/cgal-3.3.1.ebuild,v 1.1 2008/10/27 15:17:24 bicatali Exp $
19
20 EAPI=2
21
22 inherit eutils toolchain-funcs
23
24 MYP=CGAL-${PV}
25
26 DESCRIPTION="C++ library for geometric algorithms and data structures"
27 HOMEPAGE="http://www.cgal.org/"
28 SRC_URI="ftp://ftp.mpi-sb.mpg.de/pub/outgoing/CGAL/${MYP}.tar.gz"
29
30 LICENSE="LGPL-2.1 QPL"
31 SLOT="0"
32 KEYWORDS="~amd64 ~x86"
33 IUSE="examples gmp lapack opengl qt3 taucs X zlib"
34
35 RDEPEND="dev-libs/boost
36 dev-libs/mpfr
37 gmp? ( dev-libs/gmp )
38 lapack? ( virtual/lapack )
39 opengl? ( virtual/opengl )
40 qt3? ( x11-libs/qt:3 )
41 taucs? ( sci-libs/taucs )
42 X? ( x11-libs/libX11 )
43 zlib? ( sys-libs/zlib )"
44 DEPEND="${RDEPEND}
45 lapack? ( dev-util/pkgconfig )"
46
47 S="${WORKDIR}/${MYP}"
48
49 src_prepare() {
50 epatch "${FILESDIR}"/${P}-rpath.patch
51 # a patch from debian on missing qt headers
52 epatch "${FILESDIR}"/${P}-qt.patch
53 # sed for blas and lapack gentoo style
54 sed -e 's/Intel MKL/Gentoo BLAS-LAPACK/' \
55 -e "s/^LIBS.=.*/LIBS=$(pkg-config --libs-only-l lapack | sed 's/-l//g')/" \
56 -e "s/^STDLIBDIRS.=*/STDLIBDIRS=$(pkg-config --libs-only-L lapack | sed 's/-L//g')/" \
57 config/support/S48a-MKL64 \
58 > config/support/S48e-GENTOOLAPACK || die
59 sed -i -e 's/-O2//' install_cgal || die
60 }
61
62 src_configure() {
63 CGALDIR="${S}/usr"
64 MYCONF="-ni
65 --prefix=${CGALDIR}
66 --cxx=$(tc-getCXX)
67 --without-autofind
68 --with-boost
69 --with-boost_program_options
70 --with-mpfr"
71
72 use gmp && MYCONF="${MYCONF} --with-gmp --with-gmpxx"
73 use lapack && MYCONF="${MYCONF} --with-gentoolapack"
74 use opengl && MYCONF="${MYCONF} --with-opengl"
75 use taucs && MYCONF="${MYCONF} --with-gentoolapack --with-taucslapack"
76 use X && MYCONF="${MYCONF} --with-x11"
77 use zlib && MYCONF="${MYCONF} --with-zlib"
78 use qt3 && MYCONF="${MYCONF} --with-qt3mt --qt_incl_dir ${QTDIR}/include --qt_lib_dir ${QTDIR}/lib"
79 }
80
81 src_compile() {
82 ./install_cgal ${MYCONF} || die "compilation failed"
83 grep -q failed compile.log && die "see ${S}/compile.log for problems"
84 }
85
86 src_test() {
87 cd "${S}"/examples
88 export CGAL_MAKEFILE="${CGALDIR}/share/cgal/cgal.mk"
89 emake || die "emake examples failed"
90 # basic testing, does not compare with original
91 for t in */*.cpp; do
92 local run_testt=${t%.cpp}
93 if [[ -x ${run_test} ]]; then
94 ${run_test} || die "Running test from ${t} failed"
95 fi
96 done
97 }
98
99 src_install(){
100 mv usr/lib usr/$(get_libdir)
101 sed -i \
102 -e "s:${CGALDIR}:/usr:g" \
103 "${CGALDIR}/share/cgal/cgal.mk" || die "sed cgal.mk failed"
104 cp -pPR usr "${D}" || die "install failed"
105
106 if use examples; then
107 insinto /usr/share/doc/${PF}
108 doins -r demo examples || die "samples install failed"
109 fi
110 echo "CGAL_MAKEFILE=/usr/share/cgal/cgal.mk" > 99cgal
111 doenvd 99cgal || die
112 }
113
114
115
116 1.1 sci-mathematics/cgal/metadata.xml
117
118 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/cgal/metadata.xml?rev=1.1&view=markup
119 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/cgal/metadata.xml?rev=1.1&content-type=text/plain
120
121 Index: metadata.xml
122 ===================================================================
123 <?xml version="1.0" encoding="UTF-8"?>
124 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
125 <pkgmetadata>
126 <herd>sci</herd>
127 <longdescription lang="en">
128 The Computational Geometry Algorithms Library is a collaborative
129 open source library containing:
130 * the Kernel with geometric primitives such as points, vectors,
131 lines, predicates for testing things such as relative positions of
132 points, and operations such as intersections and distance calculation.
133 * the Basic Library which is a collection of standard data
134 structures and geometric algorithms, such as convex hull in 2D/3D,
135 (Delaunay) triangulation in 2D/3D, planar map, polyhedron, smallest
136 enclosing circle, and multidimensional query structures.
137 * the Support Library which offers interfaces to other packages,
138 e.g., for visualisation, and I/O, and other support facilities.
139 </longdescription>
140 <use>
141 <flag name='taucs'>Add support for the sparse solver library <pkg>sci-libs/taucs</pkg></flag>
142 </use>
143 </pkgmetadata>
144
145
146
147 1.1 sci-mathematics/cgal/Manifest
148
149 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/cgal/Manifest?rev=1.1&view=markup
150 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/cgal/Manifest?rev=1.1&content-type=text/plain
151
152 Index: Manifest
153 ===================================================================
154 AUX cgal-3.3.1-qt.patch 2029 RMD160 340035482282e118b72adfdd45945b82bc951175 SHA1 3b19e7d0d3ef92526ecc54daa6a5676a9ca9cf9a SHA256 9177a289eddd4356f79baecb19e20c126462c585314ee67512eb116accf32f94
155 AUX cgal-3.3.1-rpath.patch 5043 RMD160 3eae61377d17487576ffb06b7ba3928ac5e1358f SHA1 8b241d9523bb464c0ac774a50ef878872135a7a4 SHA256 d9559cf91ca90dad8cb4a4b13f0b624da84205ae563fb10a9f471d43a4d20d49
156 DIST CGAL-3.3.1.tar.gz 8593200 RMD160 e2c2e785a7c61bc9b651903df539bb00ce689b07 SHA1 b17b12fdf106003e1257e1465b0ba1d17e6cefb9 SHA256 c6e4e5a284ccb07b38321cd265f07a0cb8eaa4df67efb7f40f70a311cae00d37
157 EBUILD cgal-3.3.1.ebuild 2715 RMD160 fdc26118565eebca071b2e044806eaa04701f5e2 SHA1 e26b49e6e94c9a398db07b527e0209606c94c7b2 SHA256 a9980f780509e940e699ddce2c04f55bf39a6828a087b559b5489baea01a1e10
158 MISC ChangeLog 341 RMD160 104c36165dd485fc0d92ddfb0a8610f43b710059 SHA1 87d5c514c56539f45d4e853b86a7dadcb7cc2f94 SHA256 e88ebc96945ee02955334cb4291008f146986dbb005ce03be9201bf13ba5d004
159 MISC metadata.xml 1025 RMD160 da14e8b7ef6f3ce0aa192b47bbd509a66b5c07af SHA1 449624b3734ca4c2b5da1e3018536d8fe8580b5e SHA256 29cf5a72c2119df2fbb5b0ca0bb8f3abd1779e8b0ac31e99408cc0895ade515b
160
161
162
163 1.1 sci-mathematics/cgal/ChangeLog
164
165 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/cgal/ChangeLog?rev=1.1&view=markup
166 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/cgal/ChangeLog?rev=1.1&content-type=text/plain
167
168 Index: ChangeLog
169 ===================================================================
170 # ChangeLog for sci-mathematics/cgal
171 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
172 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/cgal/ChangeLog,v 1.1 2008/10/27 15:17:24 bicatali Exp $
173
174 *cgal-3.3.1 (27 Oct 2008)
175
176 27 Oct 2008; Sébastien Fabbro <bicatali@g.o>
177 +files/cgal-3.3.1-qt.patch, +files/cgal-3.3.1-rpath.patch, +metadata.xml,
178 +cgal-3.3.1.ebuild:
179 Initial import. Closing bug #167944.