summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/gsview')
-rw-r--r--app-text/gsview/ChangeLog10
-rw-r--r--app-text/gsview/Manifest15
-rw-r--r--app-text/gsview/files/4.9-gentoo.patch31
-rw-r--r--app-text/gsview/gsview-4.9.ebuild62
4 files changed, 115 insertions, 3 deletions
diff --git a/app-text/gsview/ChangeLog b/app-text/gsview/ChangeLog
index 7cb4f934c315..24c80b3761bd 100644
--- a/app-text/gsview/ChangeLog
+++ b/app-text/gsview/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-text/gsview
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/gsview/ChangeLog,v 1.31 2009/12/26 19:38:59 pva Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/gsview/ChangeLog,v 1.32 2010/10/03 12:43:15 jlec Exp $
+
+*gsview-4.9 (03 Oct 2010)
+
+ 03 Oct 2010; Justin Lecher <jlec@gentoo.org> +files/4.9-gentoo.patch,
+ +gsview-4.9.ebuild:
+ Version Bump, 284197; LDFLAGS respect, 333537
26 Dec 2009; Peter Volkov <pva@gentoo.org> gsview-4.8.ebuild:
virtual/ghostscript->app-text/ghostscript-gpl: ghostscript-gpl is the only
diff --git a/app-text/gsview/Manifest b/app-text/gsview/Manifest
index a89928100192..f4f0116a0267 100644
--- a/app-text/gsview/Manifest
+++ b/app-text/gsview/Manifest
@@ -1,6 +1,19 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX 4.9-gentoo.patch 1154 RMD160 739f8b43a80ad44ee708142aac4e527ac5be8e13 SHA1 65dd6549a422db899d395a67f26f9f2562bb0dfd SHA256 02bf1a496e7af291dc86b0d86e974d1c1af4226c078626a06b2c047ee7aa8b88
AUX gsview-4.8-gsesp.patch 514 RMD160 5fc7847e218db1a5262be7c87974f6d8b92594a7 SHA1 c0e332460c47a02b578967b4e2d7b39ddef717ab SHA256 e394c3747d44c096b0f798e5be5a3efdc15ea5d97db039a9293d79f81a3f1317
AUX gsview-help 300 RMD160 477c846a3f0a47951dbcf2bb5006a14c33756c14 SHA1 85c0abb2a40f5a124ad9674b1808fbe01d8c624a SHA256 9c349814b51fa1f99cd638f7b7f6d3ea132334030995b7705a49a2459b6dbd20
DIST gsv48src.zip 1481063 RMD160 c5bd8ad82f8d5753b9ae72fda008c228aef4c18d SHA1 100a5d6ff4fd279d00395cd0bd896bbdd5f2dc4d SHA256 3a401dfe262370be802fe26a092b420ded1fd7d281c70406a3f32066baa8cf09
+DIST gsv49src.zip 1455372 RMD160 6f1b9fb2bdccdfb38a584ec1cd14324b9b60eb23 SHA1 036d13b5ff82bcd0150d440e2517c965a952ee49 SHA256 37829125d90957bb66e9b1bc71bff64f9da3553dc8fcf6078944269b3202b78d
EBUILD gsview-4.8.ebuild 1331 RMD160 7b78f7090f465613675faaaebe20f8ce6cf955a0 SHA1 a4c9bcff1b4a25f3acf69c7b4f22082fa0046808 SHA256 0219806150d9ac35f4e25cbcfa232edd8634abaf8324d8afdfe2c357cd695d9b
-MISC ChangeLog 4107 RMD160 e405fa9b9c8011ba7a3f893d958785afab84109f SHA1 8950a50e8a4974c30c39bd697da630858a6af792 SHA256 1db0260bfc1422b8589b95d8e2231f46a8d473aab2bda7fd71ef357ee72d36a8
+EBUILD gsview-4.9.ebuild 1347 RMD160 4cba46ab35c45a55509fce567bed49d6ca33388a SHA1 c9071bf4bab5a32931be841ab7ef0fd167a39097 SHA256 98851a09fa2781e718ad32be66605c65242091d0aa9b6b88fa54d3215fde9152
+MISC ChangeLog 4278 RMD160 607fff984ed993d03a51d3070a2556ff4b1af985 SHA1 2b539948f3a523cfb1ddbbec866c61d6e2d9b352 SHA256 26b79497106886b38341d21738aa00211f0430ac8f948590fb8e1c6332bb7a3c
MISC metadata.xml 161 RMD160 1e5b1e42553c8869b93c4a5448e9a2a2ed9fe525 SHA1 209c6a46e4cdd891980115e42ba419e3799f8088 SHA256 7c85e6739a71f5bb23e8de36c88677d772946e61f7285892f7554e37bd2bca76
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.16 (GNU/Linux)
+
+iEYEARECAAYFAkyoemgACgkQgAnW8HDreRZ1egCfYfbxujh5/RuMcv8Dltpfnaq7
+7jYAoM0SVVwxJjZZQ9vxh4LCVAWTvqBO
+=EWRV
+-----END PGP SIGNATURE-----
diff --git a/app-text/gsview/files/4.9-gentoo.patch b/app-text/gsview/files/4.9-gentoo.patch
new file mode 100644
index 000000000000..38ff9bb2fd5c
--- /dev/null
+++ b/app-text/gsview/files/4.9-gentoo.patch
@@ -0,0 +1,31 @@
+diff --git a/srcunx/unx.mak b/srcunx/unx.mak
+index 3bd1769..ee86618 100644
+--- a/srcunx/unx.mak
++++ b/srcunx/unx.mak
+@@ -39,7 +39,7 @@ GSVIEW_DOCPATH=$(GSVIEW_BASE)/share/doc
+ GSVIEW_ETCPATH=$(prefix)/etc
+
+ MAKE=make
+-CC=gcc
++CC ?= gcc
+ OBJ=o
+ INSTALL=install -m 644
+ INSTALL_EXE=install -m 755
+@@ -77,7 +77,7 @@ PLINK=-lpthread -lrt
+
+ # Other possible options are -Wtraditional
+ # Compiler flags for C and C++ files.
+-CFLAGS=-O -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -fno-builtin -fno-common -Wcast-qual -Wwrite-strings $(CDEBUG) -DX11 -DUNIX -DNONAG $(RPM_OPT_FLAGS) `gtk-config --cflags` $(XINCLUDE) $(PFLAGS)
++CFLAGS += $(CDEBUG) -DX11 -DUNIX -DNONAG $(RPM_OPT_FLAGS) `gtk-config --cflags` $(XINCLUDE) $(PFLAGS)
+
+ # Linker flags
+ LFLAGS=$(LDEBUG) $(PLINK) `gtk-config --libs`
+@@ -155,7 +155,7 @@ all: $(BD)gsview$(EXE) html
+ GSVIEW_DOCDIR=$(GSVIEW_DOCPATH)/gsview-$(GSVIEW_DOT_VERSION)
+
+ $(BD)gsview$(EXE): $(OBJS)
+- $(COMP) $(CFLAGS) $(FO)$(BD)gsview$(EXE) $(OBJS) $(LFLAGS)
++ $(COMP) $(CFLAGS) $(LDFLAGS) $(FO)$(BD)gsview$(EXE) $(OBJS) $(LFLAGS)
+
+ install: all
+ -mkdir -p $(GSVIEW_BASE)
diff --git a/app-text/gsview/gsview-4.9.ebuild b/app-text/gsview/gsview-4.9.ebuild
new file mode 100644
index 000000000000..2d9024fbc2eb
--- /dev/null
+++ b/app-text/gsview/gsview-4.9.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/gsview/gsview-4.9.ebuild,v 1.1 2010/10/03 12:43:15 jlec Exp $
+
+EAPI="3"
+
+inherit eutils toolchain-funcs
+
+MY_PV="${PV/.}"
+
+DESCRIPTION="gsView PostScript and PDF viewer"
+HOMEPAGE="http://www.cs.wisc.edu/~ghost/gsview/"
+SRC_URI="ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/gsv${MY_PV}src.zip"
+
+IUSE="doc"
+SLOT="0"
+LICENSE="Aladdin"
+KEYWORDS="~amd64 ~hppa ~ppc ~x86"
+
+RDEPEND="=x11-libs/gtk+-1.2*
+ app-text/epstool
+ app-text/pstotext
+ app-text/ghostscript-gpl"
+DEPEND="app-arch/unzip
+ =x11-libs/gtk+-1.2*"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-gentoo.patch
+ tc-export CC
+}
+
+src_compile() {
+ ln -sf srcunx/unx.mak Makefile
+
+ ## respect CFLAGS
+ sed -i -e "s:^CFLAGS=-O :CFLAGS=${CFLAGS} :g" Makefile
+ sed -i -e "s:GSVIEW_DOCPATH:\"${EPREFIX}/usr/share/doc/${PF}/html/\":" srcunx/gvx.c
+
+ ## run Makefile
+ # bug #283165
+ emake -j1 || die "Error compiling files."
+}
+
+src_install() {
+ dobin bin/gsview
+
+ doman srcunx/gsview.1
+
+ dodoc gsview.css cdorder.txt regorder.txt
+
+ if use doc
+ then
+ dobin ${FILESDIR}/gsview-help
+ dohtml *.htm bin/*.htm
+ fi
+
+ insinto /etc/gsview
+ doins src/printer.ini
+
+ make_desktop_entry gsview Gsview "" "Office" ||
+ die "Couldn't make gsview desktop entry"
+}