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-visualization/gle: gle-4.2.2.ebuild ChangeLog
Date: Thu, 07 Jan 2010 17:38:11
Message-Id: E1NSwJB-0008DJ-9L@stork.gentoo.org
1 bicatali 10/01/07 17:38:05
2
3 Modified: ChangeLog
4 Added: gle-4.2.2.ebuild
5 Log:
6 Version bump. Introduced patch to build in parallel and a fix to properly include the manip ncurses tools
7 (Portage version: 2.2_rc61/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.9 sci-visualization/gle/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gle/ChangeLog?rev=1.9&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gle/ChangeLog?rev=1.9&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gle/ChangeLog?r1=1.8&r2=1.9
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-visualization/gle/ChangeLog,v
19 retrieving revision 1.8
20 retrieving revision 1.9
21 diff -u -r1.8 -r1.9
22 --- ChangeLog 27 Dec 2009 16:35:09 -0000 1.8
23 +++ ChangeLog 7 Jan 2010 17:38:04 -0000 1.9
24 @@ -1,6 +1,13 @@
25 # ChangeLog for sci-visualization/gle
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gle/ChangeLog,v 1.8 2009/12/27 16:35:09 grozin Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gle/ChangeLog,v 1.9 2010/01/07 17:38:04 bicatali Exp $
30 +
31 +*gle-4.2.2 (07 Jan 2010)
32 +
33 + 07 Jan 2010; Sébastien Fabbro <bicatali@g.o> +gle-4.2.2.ebuild,
34 + +files/gle-4.2.2-ncurses.patch, +files/gle-4.2.2-parallel.patch:
35 + Version bump. Introduced patch to build in parallel and a fix to properly
36 + include the manip ncurses tools
37
38 27 Dec 2009; Andrey Grozin <grozin@g.o> -gle-4.2.0.ebuild,
39 gle-4.2.1.ebuild:
40
41
42
43 1.1 sci-visualization/gle/gle-4.2.2.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gle/gle-4.2.2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-visualization/gle/gle-4.2.2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: gle-4.2.2.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sci-visualization/gle/gle-4.2.2.ebuild,v 1.1 2010/01/07 17:38:04 bicatali Exp $
53
54 EAPI=2
55 inherit eutils elisp-common qt4 flag-o-matic autotools
56
57 DESCRIPTION="Graphics Layout Engine"
58 HOMEPAGE="http://glx.sourceforge.net/"
59 MY_P=${PN}-graphics-${PV}
60 MAN_V="${PV}"
61 SRC_URI="mirror://sourceforge/glx/${MY_P}f-src.tar.gz
62 doc? ( mirror://sourceforge/glx/${PN}-manual-${MAN_V}.pdf
63 mirror://sourceforge/glx/GLEusersguide.pdf )"
64 SLOT="0"
65 LICENSE="BSD-2 emacs? ( GPL-2 ) qt4? ( GPL-2 )"
66 IUSE="X qt4 jpeg png tiff doc emacs vim-syntax"
67 KEYWORDS="~amd64 ~x86"
68
69 DEPEND="sys-libs/ncurses
70 X? ( x11-libs/libX11 )
71 qt4? ( x11-libs/qt-gui:4 )
72 jpeg? ( media-libs/jpeg )
73 png? ( media-libs/libpng )
74 tiff? ( media-libs/tiff )
75 emacs? ( virtual/emacs )"
76
77 RDEPEND="${DEPEND}
78 app-text/ghostscript-gpl
79 virtual/latex-base
80 vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
81
82 S="${WORKDIR}"/${MY_P}
83
84 src_prepare() {
85 epatch "${FILESDIR}"/${P}-parallel.patch
86 epatch "${FILESDIR}"/${P}-ncurses.patch
87 eaclocal
88 eautoconf
89 }
90
91 src_configure() {
92 # CPPFLAGS are understood as C++ flags
93 append-cppflags ${CXXFLAGS}
94 econf \
95 --without-rpath \
96 --with-manip \
97 $(use_with qt4 qt /usr) \
98 $(use_with X x) \
99 $(use_with jpeg) \
100 $(use_with png) \
101 $(use_with tiff)
102 }
103
104 src_compile() {
105 emake || die "emake failed"
106 if use emacs; then
107 cd contrib/editors/highlighting
108 mv ${PN}-emacs.el ${PN}-mode.el
109 elisp-compile ${PN}-mode.el || die
110 fi
111 }
112
113 src_install() {
114 # -jN failed to install some data files
115 emake -j1 DESTDIR="${D}" install || die "emake install failed"
116 #emake DESTDIR="${D}" install || die "emake install failed"
117 rmdir "${D}"/usr/share/doc/gle-graphics || die "rmdir gle-graphics failed"
118 dodoc README.txt
119
120 if use qt4; then
121 newicon src/gui/images/gle_icon.png gle.png
122 make_desktop_entry qgle GLE gle
123 newdoc src/gui/readme.txt gui_readme.txt
124 fi
125
126 if use doc; then
127 insinto /usr/share/doc/${PF}
128 doins "${DISTDIR}"/${PN}-manual-${MAN_V}.pdf \
129 "${DISTDIR}"/GLEusersguide.pdf
130 fi
131
132 if use emacs; then
133 elisp-install ${PN} contrib/editors/highlighting/gle-mode.{el,elc} || die
134 elisp-site-file-install "${FILESDIR}"/64gle-gentoo.el || die
135 fi
136
137 if use vim-syntax ; then
138 dodir /usr/share/vim/vimfiles/ftplugins \
139 /usr/share/vim/vimfiles/indent \
140 /usr/share/vim/vimfiles/syntax
141 cd contrib/editors/highlighting/vim
142 chmod 644 ftplugin/* indent/* syntax/*
143 insinto /usr/share/vim/vimfiles/ftplugins
144 doins ftplugin/* || die
145 insinto /usr/share/vim/vimfiles/indent
146 doins indent/* || die
147 insinto /usr/share/vim/vimfiles/syntax
148 doins syntax/* || die
149 fi
150 }
151
152 pkg_postinst() {
153 use emacs && elisp-site-regen
154 }
155
156 pkg_postrm() {
157 use emacs && elisp-site-regen
158 }