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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.17 - (show annotations) (download)
Tue Jun 18 04:16:28 2013 UTC (16 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.16: +1 -1 lines
FILE REMOVED
old

(Portage version: 2.1.12.2/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2011 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.8.ebuild,v 1.16 2011/03/27 12:20:51 nirbheek Exp $
4
5 EAPI="1"
6
7 inherit eutils
8
9 MY_PV="${PV/.}"
10 DESCRIPTION="gsView PostScript and PDF viewer"
11 SRC_URI="ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/gsv${MY_PV}src.zip"
12 HOMEPAGE="http://www.cs.wisc.edu/~ghost/gsview/"
13
14 IUSE="doc"
15 SLOT="0"
16 LICENSE="Aladdin"
17 KEYWORDS="amd64 hppa ppc x86"
18
19 RDEPEND="x11-libs/gtk+:1
20 app-text/epstool
21 app-text/pstotext
22 app-text/ghostscript-gpl"
23 DEPEND="app-arch/unzip
24 x11-libs/gtk+:1"
25
26 src_unpack() {
27 unpack ${A}
28 cd "${S}"
29 epatch "${FILESDIR}"/${P}-gsesp.patch
30 }
31
32 src_compile() {
33 ## copy Unix makefile
34 ln -s srcunx/unx.mak Makefile
35
36 ## respect CFLAGS
37 sed -i -e "s:^CFLAGS=-O :CFLAGS=${CFLAGS} :g" Makefile
38 sed -i -e "s:GSVIEW_DOCPATH:\"/usr/share/doc/${PF}/html/\":" srcunx/gvx.c
39
40 ## run Makefile
41 # bug #283165
42 emake -j1 || die "Error compiling files."
43 }
44
45 src_install() {
46 dobin bin/gsview
47
48 doman srcunx/gsview.1
49
50 dodoc gsview.css cdorder.txt regorder.txt
51
52 if use doc
53 then
54 dobin "${FILESDIR}"/gsview-help
55 dohtml *.htm bin/*.htm
56 fi
57
58 insinto /etc/gsview
59 doins src/printer.ini
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