dev-php/tcpdf: new version 6.2.13.
authorMichael Orlitzky <mjo@gentoo.org>
Thu, 5 Jan 2017 00:47:42 +0000 (19:47 -0500)
committerMichael Orlitzky <mjo@gentoo.org>
Thu, 5 Jan 2017 00:47:42 +0000 (19:47 -0500)
Package-Manager: portage-2.3.0

dev-php/tcpdf/Manifest
dev-php/tcpdf/tcpdf-6.0.096.ebuild [deleted file]
dev-php/tcpdf/tcpdf-6.2.13.ebuild [new file with mode: 0644]

index 9a1edb80a3914187662373b11b4a23bb0e06e613..dc0a87d025d3ebbb1cc755bd76f27b82b1cac807 100644 (file)
@@ -1 +1 @@
-DIST tcpdf_6_0_096.zip 16734285 SHA256 352086268b86900b9c6a68353ac5f31a86438d10f20f49797248f3f4b41e605b SHA512 99a554d02ee5e1f5288a09c95aa11c3a1384112a133bf98069a08ec6b02d87459366645b6d0548cc293f71f85f2b9b661644e5151dab50834b6b5d70cc1126a5 WHIRLPOOL 31dc13ca81f927f8be84e425839088af0092b2e96246ce10480897ee3fa32d3d22020e45f29aa7ccf9d7f1ea5fbb480d8261138bb7e3f60e1c07554720435d5d
+DIST tcpdf-6.2.13.tar.gz 17003733 SHA256 e64756a876f196c7acf2c91a9f55c8219fb5b7607a406a980a1907c8b92c4ffb SHA512 df140a305b17e868d5af1a9cfe07f76c1c511f437e70ce09484049c48e7f4501d7b59ad2dbccea4daaee283867fa71ec03924aa40d37ed495b77f65383f6ef85 WHIRLPOOL 8c617757c3807eeed301684942cc417e7d00687d953a7ceab97fc9c279a8af0973a4a61ce1ea7a77fcc2ed94ac761d2907ad88cc59b30377b42a5d65e6320b2b
diff --git a/dev-php/tcpdf/tcpdf-6.0.096.ebuild b/dev-php/tcpdf/tcpdf-6.0.096.ebuild
deleted file mode 100644 (file)
index 79a95f2..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-KEYWORDS="~amd64 ~x86"
-
-MY_P=${PN}_${PV//./_}
-
-DESCRIPTION="TCPDF is a FLOSS PHP class for generating PDF documents"
-HOMEPAGE="http://www.tcpdf.org/"
-SRC_URI="mirror://sourceforge/tcpdf/${MY_P}.zip"
-# Main source is LGPL-3+, some included fonts have other licenses
-LICENSE="LGPL-3+ GPL-3 BitstreamVera GPL-2"
-SLOT="0"
-IUSE="examples"
-
-RDEPEND="dev-lang/php"
-DEPEND="app-arch/unzip"
-
-S="${WORKDIR}/${PN}"
-
-src_install() {
-       insinto "/usr/share/php/${PN}"
-       doins *.php tcpdf.*
-       doins -r config include fonts tools
-
-       dodoc CHANGELOG.TXT README.TXT
-
-       use examples && dodoc -r examples
-}
diff --git a/dev-php/tcpdf/tcpdf-6.2.13.ebuild b/dev-php/tcpdf/tcpdf-6.2.13.ebuild
new file mode 100644 (file)
index 0000000..1c1012d
--- /dev/null
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="TCPDF is a FLOSS PHP class for generating PDF documents"
+HOMEPAGE="http://www.tcpdf.org/"
+SRC_URI="https://github.com/tecnickcom/TCPDF/archive/${PV}.tar.gz
+       -> ${P}.tar.gz"
+# Main source is LGPL-3+, some included fonts have other licenses
+LICENSE="LGPL-3+ GPL-3 BitstreamVera GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples"
+
+RDEPEND="dev-lang/php"
+
+S="${WORKDIR}/${P^^}"
+
+src_install() {
+       insinto /etc
+       doins config/tcpdf_config.php
+       # Create a symlink for the config file, because the library will only
+       # look for it in its own source tree (not in /etc where we've put it).
+       dosym /etc/tcpdf_config.php "/usr/share/php/${PN}/config/tcpdf_config.php"
+
+       insinto "/usr/share/php/${PN}/tools"
+       doexe tools/tcpdf_addfont.php
+
+       insinto "/usr/share/php/${PN}"
+       doins tcpdf*.php
+       doins -r include fonts
+       dodoc CHANGELOG.TXT README.md
+
+       use examples && dodoc -r examples
+}