From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id F2BE3138247 for ; Thu, 7 Nov 2013 20:05:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7AD34E0AB8; Thu, 7 Nov 2013 20:05:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A5950E0AB6 for ; Thu, 7 Nov 2013 20:05:18 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BBD2833F134 for ; Thu, 7 Nov 2013 20:05:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 9845EE54DA for ; Thu, 7 Nov 2013 20:05:15 +0000 (UTC) From: "Alexey Shvetsov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexey Shvetsov" Message-ID: <1381687306.75724311f67f206376ebdcfd5caa4c5e30681ea3.alexxy@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: dev-tex/pythontex/ X-VCS-Repository: proj/sci X-VCS-Files: dev-tex/pythontex/pythontex-9999.ebuild X-VCS-Directories: dev-tex/pythontex/ X-VCS-Committer: alexxy X-VCS-Committer-Name: Alexey Shvetsov X-VCS-Revision: 75724311f67f206376ebdcfd5caa4c5e30681ea3 X-VCS-Branch: master Date: Thu, 7 Nov 2013 20:05:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: e06e0275-1843-4d12-9971-69406058517e X-Archives-Hash: efc755d2c55e7335b1c0c9e099a48b0a commit: 75724311f67f206376ebdcfd5caa4c5e30681ea3 Author: Horea Christian mail ru> AuthorDate: Sun Oct 13 18:01:46 2013 +0000 Commit: Alexey Shvetsov gentoo org> CommitDate: Sun Oct 13 18:01:46 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=75724311 Created live ebuild to benefit from some fixes to the package which became obvious while writing the ebuildt. --- dev-tex/pythontex/pythontex-9999.ebuild | 65 +++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/dev-tex/pythontex/pythontex-9999.ebuild b/dev-tex/pythontex/pythontex-9999.ebuild new file mode 100644 index 0000000..240c4be --- /dev/null +++ b/dev-tex/pythontex/pythontex-9999.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tex/envlab/envlab-1.2-r1.ebuild,v 1.18 2012/05/09 17:16:08 aballier Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_2,3_3} ) + +inherit latex-package python-single-r1 git-2 + +DESCRIPTION="Fast Access to Python from within LaTeX" +HOMEPAGE="https://github.com/gpoore/pythontex" +EGIT_REPO_URI="https://github.com/TheChymera/pythontex.git" +SRC_URI="" + + +SLOT="0" +LICENSE="LPPL-1.3 BSD" +KEYWORDS="" +IUSE="highlighting" + +DEPEND="app-text/texlive + ${PYTHON_DEPS}" + +RDEPEND="${DEPEND} + highlighting? ( dev-python/pygments[${PYTHON_USEDEP}] )" + +src_prepare() { + S="${WORKDIR}/${P}/${PN}" + cd ${S} +} + +src_compile() { + ebegin "Compiling ${PN}" + latex ${PN}.ins extra >/dev/null || die "Building style from ${PN}.ins failed" + eend +} + +src_install() { + python_optimize . + if python_is_python3; then + #python_scriptinto /usr/share/texmf-site/scripts/${PN}/ + python_newscript pythontex3.py pythontex.py + python_newscript depythontex3.py depythontex.py + else python_newscript pythontex2.py pythontex.py + python_doscript pythontex_2to3.py + python_newscript depythontex2.py depythontex.py + fi + + python_moduleinto /usr/lib64/python-exec/python2.7 + python_domodule "${S}"/pythontex_engines.py + python_domodule "${S}"/pythontex_utils.py + + insinto /usr/share/texmf-site/tex/latex/pythontex/ + doins "${S}"/pythontex.sty + + insinto /usr/share/texmf-site/source/latex/pythontex/ + doins "${S}"/pythontex.dtx + doins "${S}"/pythontex.ins + + latex-package_src_install + + dodoc README + mktexlsr +}