summaryrefslogtreecommitdiff
blob: 0f4b47cb10bcccc2b5f7aba217c62ffd6f30be5f (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/fdftk/fdftk-6.0.ebuild,v 1.4 2005/01/01 16:14:02 eradicator Exp $

IUSE="perl"

MY_P="FDFToolkitForUnix"
At="${MY_P}.tar.gz"

DESCRIPTION="Acrobat FDF Toolkit"
HOMEPAGE="http://partners.adobe.com/asn/acrobat/forms.jsp"
SRC_URI="${At}"

SLOT="0"
LICENSE="Adobe"
KEYWORDS="-* ~x86" # binaries for i386 type hardware ONLY
RESTRICT="fetch"

DEPEND="virtual/libc
	perl? ( dev-lang/perl )"

S=${WORKDIR}/${MY_P}

pkg_nofetch() {
	einfo "Please download ${At} from:"
	einfo ${HOMEPAGE}
	einfo "and move it to ${DISTDIR}"
}

src_unpack() {
	if [ ! -r ${DISTDIR}/${At} ]; then
		eerror "cannot read ${At}. Please check the permission and try again."
		die
	fi
	unpack ${At} || die
}

src_install () {
	into /opt/${P}
	dolib.so "Headers and Libraries/LINUX/FDF.so" || die
	dolib.so "Headers and Libraries/LINUX/libFdfTk.so" || die
	insinto /opt/${P}/include
	doins "Headers and Libraries/Headers/FdfTk.h" || die

	if use perl; then
		eval `perl '-V:package'`
		eval `perl '-V:version'`
		insinto /usr/lib/${package}/vendor_perl/${version}/Acrobat
		doins "Headers and Libraries/Headers/FDF.pm" || die
	fi

	into /usr
	dodoc ReadMe.txt Documentation/*.pdf

	dodir /etc/env.d
	echo "LDPATH=/opt/${P}/lib" >${D}/etc/env.d/55${P}
}