Skip to content

Commit

Permalink
dev-php/fpdf: new package, add 1.86
Browse files Browse the repository at this point in the history
Signed-off-by: Vitaly Zdanevich <[email protected]>
Closes: #221
Signed-off-by: David Roman <[email protected]>
  • Loading branch information
vitaly-zdanevich authored and stkw0 committed Aug 9, 2024
1 parent 1ed7100 commit f840bd0
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-php/fpdf/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST fpdf186.tgz 118080 BLAKE2B c4dc7bd3a2169ccd61fae9b99f91b7904237b81d7d72cdcb5cf5dceb63b01d73dabed2cead145ec3176e217ee5eb0244359a646abee7fc7c78b5f45f981150c7 SHA512 4894908e18d08f1ea21914c0d25ecc406875326c4bfa5f9cc9d92581e79597ec4fde173f6406bb1f84e45cef363c6b418007cf6e15c8bb8e941d925840c9ab96
33 changes: 33 additions & 0 deletions dev-php/fpdf/fpdf-1.86.ebuild
Original file line number Diff line number Diff line change
@@ -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
}
25 changes: 25 additions & 0 deletions dev-php/fpdf/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
<name>Vitaly Zdanevich</name>
</maintainer>
<longdescription>
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.
</longdescription>
</pkgmetadata>

0 comments on commit f840bd0

Please sign in to comment.