blob: a4a52fc46a72e5339ca871513ff0d40759d3375a (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/mbtpdfasm/mbtpdfasm-1.0.28.ebuild,v 1.2 2010/01/02 12:17:51 fauli Exp $
inherit eutils toolchain-funcs
MY_P="mbtPdfAsm-${PV}"
DESCRIPTION="mbtPdfAsm can assemble/merge PDF files, extract information from PDF files, and update the metadata in PDF files."
HOMEPAGE="http://thierry.schmit.free.fr/dev/mbtPdfAsm/mbtPdfAsm2.html"
SRC_URI="http://thierry.schmit.free.fr/spip/IMG/gz/${MY_P}.tar.gz
http://sbriesen.de/gentoo/distfiles/${P}-manual.pdf.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris"
IUSE=""
S="${WORKDIR}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-makefile.diff"
epatch "${FILESDIR}/${P}-64bit.diff"
epatch "${FILESDIR}/${P}-main.diff"
}
src_compile() {
emake CC="$(tc-getCXX)" || die "emake failed"
}
src_install() {
dobin mbtPdfAsm || die "install failed"
insinto "/usr/share/doc/${PF}"
newins ${P}-manual.pdf mbtPdfAsm.pdf
}
|