/[gentoo-x86]/app-office/libreoffice-bin/libreoffice-bin-4.0.4.2.ebuild
Gentoo

Contents of /app-office/libreoffice-bin/libreoffice-bin-4.0.4.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Mon Aug 5 07:31:30 2013 UTC (12 months, 4 weeks ago) by dilfridge
Branch: MAIN
Changes since 1.4: +2 -1 lines
Force stable version of jpeg libraries, bug 479752

(Portage version: 2.2.0_alpha191/cvs/Linux x86_64, signed Manifest commit with key 84AD142F)

1 dilfridge 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 dilfridge 1.5 # $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-4.0.4.2.ebuild,v 1.4 2013/07/28 14:08:23 ago Exp $
4 dilfridge 1.1
5     EAPI=5
6    
7     KDE_REQUIRED="optional"
8     CMAKE_REQUIRED="never"
9    
10     BASE_AMD64_URI="mirror://gentoo/amd64-bin-"
11     BASE_X86_URI="mirror://gentoo/x86-bin-"
12    
13     PYTHON_COMPAT=( python2_7 python3_3 )
14     PYTHON_REQ_USE="threads,xml"
15    
16     inherit kde4-base java-pkg-opt-2 python-single-r1 pax-utils prefix versionator
17    
18     DESCRIPTION="LibreOffice, a full office productivity suite. Binary package."
19     HOMEPAGE="http://www.libreoffice.org"
20     SRC_URI_AMD64="
21     kde? (
22     !java? ( ${BASE_AMD64_URI}${PN/-bin}-kde-${PVR}.tar.xz )
23     java? ( ${BASE_AMD64_URI}${PN/-bin}-kde-java-${PVR}.tar.xz )
24     )
25     gnome? (
26     !java? ( ${BASE_AMD64_URI}${PN/-bin}-gnome-${PVR}.tar.xz )
27     java? ( ${BASE_AMD64_URI}${PN/-bin}-gnome-java-${PVR}.tar.xz )
28     )
29     !kde? ( !gnome? (
30     !java? ( ${BASE_AMD64_URI}${PN/-bin}-base-${PVR}.tar.xz )
31     java? ( ${BASE_AMD64_URI}${PN/-bin}-base-java-${PVR}.tar.xz )
32     ) )
33     "
34     SRC_URI_X86="
35     kde? (
36     !java? ( ${BASE_X86_URI}${PN/-bin}-kde-${PVR}.tar.xz )
37     java? ( ${BASE_X86_URI}${PN/-bin}-kde-java-${PVR}.tar.xz )
38     )
39     gnome? (
40     !java? ( ${BASE_X86_URI}${PN/-bin}-gnome-${PVR}.tar.xz )
41     java? ( ${BASE_X86_URI}${PN/-bin}-gnome-java-${PVR}.tar.xz )
42     )
43     !kde? ( !gnome? (
44     !java? ( ${BASE_X86_URI}${PN/-bin}-base-${PVR}.tar.xz )
45     java? ( ${BASE_X86_URI}${PN/-bin}-base-java-${PVR}.tar.xz )
46     ) )
47     "
48    
49     SRC_URI="
50     amd64? ( ${SRC_URI_AMD64} )
51     x86? ( ${SRC_URI_X86} )
52     "
53    
54 dilfridge 1.2 IUSE="debug gnome java kde"
55 dilfridge 1.1 LICENSE="LGPL-3"
56     SLOT="0"
57 ago 1.4 KEYWORDS="-* amd64 x86"
58 dilfridge 1.1
59     BIN_COMMON_DEPEND="
60     =app-text/libexttextcat-3.4*
61     app-text/poppler:0/35
62     dev-libs/icu:0/51.1
63     =media-gfx/graphite2-1.2*
64     =media-libs/libpng-1.5*
65     >=sys-libs/glibc-2.15-r3
66     kde? ( >=kde-base/kdelibs-4.10.4:4 >=dev-qt/qtcore-4.8.4-r5:4 )
67 dilfridge 1.5 || ( <media-libs/libjpeg-turbo-1.3.0-r2 =media-libs/jpeg-8* )
68 dilfridge 1.1 "
69    
70     # PLEASE place any restrictions that are specific to the binary builds
71     # into the BIN_COMMON_DEPEND block above.
72     # All dependencies below this point should remain identical to those in
73     # the source ebuilds.
74    
75     COMMON_DEPEND="
76     ${BIN_COMMON_DEPEND}
77     ${PYTHON_DEPS}
78     app-arch/zip
79     app-arch/unzip
80     >=app-text/hunspell-1.3.2-r3
81     app-text/mythes
82     >=app-text/libexttextcat-3.2
83     app-text/liblangtag
84     app-text/libmspub
85     app-text/libwpd:0.9[tools]
86     app-text/libwpg:0.2
87     >=app-text/libwps-0.2.2
88     >=app-text/poppler-0.16:=[xpdf-headers(+),cxx]
89     >=dev-cpp/clucene-2.3.3.4-r2
90     >=dev-cpp/libcmis-0.3.1:0.3
91     dev-db/unixODBC
92     dev-libs/expat
93     >=dev-libs/hyphen-2.7.1
94     >=dev-libs/icu-4.8.1.1:=
95     =dev-libs/liborcus-0.3*
96     >=dev-libs/nspr-4.8.8
97     >=dev-libs/nss-3.12.9
98     >=dev-lang/perl-5.0
99     >=dev-libs/openssl-1.0.0d
100     >=dev-libs/redland-1.0.14[ssl]
101     media-gfx/graphite2
102     >=media-libs/fontconfig-2.8.0
103     media-libs/freetype:2
104     media-libs/lcms:2
105     >=media-libs/libpng-1.4
106     >=media-libs/libcdr-0.0.5
107     media-libs/libvisio
108     >=net-misc/curl-7.21.4
109     net-nds/openldap
110     sci-mathematics/lpsolve
111     virtual/jpeg
112     >=x11-libs/cairo-1.10.0[X]
113     x11-libs/libXinerama
114     x11-libs/libXrandr
115     x11-libs/libXrender
116 dilfridge 1.2 net-print/cups
117 dilfridge 1.1 >=dev-libs/dbus-glib-0.92
118     gnome? ( gnome-extra/evolution-data-server )
119     gnome? ( gnome-base/gconf:2 )
120     x11-libs/gdk-pixbuf[X]
121     >=x11-libs/gtk+-2.24:2
122     media-libs/gstreamer:1.0
123     media-libs/gst-plugins-base:1.0
124     virtual/glu
125     virtual/opengl
126     net-libs/neon
127     "
128    
129     RDEPEND="${COMMON_DEPEND}
130     !app-office/libreoffice
131     !<app-office/openoffice-bin-3.4.0-r1
132     !app-office/openoffice
133     media-fonts/libertine-ttf
134     media-fonts/liberation-fonts
135     media-fonts/urw-fonts
136     java? ( >=virtual/jre-1.6 )
137     "
138    
139     PDEPEND="
140     =app-office/libreoffice-l10n-4.0*
141     "
142    
143     DEPEND=""
144    
145     # only one flavor at a time
146     REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde )"
147    
148     RESTRICT="test strip"
149    
150     S="${WORKDIR}"
151    
152     PYTHON_UPDATER_IGNORE="1"
153    
154     pkg_pretend() {
155     [[ $(gcc-major-version) -lt 4 ]] || \
156     ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \
157     && die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)."
158     }
159    
160     pkg_setup() {
161     kde4-base_pkg_setup
162     }
163    
164     src_unpack() {
165     default
166     }
167    
168     src_prepare() {
169     cp "${FILESDIR}"/50-${PN} "${T}"
170     eprefixify "${T}"/50-${PN}
171     }
172    
173     src_configure() { :; }
174    
175     src_compile() { :; }
176    
177     src_install() {
178     dodir /usr
179     cp -aR "${S}"/usr/* "${ED}"/usr/
180    
181     # prevent revdep-rebuild from attempting to rebuild all the time
182     insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
183     }
184    
185     pkg_preinst() {
186     # Cache updates - all handled by kde eclass for all environments
187     kde4-base_pkg_preinst
188     }
189    
190     pkg_postinst() {
191     kde4-base_pkg_postinst
192    
193     pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
194     pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/unopkg.bin
195    
196     use java || \
197     ewarn 'If you plan to use lbase application you should enable java or you will get various crashes.'
198     }
199    
200     pkg_postrm() {
201     kde4-base_pkg_postrm
202     }

  ViewVC Help
Powered by ViewVC 1.1.20