summaryrefslogtreecommitdiff
path: root/dev-php/fpdf/fpdf-1.83.ebuild
blob: 93b6843c9876f06c7991694dee8d82a6dae7ed9b (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
# Copyright 2021 BaldEagleOS Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7

MY_PV="$(ver_rs 1 '')"
MY_P="${PN}${MY_PV}"

DESCRIPTION="FPDF is a PHP class which allows to generate PDF files with pure PHP"
HOMEPAGE="http://www.fpdf.org/"
SRC_URI="http://www.fpdf.org/en/dl.php?v=${MY_PV}&f=tgz -> ${MY_P}.tgz"

LICENSE="freedist"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"

RDEPEND="dev-lang/php:*[gd,zlib]"
S="${WORKDIR}/${MY_P}"

DOCS=( install.txt )

src_install() {
		insinto "/usr/share/php/${PN}"
		doins -r ./*.php font/ makefont/

		if use doc; then
			docinto html
			dodoc -r changelog.htm fpdf.css FAQ.htm html/ tutorial/
		fi
}