summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyen Thai Ngoc Duy <pclouds@gentoo.org>2005-08-01 01:30:14 +0000
committerNguyen Thai Ngoc Duy <pclouds@gentoo.org>2005-08-01 01:30:14 +0000
commit9478dcabd14be9338c822e5cf34be862cb607472 (patch)
tree8501055de0c86a0ec4eadf07c646f8db0470ce27 /media-gfx/jpeg2ps
parentUnified source indenting. Cleaned up some conditionals. Added the "static" US... (diff)
downloadgentoo-2-9478dcabd14be9338c822e5cf34be862cb607472.tar.gz
gentoo-2-9478dcabd14be9338c822e5cf34be862cb607472.tar.bz2
gentoo-2-9478dcabd14be9338c822e5cf34be862cb607472.zip
set papersize based on localtime #61922
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'media-gfx/jpeg2ps')
-rw-r--r--media-gfx/jpeg2ps/ChangeLog7
-rw-r--r--media-gfx/jpeg2ps/Manifest4
-rw-r--r--media-gfx/jpeg2ps/files/digest-jpeg2ps-1.9-r11
-rw-r--r--media-gfx/jpeg2ps/jpeg2ps-1.9-r1.ebuild46
4 files changed, 56 insertions, 2 deletions
diff --git a/media-gfx/jpeg2ps/ChangeLog b/media-gfx/jpeg2ps/ChangeLog
index cb5806fa0b42..68b7048dcf19 100644
--- a/media-gfx/jpeg2ps/ChangeLog
+++ b/media-gfx/jpeg2ps/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-gfx/jpeg2ps
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/jpeg2ps/ChangeLog,v 1.6 2005/06/05 12:15:21 hansmi Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/jpeg2ps/ChangeLog,v 1.7 2005/08/01 01:30:14 pclouds Exp $
+
+*jpeg2ps-1.9-r1 (01 Aug 2005)
+
+ 01 Aug 2005; <pclouds@gentoo.org> +jpeg2ps-1.9-r1.ebuild:
+ set papersize based on localtime #61922
05 Jun 2005; Michael Hanselmann <hansmi@gentoo.org> jpeg2ps-1.9.ebuild:
Stable on ppc.
diff --git a/media-gfx/jpeg2ps/Manifest b/media-gfx/jpeg2ps/Manifest
index 49ecd948bb62..84f9f16d3eef 100644
--- a/media-gfx/jpeg2ps/Manifest
+++ b/media-gfx/jpeg2ps/Manifest
@@ -1,4 +1,6 @@
-MD5 6c8c7c049342cbfec9eafc2be9fa31c6 metadata.xml 220
+MD5 4a802fd366a7a484464e705891fdf601 jpeg2ps-1.9-r1.ebuild 1403
MD5 7d9375c53a0fbafc2ceaf6b856868246 ChangeLog 767
+MD5 6c8c7c049342cbfec9eafc2be9fa31c6 metadata.xml 220
MD5 bf609798498cc213dec7124c8e14a036 jpeg2ps-1.9.ebuild 1158
MD5 d40db91990d9b92ba61626a89d40d818 files/digest-jpeg2ps-1.9 62
+MD5 d40db91990d9b92ba61626a89d40d818 files/digest-jpeg2ps-1.9-r1 62
diff --git a/media-gfx/jpeg2ps/files/digest-jpeg2ps-1.9-r1 b/media-gfx/jpeg2ps/files/digest-jpeg2ps-1.9-r1
new file mode 100644
index 000000000000..723fead5db85
--- /dev/null
+++ b/media-gfx/jpeg2ps/files/digest-jpeg2ps-1.9-r1
@@ -0,0 +1 @@
+MD5 e654f6a584435e6717b6c2659c07db28 jpeg2ps-1.9.tar.gz 67105
diff --git a/media-gfx/jpeg2ps/jpeg2ps-1.9-r1.ebuild b/media-gfx/jpeg2ps/jpeg2ps-1.9-r1.ebuild
new file mode 100644
index 000000000000..4a22b5f10e44
--- /dev/null
+++ b/media-gfx/jpeg2ps/jpeg2ps-1.9-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/jpeg2ps/jpeg2ps-1.9-r1.ebuild,v 1.1 2005/08/01 01:30:14 pclouds Exp $
+
+DESCRIPTION="Converts JPEG images to Postscript using a wrapper"
+HOMEPAGE="http://www.pdflib.com/products/more/jpeg2ps.html"
+SRC_URI="http://www.pdflib.com/products/more/jpeg2ps/${P}.tar.gz"
+
+LICENSE="free-noncomm"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND="sys-apps/sed"
+RDEPEND=""
+
+src_compile() {
+ local pagesize=""
+ if [ -h /etc/localtime ]; then
+ local continent=$(readlink /etc/localtime | cut -d / -f 5)
+ [ "${continent}" = "Europe" ] && pagesize="-DA4"
+ fi
+ emake CFLAGS="-c ${CFLAGS} ${pagesize}" || die "emake failed"
+}
+
+src_install() {
+ # The Makefile is hard-coded to install to /usr/local/ so we
+ # simply copy the files manually
+ dobin jpeg2ps || die "dobin failed"
+ doman jpeg2ps.1 || die "doman failed"
+ dodoc jpeg2ps.txt || die "dodoc failed"
+}
+
+pkg_postinst() {
+ einfo
+ if [ -z ${pagesize} ]; then
+ einfo "By default, this installation of jpeg2ps will generate"
+ einfo "letter size output. You can force A4 output with"
+ einfo " jpeg2ps -p a4 file.jpg > file.ps"
+ else
+ einfo "By default, this installation of jpeg2ps will generate"
+ einfo "A4 size output. You can force letter output with"
+ einfo " jpeg2ps -p letter file.jpg > file.ps"
+ fi
+ einfo
+}