1 |
bicatali 09/01/29 18:25:50 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: plplot-5.9.2.ebuild |
5 |
Log: |
6 |
Version bump. Removed the wxwidgets hack since it broke parallel building |
7 |
(Portage version: 2.2_rc23/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.20 sci-libs/plplot/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/plplot/ChangeLog?rev=1.20&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/plplot/ChangeLog?rev=1.20&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/plplot/ChangeLog?r1=1.19&r2=1.20 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/plplot/ChangeLog,v |
19 |
retrieving revision 1.19 |
20 |
retrieving revision 1.20 |
21 |
diff -u -r1.19 -r1.20 |
22 |
--- ChangeLog 2 Jan 2009 20:04:14 -0000 1.19 |
23 |
+++ ChangeLog 29 Jan 2009 18:25:50 -0000 1.20 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for sci-libs/plplot |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/ChangeLog,v 1.19 2009/01/02 20:04:14 cryos Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/ChangeLog,v 1.20 2009/01/29 18:25:50 bicatali Exp $ |
29 |
+ |
30 |
+*plplot-5.9.2 (29 Jan 2009) |
31 |
+ |
32 |
+ 29 Jan 2009; Sébastien Fabbro <bicatali@g.o> +plplot-5.9.2.ebuild: |
33 |
+ Version bump. Removed the wxwidgets hack since it broke parallel building |
34 |
|
35 |
02 Jan 2009; Marcus D. Hanwell <cryos@g.o> metadata.xml: |
36 |
Removed myself as maintainer. |
37 |
|
38 |
|
39 |
|
40 |
1.1 sci-libs/plplot/plplot-5.9.2.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/plplot/plplot-5.9.2.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/plplot/plplot-5.9.2.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: plplot-5.9.2.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2009 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/plplot-5.9.2.ebuild,v 1.1 2009/01/29 18:25:50 bicatali Exp $ |
50 |
|
51 |
EAPI="2" |
52 |
WX_GTK_VER="2.8" |
53 |
inherit eutils fortran cmake-utils wxwidgets java-pkg-opt-2 |
54 |
|
55 |
DESCRIPTION="Multi-language scientific plotting library" |
56 |
HOMEPAGE="http://plplot.sourceforge.net/" |
57 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
58 |
|
59 |
LICENSE="LGPL-2" |
60 |
SLOT="0" |
61 |
KEYWORDS="~amd64 ~x86" |
62 |
IUSE="ada doc examples fortran gd gnome java jpeg latex octave pdf perl |
63 |
png python qhull svga tcl threads tk truetype wxwindows X" |
64 |
|
65 |
RDEPEND="ada? ( virtual/gnat ) |
66 |
java? ( >=virtual/jre-1.5 ) |
67 |
gd? ( media-libs/gd[jpeg?,png?] ) |
68 |
gnome? ( gnome-base/libgnomeui |
69 |
gnome-base/libgnomeprintui |
70 |
python? ( dev-python/gnome-python ) ) |
71 |
latex? ( virtual/latex-base virtual/ghostscript ) |
72 |
octave? ( >=sci-mathematics/octave-3 ) |
73 |
pdf? ( media-libs/libharu ) |
74 |
perl? ( dev-perl/PDL dev-perl/XML-DOM ) |
75 |
python? ( dev-python/numpy ) |
76 |
svga? ( media-libs/svgalib ) |
77 |
tcl? ( dev-lang/tcl dev-tcltk/itcl ) |
78 |
tk? ( dev-lang/tk dev-tcltk/itk ) |
79 |
truetype? ( media-libs/freetype |
80 |
media-fonts/freefont-ttf |
81 |
media-libs/lasi |
82 |
gd? ( media-libs/gd[truetype] ) ) |
83 |
wxwindows? ( x11-libs/wxGTK:2.8[X] x11-libs/agg ) |
84 |
X? ( x11-libs/libX11 x11-libs/libXau x11-libs/libXdmcp )" |
85 |
|
86 |
DEPEND="${RDEPEND} |
87 |
>=dev-util/cmake-2.6 |
88 |
dev-util/pkgconfig |
89 |
doc? ( app-text/opensp |
90 |
app-text/jadetex |
91 |
app-text/docbook2X |
92 |
app-text/docbook-dsssl-stylesheets |
93 |
dev-perl/XML-DOM |
94 |
virtual/latex-base |
95 |
virtual/ghostscript |
96 |
sys-apps/texinfo ) |
97 |
java? ( >=virtual/jdk-1.5 dev-lang/swig ) |
98 |
python? ( dev-lang/swig ) |
99 |
qhull? ( media-libs/qhull )" |
100 |
|
101 |
pkg_setup() { |
102 |
if use fortran; then |
103 |
FORTRAN="gfortran ifc g77" |
104 |
fortran_pkg_setup |
105 |
fi |
106 |
export FC=${FORTRANC} F77=${FORTRANC} |
107 |
|
108 |
wxwidgets_pkg_setup |
109 |
} |
110 |
|
111 |
src_prepare() { |
112 |
# path for python independent of python version |
113 |
epatch "${FILESDIR}"/${PN}-5.9.0-python.patch |
114 |
|
115 |
# remove license |
116 |
sed -i -e '/COPYING.LIB/d' CMakeLists.txt || die |
117 |
|
118 |
# change default install directories for doc and examples |
119 |
sed -i \ |
120 |
-e 's:${DATA_DIR}/examples:${DOC_DIR}/examples:g' \ |
121 |
examples/CMakeLists.txt examples/*/CMakeLists.txt || die |
122 |
sed -i \ |
123 |
-e 's:${VERSION}::g' \ |
124 |
-e "s:doc/\${PACKAGE}:doc/${PF}:" \ |
125 |
cmake/modules/instdirs.cmake || die |
126 |
|
127 |
# haru pdf devide does not build with HPDF_SHARED |
128 |
sed -i \ |
129 |
-e 's:-DHPDF_SHARED::' \ |
130 |
cmake/modules/pdf.cmake || die |
131 |
|
132 |
# default location for docbook crap |
133 |
sed -i \ |
134 |
-e 's:xml/declaration:sgml:' \ |
135 |
cmake/modules/docbook.cmake || die |
136 |
} |
137 |
|
138 |
src_configure() { |
139 |
# see http://www.miscdebris.net/plplot_wiki/index.php?title=CMake_options_for_PLplot |
140 |
|
141 |
cmake-utils_pld() { _use_me_now PLD "$@" ; } |
142 |
|
143 |
mycmakeargs=" |
144 |
-DDEFAULT_ALL_DEVICES=ON |
145 |
-DCMAKE_INSTALL_LIBDIR=/usr/$(get_libdir) |
146 |
$(cmake-utils_has python numpy) |
147 |
$(cmake-utils_has qhull QHULL) |
148 |
$(cmake-utils_has threads PTHREAD) |
149 |
$(cmake-utils_has truetype FREETYPE) |
150 |
$(cmake-utils_use_enable ada ada) |
151 |
$(cmake-utils_use_enable fortran f77) |
152 |
$(cmake-utils_use_enable java java) |
153 |
$(cmake-utils_use_enable gnome gnome2) |
154 |
$(cmake-utils_use_enable octave octave) |
155 |
$(cmake-utils_use_enable perl pdl) |
156 |
$(cmake-utils_use_enable python python) |
157 |
$(cmake-utils_use_enable tcl tcl) |
158 |
$(cmake-utils_use_enable tcl itcl) |
159 |
$(cmake-utils_use_enable tk tk) |
160 |
$(cmake-utils_use_enable tk itk) |
161 |
$(cmake-utils_use_enable wxwindows wxwidgets) |
162 |
$(cmake-utils_pld pdf pdf) |
163 |
$(cmake-utils_pld latex pstex) |
164 |
$(cmake-utils_pld svga linuxvga)" |
165 |
|
166 |
use fortran && [[ ${FORTRANC} != g77 ]] && \ |
167 |
mycmakeargs="${mycmakeargs} $(cmake-utils_use_enable fortran f95)" |
168 |
|
169 |
use truetype && mycmakeargs="${mycmakeargs} |
170 |
-DPL_FREETYPE_FONT_PATH:PATH=/usr/share/fonts/freefont-ttf" |
171 |
|
172 |
if use python && use gnome; then |
173 |
mycmakeargs="${mycmakeargs} -DENABLE_pygcw=ON" |
174 |
else |
175 |
mycmakeargs="${mycmakeargs} -DENABLE_pygcw=OFF" |
176 |
fi |
177 |
cmake-utils_src_configure |
178 |
} |
179 |
|
180 |
src_compile() { |
181 |
# separate doc and normal because doc building crashes with parallel |
182 |
cmake-utils_src_make |
183 |
if use doc; then |
184 |
mycmakeargs="${mycmakeargs} -DBUILD_DOC=ON" |
185 |
mycmakeargs="${mycmakeargs} -DHAVE_DB_DTD=ON" |
186 |
mycmakeargs="${mycmakeargs} -DHAVE_DSSSL_DTD=ON" |
187 |
mycmakeargs="${mycmakeargs} -DHAVE_HTML_SS=ON" |
188 |
mycmakeargs="${mycmakeargs} -DHAVE_PRINT_SS=ON" |
189 |
cmake-utils_src_configure |
190 |
cmake-utils_src_make -j1 |
191 |
fi |
192 |
} |
193 |
|
194 |
src_install() { |
195 |
cmake-utils_src_install |
196 |
use examples || rm -rf "${D}"usr/share/doc/${PF}/examples |
197 |
} |