diff options
author | Bertrand Jacquin <beber@meleeweb.net> | 2010-02-20 23:15:58 +0100 |
---|---|---|
committer | Bertrand Jacquin <beber@meleeweb.net> | 2010-02-20 23:15:58 +0100 |
commit | a34594293a738edb4d0f6231c4e27795bf15550e (patch) | |
tree | faa1d202601ddb68d6e2052b91fac0e0b3904ee8 /app-editors | |
parent | qbittorrent without X (diff) | |
download | portage-a34594293a738edb4d0f6231c4e27795bf15550e.tar.xz |
Add texworks
Diffstat (limited to 'app-editors')
-rw-r--r-- | app-editors/texworks/Manifest | 2 | ||||
-rw-r--r-- | app-editors/texworks/texworks-0.2.3.ebuild | 53 |
2 files changed, 55 insertions, 0 deletions
diff --git a/app-editors/texworks/Manifest b/app-editors/texworks/Manifest new file mode 100644 index 00000000..92070b46 --- /dev/null +++ b/app-editors/texworks/Manifest @@ -0,0 +1,2 @@ +DIST texworks-0.2.3.tar.gz 1898960 RMD160 6f50dc1131f8fa614b7720bbf6036665aa4cafbe SHA1 4e0e174cf8524c42e1347f2aa8bad7b7801aaa8b SHA256 8813aa9dbd4e716d5f41e5451323d338bc0521c260c15681a159f41dc97ee47f +EBUILD texworks-0.2.3.ebuild 1282 RMD160 7e55b9dc3a66a31ac918718478dc8c1660da8586 SHA1 84bd1959f04454f3d5b2a36b49542723abdc4975 SHA256 d52fa447c9798c403eb949dc5307f4652a82788720afa547655b20256de143ff 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 00000000..bf8cef9c --- /dev/null +++ b/app-editors/texworks/texworks-0.2.3.ebuild @@ -0,0 +1,53 @@ +# 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] + >=virtual/poppler-qt4-0.10.5 + >=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 +} + +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 +} |