|
|
发表于 2008-7-20 02:53:57
|
显示全部楼层
小改了一下ebuild,加上了一个补丁把TeXworks.pro中的 -lhunspell 改成 -lhunspell-1.2
最好能加上一个desktop文件,使texworks能够从菜单中直接启动。
另外,ebuild中的缩进用tab,你原先的qmake前用空格缩进了。
ebuild:- # Copyright 1999-2008 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- # $Header $
- inherit eutils subversion
- DESCRIPTION="An environment for authoring TeX (LaTeX, ConTeXt, etc) documents, with a Unicode-based, TeX-aware editor, integrated PDF viewer, and a clean, simple interface accessible to casual and non-technical users."
- HOMEPAGE="http://code.google.com/p/texworks"
- ESVN_REPO_URI="http://texworks.googlecode.com/svn/trunk/"
- ESVN_PATCHES="${PN}-103-hunspell-1.2.6.patch"
- LICENSE="GPL-2"
- SLOT="0"
- KEYWORDS="~x86"
- IUSE=""
- RDEPEND=">=x11-libs/qt-4.3.2
- >=app-text/poppler-0.8.0
- >=app-text/poppler-bindings-0.8.0
- >=app-text/hunspell-1.2.2"
- pkg_setup() {
- if ! built_with_use "app-text/poppler-bindings" qt4 ;then
- eerror "You should build app-text/poppler-binding with "qt4" USE flag."
- die "app-text/poppler-bindings build with "-qt4" USE"
- fi
- }
- src_compile() {
- qmake
- make
- }
- src_install() {
- dobin texworks
- }
复制代码
针对hunspell-1.2.6的补丁:- diff -urN trunk/TeXworks.pro trunk-fix/TeXworks.pro
- --- trunk/TeXworks.pro 2008-07-20 02:35:41.245857014 +0800
- +++ trunk-fix/TeXworks.pro 2008-07-20 02:35:18.492857750 +0800
- @@ -52,7 +52,7 @@
- INCLUDEPATH += /usr/include/poppler/qt4
-
- LIBS += -lpoppler-qt4
- - LIBS += -lhunspell
- + LIBS += -lhunspell-1.2
- }
-
- win32 {
复制代码 |
|