1 |
commit: f71bb2df52c781cb3eb58a955316dc8bb9fe43a9 |
2 |
Author: Christoph Junghans <ottxor <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 28 13:09:13 2011 +0000 |
4 |
Commit: Christoph Junghans <kleiner_otti <AT> gmx <DOT> de> |
5 |
CommitDate: Sat May 28 13:09:13 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=f71bb2df |
7 |
|
8 |
[sci-visualization/gnuplot] sync with tree |
9 |
|
10 |
(Portage version: 2.1.9.42/git/Linux i686, signed Manifest commit with key C2000586) |
11 |
|
12 |
--- |
13 |
sci-visualization/gnuplot/ChangeLog | 3 + |
14 |
sci-visualization/gnuplot/gnuplot-4.5.9999.ebuild | 62 ++++++++++++++------- |
15 |
2 files changed, 45 insertions(+), 20 deletions(-) |
16 |
|
17 |
diff --git a/sci-visualization/gnuplot/ChangeLog b/sci-visualization/gnuplot/ChangeLog |
18 |
index 127125b..2f2be4a 100644 |
19 |
--- a/sci-visualization/gnuplot/ChangeLog |
20 |
+++ b/sci-visualization/gnuplot/ChangeLog |
21 |
@@ -2,6 +2,9 @@ |
22 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
23 |
# $Header: $ |
24 |
|
25 |
+ 28 May 2011; Christoph Junghans <ottxor@g.o> gnuplot-4.5.9999.ebuild: |
26 |
+ sync with tree |
27 |
+ |
28 |
28 May 2011; Christoph Junghans <ottxor@g.o> -gnuplot-4.4.3-r1.ebuild, |
29 |
metadata.xml: |
30 |
InCVS |
31 |
|
32 |
diff --git a/sci-visualization/gnuplot/gnuplot-4.5.9999.ebuild b/sci-visualization/gnuplot/gnuplot-4.5.9999.ebuild |
33 |
index d414079..3898887 100644 |
34 |
--- a/sci-visualization/gnuplot/gnuplot-4.5.9999.ebuild |
35 |
+++ b/sci-visualization/gnuplot/gnuplot-4.5.9999.ebuild |
36 |
@@ -4,16 +4,24 @@ |
37 |
|
38 |
EAPI=3 |
39 |
|
40 |
-inherit autotools cvs elisp-common multilib wxwidgets |
41 |
+inherit elisp-common multilib wxwidgets |
42 |
|
43 |
DESCRIPTION="Command-line driven interactive plotting program" |
44 |
HOMEPAGE="http://www.gnuplot.info/" |
45 |
|
46 |
-ECVS_SERVER="gnuplot.cvs.sourceforge.net:/cvsroot/gnuplot" |
47 |
-ECVS_MODULE="gnuplot" |
48 |
-ECVS_BRANCH="HEAD" |
49 |
-ECVS_USER="anonymous" |
50 |
-ECVS_CVS_OPTIONS="-dP" |
51 |
+if [[ -z ${PV%%*9999} ]]; then |
52 |
+ inherit autotools cvs |
53 |
+ ECVS_SERVER="gnuplot.cvs.sourceforge.net:/cvsroot/gnuplot" |
54 |
+ ECVS_MODULE="gnuplot" |
55 |
+ ECVS_BRANCH="HEAD" |
56 |
+ ECVS_USER="anonymous" |
57 |
+ ECVS_CVS_OPTIONS="-dP" |
58 |
+ MY_P="${PN}" |
59 |
+ SRC_URI="" |
60 |
+else |
61 |
+ MY_P="${P/_/-}" |
62 |
+ SRC_URI="mirror://sourceforge/gnuplot/${MY_P}.tar.gz" |
63 |
+fi |
64 |
|
65 |
LICENSE="gnuplot GPL-2" |
66 |
SLOT="0" |
67 |
@@ -40,34 +48,35 @@ RDEPEND="!app-emacs/gnuplot-mode |
68 |
wxwidgets? ( x11-libs/wxGTK:2.8[X] |
69 |
x11-libs/cairo |
70 |
x11-libs/pango |
71 |
- >=x11-libs/gtk+-2.8:2 ) |
72 |
+ x11-libs/gtk+:2 ) |
73 |
X? ( x11-libs/libXaw ) |
74 |
xemacs? ( app-editors/xemacs |
75 |
- app-xemacs/xemacs-base |
76 |
- app-xemacs/texinfo )" |
77 |
+ app-xemacs/xemacs-base )" |
78 |
DEPEND="${RDEPEND} |
79 |
dev-util/pkgconfig |
80 |
doc? ( virtual/latex-base |
81 |
app-text/ghostscript-gpl ) |
82 |
- virtual/emacs" |
83 |
+ !emacs? ( xemacs? ( app-xemacs/texinfo ) ) |
84 |
+ !emacs? ( !xemacs? ( || ( virtual/emacs app-xemacs/texinfo ) ) )" |
85 |
|
86 |
-S="${WORKDIR}/${PN}" |
87 |
+S="${WORKDIR}/${MY_P}" |
88 |
GP_VERSION="${PV%.*}" |
89 |
E_SITEFILE="50${PN}-gentoo.el" |
90 |
TEXMF="${EPREFIX}/usr/share/texmf-site" |
91 |
|
92 |
src_prepare() { |
93 |
- local dir |
94 |
- for dir in config demo m4 term tutorial; do |
95 |
- emake -C "$dir" -f Makefile.am.in Makefile.am || \ |
96 |
- die "make -f Makefile.am.in Makefile.am in $dir failed" |
97 |
- done |
98 |
+ if [[ -z ${PV%%*9999} ]]; then |
99 |
+ local dir |
100 |
+ for dir in config demo m4 term tutorial; do |
101 |
+ emake -C "$dir" -f Makefile.am.in Makefile.am || \ |
102 |
+ die "make -f Makefile.am.in Makefile.am in $dir failed" |
103 |
+ done |
104 |
+ eautoreconf |
105 |
+ fi |
106 |
|
107 |
# Add special version identification as required by provision 2 |
108 |
# of the gnuplot license |
109 |
sed -i -e "1s/.*/& (Gentoo revision ${PR})/" PATCHLEVEL || die |
110 |
- |
111 |
- eautoreconf |
112 |
} |
113 |
|
114 |
src_configure() { |
115 |
@@ -100,7 +109,15 @@ src_configure() { |
116 |
&& myconf="${myconf} --with-readline=gnu" \ |
117 |
|| myconf="${myconf} --with-readline=builtin" |
118 |
|
119 |
- econf ${myconf} DIST_CONTACT="http://bugs.gentoo.org/" |
120 |
+ if has_version virtual/emacs; then |
121 |
+ emacs="emacs" |
122 |
+ elif has_version app-xemacs/texinfo; then |
123 |
+ emacs="xemacs" |
124 |
+ fi |
125 |
+ |
126 |
+ econf ${myconf} \ |
127 |
+ DIST_CONTACT="http://bugs.gentoo.org/" \ |
128 |
+ EMACS="${emacs}" |
129 |
|
130 |
if use xemacs; then |
131 |
einfo "Configuring gnuplot-mode for XEmacs ..." |
132 |
@@ -125,7 +142,7 @@ src_compile() { |
133 |
# example plots. |
134 |
addwrite /dev/svga:/dev/mouse:/dev/tts/0 |
135 |
|
136 |
- emake || die |
137 |
+ emake all info || die |
138 |
|
139 |
if use xemacs; then |
140 |
cd "${S}/lisp-xemacs" |
141 |
@@ -206,7 +223,12 @@ pkg_postinst() { |
142 |
use emacs && elisp-site-regen |
143 |
use latex && texmf-update |
144 |
|
145 |
+ einfo "Gnuplot no longer links against pdflib, see the ChangeLog for" |
146 |
+ einfo "details. You can use the \"pdfcairo\" terminal for PDF output." |
147 |
+ use cairo || einfo "It is available with USE=\"cairo\"." |
148 |
+ |
149 |
if use svga; then |
150 |
+ echo |
151 |
einfo "In order to enable ordinary users to use SVGA console graphics" |
152 |
einfo "gnuplot needs to be set up as setuid root. Please note that" |
153 |
einfo "this is usually considered to be a security hazard." |