summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2011-05-09 18:49:52 +0000
committerSebastian Pipping <sping@gentoo.org>2011-05-09 18:49:52 +0000
commit108ec27b6d0f225f0db61eaf563655364cf19157 (patch)
treed4c153f1ec49850dd37c7b4fdf4b59f03821b44a /app-text/wiki2beamer/wiki2beamer-0.9.4.ebuild
parentVersion bump (bug #347723) (diff)
downloadgentoo-2-108ec27b6d0f225f0db61eaf563655364cf19157.tar.gz
gentoo-2-108ec27b6d0f225f0db61eaf563655364cf19157.tar.bz2
gentoo-2-108ec27b6d0f225f0db61eaf563655364cf19157.zip
app-text/wiki2beamer: Bump to 0.9.4, looks trivial
(Portage version: 2.1.9.48/cvs/Linux x86_64)
Diffstat (limited to 'app-text/wiki2beamer/wiki2beamer-0.9.4.ebuild')
-rw-r--r--app-text/wiki2beamer/wiki2beamer-0.9.4.ebuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/app-text/wiki2beamer/wiki2beamer-0.9.4.ebuild b/app-text/wiki2beamer/wiki2beamer-0.9.4.ebuild
new file mode 100644
index 000000000000..598104f65083
--- /dev/null
+++ b/app-text/wiki2beamer/wiki2beamer-0.9.4.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/wiki2beamer/wiki2beamer-0.9.4.ebuild,v 1.1 2011/05/09 18:49:52 sping Exp $
+
+EAPI="3"
+PYTHON_DEPEND="*"
+SUPPORT_PYTHON_ABIS="1"
+
+inherit python
+
+DESCRIPTION="Tool to produce LaTeX Beamer code from wiki-like input."
+
+HOMEPAGE="http://wiki2beamer.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.zip"
+
+LICENSE="|| ( GPL-2 GPL-3 ) FDL-1.3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+examples"
+
+DEPEND=""
+RDEPEND=""
+
+src_install() {
+ if use examples; then
+ # Patch example Makefile
+ sed -e 's|../../code/wiki2beamer|wiki2beamer|' \
+ -i doc/example/Makefile \
+ || die
+
+ insinto /usr/share/doc/${PF}/example
+ doins doc/example/* || die
+ fi
+
+ doman doc/man/${PN}.1 || die
+ dodoc ChangeLog README || die
+
+ per_abi_install() {
+ local MAIN_DIR="$(python_get_sitedir)"/${PN}
+ insinto "${MAIN_DIR}"
+ newins code/${PN} ${PN}.py || die
+
+ fperms 755 "${MAIN_DIR}"/${PN}.py || die
+ dosym "${MAIN_DIR}"/${PN}.py /usr/bin/${PN}-${PYTHON_ABI} || die
+ }
+ python_execute_function per_abi_install
+
+ python_generate_wrapper_scripts "${ED}usr/bin/${PN}"
+}
+
+pkg_postinst() {
+ python_mod_optimize ${PN}
+}
+
+pkg_postrm() {
+ python_mod_cleanup ${PN}
+}