summaryrefslogtreecommitdiff
blob: a64ec72d2fd424306a7e6b0223bd4dda23424b5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/libpaper/libpaper-1.1.14.8.ebuild,v 1.7 2006/06/27 11:22:39 gmsoft Exp $

inherit versionator libtool eutils

MY_P="libpaper_$(replace_version_separator 3 ubuntu)"
DESCRIPTION="Library for handling paper characteristics"
HOMEPAGE="http://packages.ubuntulinux.org/dapper/source/libpaper"
SRC_URI="http://archive.ubuntu.com/ubuntu/pool/main/libp/libpaper/${MY_P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE=""

S=${WORKDIR}/${MY_P/_/-}

src_unpack() {
	unpack ${A}
	cd ${S}
	ln -s /usr/share/libtool/config.sub
	ln -s /usr/share/libtool/config.guess

	epatch "${FILESDIR}/${P}-malloc.patch"

	elibtoolize
}

src_install() {
	make DESTDIR=${D} install || die "make install failed"

	dodoc README ChangeLog

	dodir /etc
	(paperconf 2>/dev/null || echo a4) > ${D}/etc/papersize
}

pkg_postinst() {
	einfo "run \"paperconfig -p letter\" to use letter-pagesizes"
}