summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOle Markus With <olemarkus@gentoo.org>2011-09-07 19:14:30 +0000
committerOle Markus With <olemarkus@gentoo.org>2011-09-07 19:14:30 +0000
commit9279f46046947fc07bc1fae773ff0f558f9664f9 (patch)
tree11e0fd66b43ed2a1dc44530aaed526ec2fd0d215 /dev-php/smarty-docs
parentAdd unzip to DEPEND fixing bug #380051 thanks to g0del. (diff)
downloadgentoo-2-9279f46046947fc07bc1fae773ff0f558f9664f9.tar.gz
gentoo-2-9279f46046947fc07bc1fae773ff0f558f9664f9.tar.bz2
gentoo-2-9279f46046947fc07bc1fae773ff0f558f9664f9.zip
Readded 2.6 and cleaned it up
(Portage version: 2.1.10.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-php/smarty-docs')
-rw-r--r--dev-php/smarty-docs/ChangeLog5
-rw-r--r--dev-php/smarty-docs/smarty-docs-2.6.ebuild59
2 files changed, 63 insertions, 1 deletions
diff --git a/dev-php/smarty-docs/ChangeLog b/dev-php/smarty-docs/ChangeLog
index f05120f03d81..a724135ea604 100644
--- a/dev-php/smarty-docs/ChangeLog
+++ b/dev-php/smarty-docs/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-php/smarty-docs
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-php/smarty-docs/ChangeLog,v 1.52 2011/09/07 15:11:40 olemarkus Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-php/smarty-docs/ChangeLog,v 1.53 2011/09/07 19:14:30 olemarkus Exp $
+
+ 07 Sep 2011; Ole Markus With <olemarkus@gentoo.org> +smarty-docs-2.6.ebuild:
+ Readded 2.6 and cleaned it up
07 Sep 2011; Ole Markus With <olemarkus@gentoo.org> -smarty-docs-2.6.ebuild:
Removed older version that used confutils
diff --git a/dev-php/smarty-docs/smarty-docs-2.6.ebuild b/dev-php/smarty-docs/smarty-docs-2.6.ebuild
new file mode 100644
index 000000000000..4c4d3c834ccd
--- /dev/null
+++ b/dev-php/smarty-docs/smarty-docs-2.6.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-php/smarty-docs/smarty-docs-2.6.ebuild,v 1.3 2011/09/07 19:14:30 olemarkus Exp $
+
+EAPI=4
+
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+IUSE="pdf html"
+DESCRIPTION="Documentation for Smarty, a template engine for PHP."
+HOMEPAGE="http://www.smarty.net/documentation"
+SRC_URI="html? ( http://www.smarty.net/files/docs/manual-en-${PV}.zip -> ${P}-en.zip )
+ pdf? ( http://www.smarty.net/files/docs/manual-en-${PV}.pdf -> ${P}-en.pdf )"
+
+LANGS="de en es fr it ja pt_BR ru"
+
+for X in ${LANGS}; do
+ [[ ${X} != "en" ]] && SRC_URI="${SRC_URI} linguas_${X}? (
+ html? ( http://www.smarty.net/files/docs/manual-${X}-${PV}.zip -> ${P}-${X}.zip )
+ pdf? ( http://www.smarty.net/files/docs/manual-${X}-${PV}.pdf -> ${P}-${X}.pdf ) )"
+ IUSE="${IUSE} linguas_${X}"
+done
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+
+DEPEND="html? ( app-arch/unzip )"
+RDEPEND="${DEPEND}"
+
+REQUIRED_USE="|| ( html pdf )"
+
+src_unpack() {
+ mkdir -p "${S}"
+
+ if use html; then
+ mkdir "${S}"/html
+ pushd "${S}"/html > /dev/null
+
+ unpack ${P}-en.zip
+
+ for X in ${LANGS}; do
+ if [[ ${X} != "en" ]] && use linguas_${X}; then
+ unpack ${P}-${X}.zip
+ fi
+ done
+
+ popd > /dev/null
+ fi
+}
+
+src_install() {
+ if use html; then
+ dohtml -r html/*
+ fi
+
+ if use pdf; then
+ docinto pdf
+ dodoc "${DISTDIR}"/${P}-*.pdf
+ fi
+}