/[gentoo-x86]/sci-mathematics/geomview/geomview-1.9.4.ebuild
Gentoo

Contents of /sci-mathematics/geomview/geomview-1.9.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Wed Oct 24 19:40:34 2012 UTC (21 months, 4 weeks ago) by ulm
Branch: MAIN
Changes since 1.7: +2 -2 lines
Update dependency after package move from x11-libs/openmotif to x11-libs/motif.

(Portage version: 2.1.11.30/cvs/Linux x86_64, signed Manifest commit with key E7BE08CA7DC6EA25)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/geomview/geomview-1.9.4.ebuild,v 1.7 2012/01/26 17:10:25 jlec Exp $
4
5 EAPI=1
6
7 inherit elisp-common eutils flag-o-matic fdo-mime
8
9 DESCRIPTION="Interactive Geometry Viewer"
10 HOMEPAGE="http://geomview.sourceforge.net"
11 SRC_URI="
12 mirror://sourceforge/${PN}/${P}.tar.bz2
13 http://dev.gentoo.org/~jlec/distfiles/geomview.png.tar"
14
15 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
16 LICENSE="LGPL-2.1"
17 SLOT="0"
18 IUSE="avg bzip2 debug emacs netpbm pdf zlib"
19
20 DEPEND="
21 >=x11-libs/motif-2.3:0
22 virtual/opengl
23 emacs? ( virtual/emacs )
24 zlib? ( sys-libs/zlib )"
25 RDEPEND="${DEPEND}
26 app-arch/gzip
27 virtual/w3m
28 bzip2? ( app-arch/bzip2 )
29 netpbm? ( >=media-libs/netpbm-10.37.0 )
30 pdf? (
31 || ( app-text/xpdf
32 app-text/gv
33 app-text/gsview
34 app-text/epdfview
35 app-text/acroread )
36 )"
37
38 S="${WORKDIR}/${P/_/-}"
39
40 SITEFILE=50${PN}-gentoo.el
41
42 src_compile() {
43 # GNU standard is /usr/share/doc/${PN}, so override this; also note
44 # that motion averaging is still experimental.
45 if use pdf; then
46 local myconf="--docdir=/usr/share/doc/${PF}"
47 else
48 local myconf="--docdir=/usr/share/doc/${PF} --without-pdfviewer"
49 fi
50
51 econf ${myconf} $(use_enable debug d1debug) $(use_with zlib) \
52 $(use_enable avg motion-averaging)
53
54 emake || die "make failed"
55
56 if use emacs; then
57 cp "${FILESDIR}/gvcl-mode.el" "${S}"
58 elisp-compile *.el || die "elisp-compile failed"
59 fi
60
61 }
62
63 src_install() {
64 emake DESTDIR="${D}" install || die "emake install failed"
65
66 doicon "${WORKDIR}"/geomview.png || die
67 make_desktop_entry geomview "GeomView ${PV}" \
68 "/usr/share/pixmaps/geomview.png" \
69 "Science;Math;Education"
70
71 dodoc AUTHORS ChangeLog NEWS INSTALL.Geomview || die
72
73 if ! use pdf; then
74 rm "${D}"/usr/share/doc/${PF}/${PN}.pdf || die
75 fi
76
77 if use emacs; then
78 elisp-install ${PN} *.el *.elc|| die "elisp-install failed"
79 elisp-site-file-install "${FILESDIR}/${SITEFILE}" || \
80 die "elisp-site-file-install failed"
81 fi
82 }
83
84 pkg_postinst() {
85 fdo-mime_desktop_database_update
86
87 elog "GeomView expects you to have both Firefox and Xpdf installed for"
88 elog "viewing the documentation (this can be changed at runtime)."
89 echo ""
90 elog "The w3m virtual should handle the HTML browser part, and if"
91 elog "you wish to use an alternate PDF viewer, feel free to remove"
92 elog "xpdf and use the viewer of your choice (see the docs for how"
93 elog "to setup the \'(ui-pdf-viewer VIEWER)\' GCL-command)."
94
95 use emacs && elisp-site-regen
96 }
97
98 pkg_postrm() {
99 fdo-mime_desktop_database_update
100 use emacs && elisp-site-regen
101 }

  ViewVC Help
Powered by ViewVC 1.1.20