summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2011-01-31 12:19:20 +0000
committerSebastian Pipping <sping@gentoo.org>2011-01-31 12:19:20 +0000
commit154c625751af064f510fe7e53c24e7b80376978a (patch)
tree9779c881b29e4b4c64e792d8b156fba2acc97b11 /app-text/wiki2beamer/wiki2beamer-0.9.2-r2.ebuild
parentVersion bump south to 0.7.3 (bug 347581). (diff)
downloadgentoo-2-154c625751af064f510fe7e53c24e7b80376978a.tar.gz
gentoo-2-154c625751af064f510fe7e53c24e7b80376978a.tar.bz2
gentoo-2-154c625751af064f510fe7e53c24e7b80376978a.zip
app-text/wiki2beamer: New package
(Portage version: 2.1.9.35/cvs/Linux x86_64)
Diffstat (limited to 'app-text/wiki2beamer/wiki2beamer-0.9.2-r2.ebuild')
-rw-r--r--app-text/wiki2beamer/wiki2beamer-0.9.2-r2.ebuild58
1 files changed, 58 insertions, 0 deletions
diff --git a/app-text/wiki2beamer/wiki2beamer-0.9.2-r2.ebuild b/app-text/wiki2beamer/wiki2beamer-0.9.2-r2.ebuild
new file mode 100644
index 000000000000..c6cb1f7dbb3c
--- /dev/null
+++ b/app-text/wiki2beamer/wiki2beamer-0.9.2-r2.ebuild
@@ -0,0 +1,58 @@
+# 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.2-r2.ebuild,v 1.1 2011/01/31 12:19:20 sping Exp $
+
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+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}
+}