From 3c149355e51013440413fc2844104a0dabae6838 Mon Sep 17 00:00:00 2001 From: Henry Gebhardt Date: Mon, 26 Jul 2010 00:14:00 +0200 Subject: app-editors/texworks-0.2.3: New build from bug 292667 More specifically, http://bugs.gentoo.org/attachment.cgi?id=237497 and http://bugs.gentoo.org/attachment.cgi?id=237495 --- app-editors/texworks/files/TeXworks.desktop | 12 ++++++ app-editors/texworks/texworks-0.2.3.ebuild | 58 +++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 app-editors/texworks/files/TeXworks.desktop create mode 100644 app-editors/texworks/texworks-0.2.3.ebuild diff --git a/app-editors/texworks/files/TeXworks.desktop b/app-editors/texworks/files/TeXworks.desktop new file mode 100644 index 0000000..63cf20c --- /dev/null +++ b/app-editors/texworks/files/TeXworks.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Categories=Office;Publishing; +Exec=texworks +GenericName=TeXworks LaTeX Editor +Comment=Simple LaTeX development environment +Icon=TeXworks +MimeType=text/x-tex; +Name=TeXworks +StartupNotify=false +Terminal=false +Type=Application + diff --git a/app-editors/texworks/texworks-0.2.3.ebuild b/app-editors/texworks/texworks-0.2.3.ebuild new file mode 100644 index 0000000..0d4594a --- /dev/null +++ b/app-editors/texworks/texworks-0.2.3.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit qt4 + +DESCRIPTION="A simple interface for working with TeX documents" +HOMEPAGE="http://tug.org/texworks/" +SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="+latex" + +LANGS="ar ca cs de es fa fr it ja ko nl pl pt_BR ru sl tr zh_CN" +for LNG in ${LANGS}; do + IUSE="${IUSE} linguas_${LNG}" +done + +RDEPEND=">=x11-libs/qt-core-4.5.2 + >=x11-libs/qt-gui-4.5.2[dbus] + >=app-text/poppler-0.12.3-r3[qt4] + >=app-text/hunspell-1.2.8" +DEPEND="${RDEPEND}" +PDEPEND="latex? ( dev-texlive/texlive-latex ) !latex? ( app-text/texlive-core )" + +src_prepare() { + # disable guessing path to tex binary, we already know it + sed -i '\:system(./getDefaultBinPaths.sh): d' TeXworks.pro || die + echo '#define DEFAULT_BIN_PATHS "/usr/bin"' > src/DefaultBinaryPaths.h || die + + sed -i '/TW_HELPPATH/ s:/usr/local:/usr:' TeXworks.pro || die + cp "${FILESDIR}/TeXworks.desktop" "${S}" || die +} + +src_compile() { + eqmake4 TeXworks.pro + emake || die "emake failed" +} + +src_install() { + dobin ${PN} || die + + # install translations + insinto /usr/share/${PN}/ + for LNG in ${LANGS}; do + if use linguas_${LNG}; then + doins trans/TeXworks_${LNG}.qm || die + fi + done + insinto /usr/share/pixmaps/ + doins res/images/TeXworks.png || die + insinto /usr/share/applications/ + doins TeXworks.desktop || die +} -- cgit v1.2.3-65-gdbad