diff --git a/dev-php/fpdf/Manifest b/dev-php/fpdf/Manifest new file mode 100644 index 0000000000..346b0f7abf --- /dev/null +++ b/dev-php/fpdf/Manifest @@ -0,0 +1 @@ +DIST fpdf186.tgz 118080 BLAKE2B c4dc7bd3a2169ccd61fae9b99f91b7904237b81d7d72cdcb5cf5dceb63b01d73dabed2cead145ec3176e217ee5eb0244359a646abee7fc7c78b5f45f981150c7 SHA512 4894908e18d08f1ea21914c0d25ecc406875326c4bfa5f9cc9d92581e79597ec4fde173f6406bb1f84e45cef363c6b418007cf6e15c8bb8e941d925840c9ab96 diff --git a/dev-php/fpdf/fpdf-1.86.ebuild b/dev-php/fpdf/fpdf-1.86.ebuild new file mode 100644 index 0000000000..a3e5aefe06 --- /dev/null +++ b/dev-php/fpdf/fpdf-1.86.ebuild @@ -0,0 +1,33 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# shellcheck disable=SC2034 +EAPI=8 + +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" + +S="${WORKDIR}/${MY_P}" + +LICENSE="MIT-fpdf" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc" + +RDEPEND="dev-lang/php:*[gd,zlib]" + +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 +} diff --git a/dev-php/fpdf/metadata.xml b/dev-php/fpdf/metadata.xml new file mode 100644 index 0000000000..822e5c4c2a --- /dev/null +++ b/dev-php/fpdf/metadata.xml @@ -0,0 +1,25 @@ + + + + + zdanevich.vitaly@ya.ru + Vitaly Zdanevich + + +FPDF is a PHP class which allows to generate PDF files with pure PHP, that is to say without using the PDFlib library. F from FPDF stands for Free: you may use it for any kind of usage and modify it to suit your needs. + +FPDF has other advantages: high level functions. Here is a list of its main features: + +* Choice of measure unit, page format and margins +* Page header and footer management +* Automatic page break +* Automatic line break and text justification +* Image support (JPEG, PNG and GIF) +* Colors +* Links +* TrueType, Type1 and encoding support +* Page compression + +FPDF requires no extension (except Zlib to enable compression and GD for GIF support). The latest version requires at least PHP 5.1. + +