summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2008-06-04 18:19:07 +0000
committerAlexis Ballier <aballier@gentoo.org>2008-06-04 18:19:07 +0000
commit5a51699c334122e74748657e678fbe43b04df14f (patch)
treeb72145ab7c030b4ed955ccd7bfeac77693082190 /app-text/psutils
parentUse eautoreconf, not the bootstrap script. (diff)
downloadgentoo-2-5a51699c334122e74748657e678fbe43b04df14f.tar.gz
gentoo-2-5a51699c334122e74748657e678fbe43b04df14f.tar.bz2
gentoo-2-5a51699c334122e74748657e678fbe43b04df14f.zip
Dont ignore ldflags, bug #209707
(Portage version: 2.1.5.3)
Diffstat (limited to 'app-text/psutils')
-rw-r--r--app-text/psutils/ChangeLog8
-rw-r--r--app-text/psutils/files/psutils-1.17-ldflags.patch44
-rw-r--r--app-text/psutils/psutils-1.17-r1.ebuild39
3 files changed, 90 insertions, 1 deletions
diff --git a/app-text/psutils/ChangeLog b/app-text/psutils/ChangeLog
index 4a899915fbf5..50c28c37a90d 100644
--- a/app-text/psutils/ChangeLog
+++ b/app-text/psutils/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-text/psutils
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/psutils/ChangeLog,v 1.20 2008/06/04 16:44:25 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/psutils/ChangeLog,v 1.21 2008/06/04 18:19:07 aballier Exp $
+
+*psutils-1.17-r1 (04 Jun 2008)
+
+ 04 Jun 2008; Alexis Ballier <aballier@gentoo.org>
+ +files/psutils-1.17-ldflags.patch, +psutils-1.17-r1.ebuild:
+ Dont ignore ldflags, bug #209707
04 Jun 2008; Alexis Ballier <aballier@gentoo.org> metadata.xml:
add tex as herd, not optimal but better than noone
diff --git a/app-text/psutils/files/psutils-1.17-ldflags.patch b/app-text/psutils/files/psutils-1.17-ldflags.patch
new file mode 100644
index 000000000000..124768062a43
--- /dev/null
+++ b/app-text/psutils/files/psutils-1.17-ldflags.patch
@@ -0,0 +1,44 @@
+Index: psutils/Makefile.unix
+===================================================================
+--- psutils.orig/Makefile.unix
++++ psutils/Makefile.unix
+@@ -39,7 +39,7 @@ MANEXT = 1
+ MANDIR = /usr/local/share/man/man$(MANEXT)
+
+ CC = gcc
+-CFLAGS = -DPAPER=\"$(PAPER)\" -DUNIX -O -Wall
++CFLAGS += -DPAPER=\"$(PAPER)\" -DUNIX -Wall
+
+ BIN = psbook psselect pstops epsffit psnup \
+ psresize
+@@ -65,30 +65,24 @@ pserror.o: psutil.h patchlev.h pserror.h
+ epsffit.o: epsffit.c pserror.h patchlev.h
+
+ epsffit: epsffit.o pserror.o
+- $(CC) $(CCFLAGS) -o epsffit pserror.o epsffit.o
+
+ psnup: psnup.o psutil.o psspec.o pserror.o
+- $(CC) $(CCFLAGS) -o psnup psutil.o psspec.o pserror.o psnup.o
+
+ psnup.o: psutil.h patchlev.h psspec.h pserror.h psnup.c
+
+ psresize: psresize.o psutil.o pserror.o psspec.o
+- $(CC) $(CCFLAGS) -o psresize psutil.o psspec.o pserror.o psresize.o
+
+ psresize.o: psutil.h patchlev.h psspec.h pserror.h psresize.c
+
+ psbook: psbook.o psutil.o pserror.o
+- $(CC) $(CCFLAGS) -o psbook psutil.o pserror.o psbook.o
+
+ psbook.o: psutil.h patchlev.h pserror.h psbook.c
+
+ psselect: psselect.o psutil.o pserror.o
+- $(CC) $(CCFLAGS) -o psselect psutil.o pserror.o psselect.o
+
+ psselect.o: psutil.h patchlev.h pserror.h psselect.c
+
+ pstops: pstops.o psutil.o psspec.o pserror.o
+- $(CC) $(CCFLAGS) -o pstops psutil.o psspec.o pserror.o pstops.o
+
+ pstops.o: psutil.h patchlev.h psspec.h pserror.h pstops.c
+
diff --git a/app-text/psutils/psutils-1.17-r1.ebuild b/app-text/psutils/psutils-1.17-r1.ebuild
new file mode 100644
index 000000000000..05a28d0bc2fd
--- /dev/null
+++ b/app-text/psutils/psutils-1.17-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/psutils/psutils-1.17-r1.ebuild,v 1.1 2008/06/04 18:19:07 aballier Exp $
+
+inherit toolchain-funcs eutils
+
+DESCRIPTION="PostScript Utilities"
+HOMEPAGE="http://www.tardis.ed.ac.uk/~ajcd/psutils"
+SRC_URI="ftp://ftp.enst.fr/pub/unix/a2ps/${P}.tar.gz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE=""
+
+RDEPEND="virtual/libc"
+DEPEND="${RDEPEND}
+ dev-lang/perl"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-ldflags.patch"
+ sed \
+ -e "s:/usr/local:\$(DESTDIR)/usr:" \
+ "${S}/Makefile.unix" > "${S}/Makefile"
+}
+
+src_compile() {
+ emake CC="$(tc-getCC)" || die
+}
+
+src_install () {
+ dodir /usr/{bin,share/man}
+ emake DESTDIR="${D}" install || die
+ dodoc README
+}