Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 194543
Collapse All | Expand All

(-)/tmp/geomview-1.9.4.ebuild (-16 / +22 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
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.1 2007/09/25 13:39:19 markusle Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/geomview/geomview-1.9.4.ebuild,v 1.1 2007/09/25 13:39:19 markusle Exp $
4
4
5
inherit eutils flag-o-matic fdo-mime
5
inherit elisp-common eutils flag-o-matic fdo-mime
6
6
7
DESCRIPTION="Interactive Geometry Viewer"
7
DESCRIPTION="Interactive Geometry Viewer"
8
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
8
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
Lines 14-19 Link Here
14
IUSE="avg bzip2 debug emacs netpbm pdf zlib"
14
IUSE="avg bzip2 debug emacs netpbm pdf zlib"
15
15
16
DEPEND="zlib? ( sys-libs/zlib )
16
DEPEND="zlib? ( sys-libs/zlib )
17
	emacs? ( virtual/emacs )
17
	virtual/motif
18
	virtual/motif
18
	virtual/opengl"
19
	virtual/opengl"
19
20
Lines 32-52 Link Here
32
	virtual/w3m"
33
	virtual/w3m"
33
34
34
S="${WORKDIR}/${P/_/-}"
35
S="${WORKDIR}/${P/_/-}"
36
SITEFILE=50${PN}-gentoo.el
35
37
36
src_compile() {
38
src_compile() {
37
	# GNU standard is /usr/share/doc/${PN}, so override this; also note
39
	# GNU standard is /usr/share/doc/${PN}, so override this; also note
38
	# that motion averaging is still experimental.
40
	# that motion averaging is still experimental.
39
	if use pdf; then
41
	if use pdf; then
40
	    local myconf="--docdir=/usr/share/doc/${PF}"
42
		local myconf="--docdir=/usr/share/doc/${PF}"
41
	else
43
	else
42
	    local myconf="--docdir=/usr/share/doc/${PF} --without-pdfviewer"
44
		local myconf="--docdir=/usr/share/doc/${PF} --without-pdfviewer"
43
	fi
45
	fi
44
46
45
	econf ${myconf} $(use_enable debug d1debug) $(use_with zlib) \
47
	econf ${myconf} $(use_enable debug d1debug) $(use_with zlib) \
46
	    $(use_enable avg motion-averaging) \
48
		$(use_enable avg motion-averaging) \
47
	    || die "could not configure"
49
		|| die "could not configure"
48
50
49
	emake || die "make failed"
51
	emake || die "make failed"
52
53
	if use emacs; then
54
		cp "${FILESDIR}/gvcl-mode.el" "${S}"
55
		elisp-compile *.el || die "elisp-compile failed"
56
	fi
57
50
}
58
}
51
59
52
src_install() {
60
src_install() {
Lines 54-71 Link Here
54
62
55
	doicon "${FILESDIR}"/geomview.png
63
	doicon "${FILESDIR}"/geomview.png
56
	make_desktop_entry geomview "GeomView ${PV}" \
64
	make_desktop_entry geomview "GeomView ${PV}" \
57
	    "/usr/share/pixmaps/geomview.png" \
65
		"/usr/share/pixmaps/geomview.png" \
58
	    "Science;Math;Education"
66
		"Science;Math;Education"
59
67
60
	dodoc AUTHORS ChangeLog NEWS INSTALL.Geomview
68
	dodoc AUTHORS ChangeLog NEWS INSTALL.Geomview
61
69
62
	if ! use pdf; then
70
	if ! use pdf; then
63
	    rm "${D}"/usr/share/doc/${PF}/${PN}.pdf
71
		rm "${D}"/usr/share/doc/${PF}/${PN}.pdf
64
	fi
72
	fi
65
73
66
	if use emacs; then
74
	if use emacs; then
67
	    insinto /usr/share/geomview
75
		elisp-install ${PN} *.el *.elc|| die "elisp-install failed"
68
	    doins "${FILESDIR}"/gvcl-mode.el || die
76
		elisp-site-file-install "${FILESDIR}/${SITEFILE}" || \
77
			die "elisp-site-file-install failed"
69
	fi
78
	fi
70
}
79
}
71
80
Lines 79-92 Link Here
79
	elog "you wish to use an alternate PDF viewer, feel free to remove"
88
	elog "you wish to use an alternate PDF viewer, feel free to remove"
80
	elog "xpdf and use the viewer of your choice (see the docs for how"
89
	elog "xpdf and use the viewer of your choice (see the docs for how"
81
	elog "to setup the \'(ui-pdf-viewer VIEWER)\' GCL-command)."
90
	elog "to setup the \'(ui-pdf-viewer VIEWER)\' GCL-command)."
82
	elog ""
91
83
	elog "If you use emacs, enable the corresponding use flag and check"
92
	use emacs && elisp-site-regen
84
	elog "out the provided mode file for editing the GeomView command"
85
	elog "language (courtesy of Claus-Justus Heine).  Incorporating it"
86
	elog "into your emacs configuration is left as an exercise..."
87
	elog ""
88
}
93
}
89
94
90
pkg_postrm() {
95
pkg_postrm() {
91
	fdo-mime_desktop_database_update
96
	fdo-mime_desktop_database_update
97
	use emacs && elisp-site-regen
92
}
98
}

Return to bug 194543