Gentoo Archives: gentoo-commits

From: "Yixun Lan (dlan)" <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-office/lyx: ChangeLog lyx-2.1.2.ebuild lyx-2.1.0.ebuild lyx-2.0.8.ebuild
Date: Fri, 26 Sep 2014 01:11:29
Message-Id: 20140926011125.898396463@oystercatcher.gentoo.org
1 dlan 14/09/26 01:11:25
2
3 Modified: ChangeLog
4 Added: lyx-2.1.2.ebuild
5 Removed: lyx-2.1.0.ebuild lyx-2.0.8.ebuild
6 Log:
7 version bump, drop old, per maintainer request
8
9 (Portage version: 2.2.13/cvs/Linux x86_64, signed Manifest commit with key 0xAABEFD55)
10
11 Revision Changes Path
12 1.314 app-office/lyx/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/lyx/ChangeLog?rev=1.314&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/lyx/ChangeLog?rev=1.314&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/lyx/ChangeLog?r1=1.313&r2=1.314
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/app-office/lyx/ChangeLog,v
21 retrieving revision 1.313
22 retrieving revision 1.314
23 diff -u -r1.313 -r1.314
24 --- ChangeLog 23 Sep 2014 08:59:42 -0000 1.313
25 +++ ChangeLog 26 Sep 2014 01:11:25 -0000 1.314
26 @@ -1,6 +1,12 @@
27 # ChangeLog for app-office/lyx
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/app-office/lyx/ChangeLog,v 1.313 2014/09/23 08:59:42 nimiux Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/app-office/lyx/ChangeLog,v 1.314 2014/09/26 01:11:25 dlan Exp $
31 +
32 +*lyx-2.1.2 (25 Sep 2014)
33 +
34 + 25 Sep 2014; Yixun Lan <dlan@g.o> -lyx-2.0.8.ebuild,
35 + -lyx-2.1.0.ebuild, +lyx-2.1.2.ebuild:
36 + version bump, drop old, per maintainer request
37
38 23 Sep 2014; Chema Alonso <nimiux@g.o> lyx-2.0.8.1.ebuild:
39 Stable for amd64 wrt bug #520258
40
41
42
43 1.1 app-office/lyx/lyx-2.1.2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/lyx/lyx-2.1.2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-office/lyx/lyx-2.1.2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: lyx-2.1.2.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/app-office/lyx/lyx-2.1.2.ebuild,v 1.1 2014/09/26 01:11:25 dlan Exp $
53
54 EAPI=5
55
56 PYTHON_COMPAT=( python{2_6,2_7} )
57 inherit gnome2-utils eutils fdo-mime flag-o-matic font python-single-r1 toolchain-funcs
58
59 MY_P="${P/_}"
60
61 S="${WORKDIR}/${MY_P}"
62 FONT_S="${S}/lib/fonts"
63 FONT_SUFFIX="ttf"
64 DESCRIPTION="WYSIWYM frontend for LaTeX, DocBook, etc."
65 HOMEPAGE="http://www.lyx.org/"
66 SRC_URI="ftp://ftp.lyx.org/pub/lyx/stable/2.1.x/${MY_P}.tar.xz
67 ftp://ftp.lyx.org/pub/lyx/devel/lyx-2.1/${MY_P}/${MY_P}.tar.xz"
68
69 LICENSE="GPL-2"
70 SLOT="0"
71 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x64-macos ~x86-macos"
72 IUSE="cups debug nls +latex monolithic-build html rtf dot docbook dia subversion rcs svg gnumeric +hunspell aspell enchant"
73
74 LANGS="ar ca cs de da el en es eu fi fr gl he hu ia id it ja nb nn pl pt ro ru sk sr sv tr uk zh_CN zh_TW"
75
76 for X in ${LANGS}; do
77 IUSE="${IUSE} linguas_${X}"
78 done
79
80 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
81
82 DOCS=( ANNOUNCE NEWS README RELEASE-NOTES UPGRADING )
83
84 COMMONDEPEND="dev-qt/qtgui:4
85 dev-qt/qtcore:4
86 >=dev-libs/boost-1.34
87 ${PYTHON_DEPS}"
88
89 RDEPEND="${COMMONDEPEND}
90 dev-texlive/texlive-fontsextra
91 || ( media-gfx/imagemagick[png] media-gfx/graphicsmagick[png] )
92 cups? ( net-print/cups )
93 latex? (
94 app-text/texlive
95 app-text/ghostscript-gpl
96 app-text/noweb
97 app-text/dvipng
98 dev-tex/dvipost
99 dev-tex/chktex
100 app-text/ps2eps
101 dev-texlive/texlive-latexextra
102 dev-texlive/texlive-pictures
103 dev-texlive/texlive-science
104 dev-texlive/texlive-genericextra
105 dev-texlive/texlive-fontsrecommended
106 || (
107 dev-tex/latex2html
108 dev-tex/tth
109 dev-tex/hevea
110 dev-tex/tex4ht[java]
111 )
112 )
113 html? ( dev-tex/html2latex )
114 rtf? (
115 dev-tex/latex2rtf
116 app-text/unrtf
117 dev-tex/html2latex
118 )
119 linguas_he? ( dev-tex/culmus-latex )
120 docbook? ( app-text/sgmltools-lite )
121 dot? ( media-gfx/graphviz )
122 dia? ( app-office/dia )
123 subversion? ( dev-vcs/subversion )
124 rcs? ( dev-vcs/rcs )
125 svg? ( || ( media-gfx/imagemagick[svg] media-gfx/graphicsmagick[svg] )
126 || ( gnome-base/librsvg media-gfx/inkscape )
127 )
128 gnumeric? ( app-office/gnumeric )
129 hunspell? ( app-text/hunspell )
130 aspell? ( app-text/aspell )
131 enchant? ( app-text/enchant )"
132
133 DEPEND="${COMMONDEPEND}
134 virtual/pkgconfig
135 nls? ( sys-devel/gettext )"
136
137 pkg_setup() {
138 python-single-r1_pkg_setup
139 font_pkg_setup
140 }
141
142 src_prepare() {
143 epatch "${FILESDIR}"/2.1-python.patch
144 sed "s:python -tt:${EPYTHON} -tt:g" -i lib/configure.py || die
145 }
146
147 src_configure() {
148 tc-export CXX
149 #bug 221921
150 export VARTEXFONTS=${T}/fonts
151
152 econf \
153 $(use_enable nls) \
154 $(use_enable debug) \
155 $(use_enable monolithic-build) \
156 $(use_with hunspell) \
157 $(use_with aspell) \
158 $(use_with enchant) \
159 --without-included-boost \
160 --disable-stdlib-debug \
161 --with-packaging=posix
162 }
163
164 src_install() {
165 default
166
167 if use linguas_he ; then
168 echo "\bind_file cua" > "${T}"/hebrew.bind
169 echo "\bind \"F12\" \"language hebrew\"" >> "${T}"/hebrew.bind
170
171 insinto /usr/share/lyx/bind
172 doins "${T}"/hebrew.bind || die
173 fi
174
175 newicon -s 32 "${S}/development/Win32/packaging/icons/lyx_32x32.png" ${PN}.png
176 doicon -s 48 "${S}/lib/images/lyx.png"
177 doicon -s scalable "${S}/lib/images/lyx.svg"
178 make_desktop_entry ${PN} "LyX" "${PN}" "Office" "MimeType=application/x-lyx;"
179
180 # fix for bug 91108
181 if use latex ; then
182 dosym ../../../lyx/tex /usr/share/texmf-site/tex/latex/lyx || die
183 fi
184
185 # fonts needed for proper math display, see also bug #15629
186 font_src_install
187
188 python_fix_shebang "${ED}"/usr/share/${PN}
189
190 if use hunspell ; then
191 dosym /usr/share/myspell /usr/share/lyx/dicts
192 dosym /usr/share/myspell /usr/share/lyx/thes
193 fi
194 }
195
196 pkg_preinst() {
197 gnome2_icon_savelist
198 }
199
200 pkg_postinst() {
201 font_pkg_postinst
202 gnome2_icon_cache_update
203 fdo-mime_desktop_database_update
204
205 # fix for bug 91108
206 if use latex ; then
207 texhash
208 fi
209
210 # instructions for RTL support. See also bug 168331.
211 if use linguas_he || use linguas_ar; then
212 elog
213 elog "Enabling RTL support in LyX:"
214 elog "If you intend to use a RTL language (such as Hebrew or Arabic)"
215 elog "You must enable RTL support in LyX. To do so start LyX and go to"
216 elog "Tools->Preferences->Language settings->Language"
217 elog "and make sure the \"Right-to-left language support\" is checked"
218 elog
219 fi
220 }
221
222 pkg_postrm() {
223 gnome2_icon_cache_update
224 fdo-mime_desktop_database_update
225
226 if use latex ; then
227 texhash
228 fi
229 }