* [gentoo-dev] Ebuild for gv
@ 2001-07-11 2:06 Dan Armak
0 siblings, 0 replies; only message in thread
From: Dan Armak @ 2001-07-11 2:06 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 830 bytes --]
Hi all,
Here is the ebuild for gv, the ghostscript frontend, as promised earlier. It
should go into app-text.
The ebuild is quite standard. Note however that gv itself uses Imakefiles to
generate a large amount of Makefiles.
The -gentoo diff makes it install into .usr instead of /usr/local.
Note: it doesn't incorporate the env. vars CFLAGS,CXXFLAGS so all it has for
optimization is -O2. I tried to make it use these env. vars, but constantly
recieved errors about CFLAGS (eventually) referencing itself etc. I'm not too
good with shell scripts and worse with Imakefiles, so I stopped after 30
minutes of trying. Someone who knows how to do it should make a -r1 version.
Note 2: this depends on the Xaw3d ebuild I posted yesterday. Note that I have
since posted a slightly updated version of that ebuild.
Enjoy,
Dan
[-- Attachment #2: gv-3.5.8.ebuild --]
[-- Type: text/plain, Size: 1140 bytes --]
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Dan Armak <ermak@netvision.net.il>
# /home/cvsroot/gentoo-x86/skel.build,v 1.3 2001/07/05 02:43:36 drobbins Exp
S=${WORKDIR}/${P}
DESCRIPTION="gv is a standard ghostscript frontend used e.g. by LyX"
SRC_URI="ftp://ftpthep.physik.uni-mainz.de/pub/gv/unix/${P}.tar.gz"
HOMEPAGE="http://wwwthep.physik.uni-mainz.de/~plass/gv/"
# There's probably more, but ghostscript also depends on it,
# so I can't identify it
DEPEND="virtual/x11 x11-libs/Xaw3d app-text/ghostscript"
src_unpack() {
# need to check if this can be done automatically
# The -gentoo patch is std: installation into /usr
# instead of /usr/local
unpack ${P}.tar.gz
cd ${S}
patch -p0 <${FILESDIR}/${P}-gentoo.diff
}
src_compile() {
cd ${S}
try xmkmf
try emake Makefiles
try emake
}
src_install () {
# BTW, how about using emake install?
try make DESTDIR=${D} install
try make DESTDIR=${D} install.man
try make DESTDIR=${D} install.doc
}
[-- Attachment #3: digest-gv-3.5.8 --]
[-- Type: text/plain, Size: 53 bytes --]
MD5 8f2f0bd97395d6cea52926ddee736da8 gv-3.5.8.tar.gz
[-- Attachment #4: gv-3.5.8-gentoo.diff --]
[-- Type: text/plain, Size: 714 bytes --]
--- config.Unix.orig Sat Jun 7 01:00:00 1997
+++ config.Unix Wed Jul 11 10:46:06 2001
@@ -32,10 +32,10 @@
XCOMM --------------------------------------------------------------------
XCOMM Destination directories.
XCOMM --------------------------------------------------------------------
- GV_BINDIR = /usr/local/bin/
- GV_DOCDIR = /usr/local/doc/gv/
- GV_LIBDIR = /usr/local/lib/gv/
- GV_MANDIR = /usr/local/man/man1/
+ GV_BINDIR = /usr/bin/
+ GV_DOCDIR = /usr/doc/gv/
+ GV_LIBDIR = /usr/lib/gv/
+ GV_MANDIR = /usr/man/man1/
XCOMM --------------------------------------------------------------------
XCOMM --- The name of the Xaw3d library.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-07-11 8:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-11 2:06 [gentoo-dev] Ebuild for gv Dan Armak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox