Gentoo Archives: gentoo-commits

From: "Andrey Grozin (grozin)" <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-visualization/gle: ChangeLog gle-4.2.4.ebuild
Date: Mon, 09 Jan 2012 07:05:34
Message-Id: 20120109070524.E33AB2004B@flycatcher.gentoo.org
1 grozin 12/01/09 07:05:24
2
3 Modified: ChangeLog
4 Added: gle-4.2.4.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.0_alpha84/cvs/Linux i686)
9
10 Revision Changes Path
11 1.16 sci-visualization/gle/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gle/ChangeLog?rev=1.16&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gle/ChangeLog?rev=1.16&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gle/ChangeLog?r1=1.15&r2=1.16
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-visualization/gle/ChangeLog,v
20 retrieving revision 1.15
21 retrieving revision 1.16
22 diff -u -r1.15 -r1.16
23 --- ChangeLog 10 Jun 2011 12:07:38 -0000 1.15
24 +++ ChangeLog 9 Jan 2012 07:05:24 -0000 1.16
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-visualization/gle
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gle/ChangeLog,v 1.15 2011/06/10 12:07:38 grozin Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sci-visualization/gle/ChangeLog,v 1.16 2012/01/09 07:05:24 grozin Exp $
31 +
32 +*gle-4.2.4 (09 Jan 2012)
33 +
34 + 09 Jan 2012; Andrey Grozin <grozin@g.o> +gle-4.2.4.ebuild,
35 + +files/gle-4.2.4-parallel.patch:
36 + Version bump
37
38 10 Jun 2011; Andrey Grozin <grozin@g.o> gle-4.2.3b.ebuild:
39 Fixed dependence with USE=qt4, thanks to fulvio ciriaco <oivulf@×××××.com>
40
41
42
43 1.1 sci-visualization/gle/gle-4.2.4.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gle/gle-4.2.4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-visualization/gle/gle-4.2.4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: gle-4.2.4.ebuild
49 ===================================================================
50 # Copyright 1999-2012 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.4.ebuild,v 1.1 2012/01/09 07:05:24 grozin Exp $
53
54 EAPI=2
55 inherit eutils elisp-common qt4-r2 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=4.2.2
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-opengl:4 )
72 jpeg? ( virtual/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 eaclocal
87 eautoconf
88 }
89
90 src_configure() {
91 # CPPFLAGS are understood as C++ flags
92 append-cppflags ${CXXFLAGS}
93 econf \
94 --without-rpath \
95 --with-manip \
96 $(use_with qt4 qt /usr) \
97 $(use_with X x) \
98 $(use_with jpeg) \
99 $(use_with png) \
100 $(use_with tiff)
101 }
102
103 src_compile() {
104 emake || die "emake failed"
105 if use emacs; then
106 cd contrib/editors/highlighting
107 mv ${PN}-emacs.el ${PN}-mode.el
108 elisp-compile ${PN}-mode.el || die
109 fi
110 }
111
112 src_install() {
113 # -jN failed to install some data files
114 emake -j1 DESTDIR="${D}" install || die "emake install failed"
115 #emake DESTDIR="${D}" install || die "emake install failed"
116 rmdir "${D}"/usr/share/doc/gle-graphics || die "rmdir gle-graphics failed"
117 dodoc README.txt
118
119 if use qt4; then
120 newicon src/gui/images/gle_icon.png gle.png
121 make_desktop_entry qgle GLE gle
122 newdoc src/gui/readme.txt gui_readme.txt
123 fi
124
125 if use doc; then
126 insinto /usr/share/doc/${PF}
127 doins "${DISTDIR}"/${PN}-manual-${MAN_V}.pdf \
128 "${DISTDIR}"/GLEusersguide.pdf
129 fi
130
131 if use emacs; then
132 elisp-install ${PN} contrib/editors/highlighting/gle-mode.{el,elc} || die
133 elisp-site-file-install "${FILESDIR}"/64gle-gentoo.el || die
134 fi
135
136 if use vim-syntax ; then
137 dodir /usr/share/vim/vimfiles/ftplugins \
138 /usr/share/vim/vimfiles/indent \
139 /usr/share/vim/vimfiles/syntax
140 cd contrib/editors/highlighting/vim
141 chmod 644 ftplugin/* indent/* syntax/*
142 insinto /usr/share/vim/vimfiles/ftplugins
143 doins ftplugin/* || die
144 insinto /usr/share/vim/vimfiles/indent
145 doins indent/* || die
146 insinto /usr/share/vim/vimfiles/syntax
147 doins syntax/* || die
148 fi
149 }
150
151 pkg_postinst() {
152 use emacs && elisp-site-regen
153 }
154
155 pkg_postrm() {
156 use emacs && elisp-site-regen
157 }