/[gentoo-x86]/app-text/gsview/gsview-4.9.ebuild
Gentoo

Contents of /app-text/gsview/gsview-4.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Dec 14 05:16:12 2013 UTC (18 months, 2 weeks ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
app-text/gsview is gone

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/gsview/gsview-4.9.ebuild,v 1.8 2012/02/16 18:24:09 phajdan.jr Exp $
4
5 EAPI="3"
6
7 inherit eutils toolchain-funcs
8
9 MY_PV="${PV/.}"
10
11 DESCRIPTION="gsView PostScript and PDF viewer"
12 HOMEPAGE="http://www.cs.wisc.edu/~ghost/gsview/"
13 SRC_URI="ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/gsv${MY_PV}src.zip"
14
15 IUSE="doc"
16 SLOT="0"
17 LICENSE="Aladdin"
18 KEYWORDS="amd64 hppa ppc x86 ~amd64-linux ~x86-linux"
19
20 RDEPEND="x11-libs/gtk+:1
21 app-text/epstool
22 app-text/pstotext
23 app-text/ghostscript-gpl"
24 DEPEND="app-arch/unzip
25 x11-libs/gtk+:1"
26
27 src_prepare() {
28 epatch "${FILESDIR}"/${PV}-gentoo.patch
29 epatch "${FILESDIR}"/${P}-libdl.patch
30 tc-export CC
31 }
32
33 src_compile() {
34 ln -sf srcunx/unx.mak Makefile || die
35
36 ## respect CFLAGS
37 sed -i -e "s:^CFLAGS=-O :CFLAGS=${CFLAGS} :g" Makefile || die
38 sed -i -e "s:GSVIEW_DOCPATH:\"${EPREFIX}/usr/share/doc/${PF}/html/\":" srcunx/gvx.c || die
39
40 ## run Makefile
41 # bug #283165
42 emake -j1 || die "Error compiling files."
43 }
44
45 src_install() {
46 dobin bin/gsview || die
47
48 doman srcunx/gsview.1 || die
49
50 dodoc gsview.css cdorder.txt regorder.txt || die
51
52 if use doc
53 then
54 dobin "${FILESDIR}"/gsview-help || die
55 dohtml *.htm bin/*.htm || die
56 fi
57
58 insinto /etc/gsview
59 doins src/printer.ini || die
60
61 make_desktop_entry gsview Gsview "" "Office" ||
62 die "Couldn't make gsview desktop entry"
63 }

  ViewVC Help
Powered by ViewVC 1.1.20