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

Contents of /app-office/libreoffice-bin/libreoffice-bin-3.4.3.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (hide annotations) (download)
Wed Nov 30 10:02:04 2011 UTC (2 years, 10 months ago) by scarabeus
Branch: MAIN
Changes since 1.6: +1 -2 lines
Vigra is just build dep...

(Portage version: 2.2.0_alpha79/cvs/Linux x86_64)

1 scarabeus 1.1 # Copyright 1999-2011 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 scarabeus 1.7 # $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-3.4.3.2-r1.ebuild,v 1.6 2011/10/26 15:47:59 chainsaw Exp $
4 scarabeus 1.1
5     EAPI=4
6    
7     KDE_REQUIRED="optional"
8     CMAKE_REQUIRED="never"
9    
10 scarabeus 1.5 BASE_URI="http://dev.gentooexperimental.org/~scarabeus/libreo_binary/"
11 scarabeus 1.1
12     inherit kde4-base java-pkg-opt-2 pax-utils
13    
14     DESCRIPTION="LibreOffice, a full office productivity suite. Binary package"
15     HOMEPAGE="http://www.libreoffice.org"
16 scarabeus 1.5 SRC_URI_AMD64="
17     kde? (
18     !java? ( ${BASE_URI}/amd64/${PN/-bin}-kde-${PVR}.tbz2 -> ${PN/-bin}-kde-amd64-${PVR}.tbz2 )
19     java? ( ${BASE_URI}/amd64/${PN/-bin}-kde-java-${PVR}.tbz2 -> ${PN/-bin}-kde-java-amd64-${PVR}.tbz2 )
20     )
21     gnome? (
22     !java? ( ${BASE_URI}/amd64/${PN/-bin}-gnome-${PVR}.tbz2 -> ${PN/-bin}-gnome-amd64-${PVR}.tbz2 )
23     java? ( ${BASE_URI}/amd64/${PN/-bin}-gnome-java-${PVR}.tbz2 -> ${PN/-bin}-gnome-java-amd64-${PVR}.tbz2 )
24     )
25     !kde? ( !gnome? (
26     !java? ( ${BASE_URI}/amd64/${PN/-bin}-base-${PVR}.tbz2 -> ${PN/-bin}-base-amd64-${PVR}.tbz2 )
27     java? ( ${BASE_URI}/amd64/${PN/-bin}-base-java-${PVR}.tbz2 -> ${PN/-bin}-base-java-amd64-${PVR}.tbz2 )
28     ) )
29     "
30    
31     SRC_URI_X86="
32 scarabeus 1.1 kde? (
33 scarabeus 1.5 !java? ( ${BASE_URI}/x86/${PN/-bin}-kde-${PVR}.tbz2 -> ${PN/-bin}-kde-x86-${PVR}.tbz2 )
34     java? ( ${BASE_URI}/x86/${PN/-bin}-kde-java-${PVR}.tbz2 -> ${PN/-bin}-kde-java-x86-${PVR}.tbz2 )
35 scarabeus 1.1 )
36     gnome? (
37 scarabeus 1.5 !java? ( ${BASE_URI}/x86/${PN/-bin}-gnome-${PVR}.tbz2 -> ${PN/-bin}-gnome-x86-${PVR}.tbz2 )
38     java? ( ${BASE_URI}/x86/${PN/-bin}-gnome-java-${PVR}.tbz2 -> ${PN/-bin}-gnome-java-x86-${PVR}.tbz2 )
39 scarabeus 1.1 )
40     !kde? ( !gnome? (
41 scarabeus 1.5 !java? ( ${BASE_URI}/x86/${PN/-bin}-base-${PVR}.tbz2 -> ${PN/-bin}-base-x86-${PVR}.tbz2 )
42     java? ( ${BASE_URI}/x86/${PN/-bin}-base-java-${PVR}.tbz2 -> ${PN/-bin}-base-java-x86-${PVR}.tbz2 )
43 scarabeus 1.1 ) )
44     "
45    
46 scarabeus 1.5 SRC_URI="
47     amd64? ( ${SRC_URI_AMD64} )
48     x86? ( ${SRC_URI_X86} )
49     "
50    
51 scarabeus 1.1 IUSE="gnome java kde"
52     LICENSE="LGPL-3"
53     SLOT="0"
54 chainsaw 1.6 KEYWORDS="amd64 ~x86"
55 scarabeus 1.1
56     COMMON_DEPEND="
57     app-arch/zip
58     app-arch/unzip
59     >=app-text/hunspell-1.3.2-r1
60     app-text/mythes
61     app-text/libwpd:0.9[tools]
62     app-text/libwpg:0.2
63     >=app-text/libwps-0.2.2
64     >=app-text/poppler-0.12.3-r3[xpdf-headers,cairo]
65     dev-db/unixODBC
66     dev-libs/expat
67     >=dev-libs/glib-2.28
68     >=dev-libs/hyphen-2.7.1
69     >=dev-libs/icu-4.8.1-r1
70     >=dev-lang/perl-5.0
71     >=dev-libs/openssl-1.0.0e
72     dev-libs/redland[ssl]
73     media-libs/freetype:2
74     >=media-libs/fontconfig-2.8.0
75     >=media-libs/libpng-1.5
76     net-print/cups
77     sci-mathematics/lpsolve
78     >=sys-libs/db-4.8
79     virtual/jpeg
80     >=x11-libs/cairo-1.10.0
81     x11-libs/libXaw
82     x11-libs/libXinerama
83     x11-libs/libXrandr
84     x11-libs/libXrender
85     >=dev-libs/dbus-glib-0.92
86     gnome? (
87     gnome-base/gconf:2
88     gnome-extra/evolution-data-server
89     )
90     >=x11-libs/gtk+-2.24:2
91     media-gfx/graphite2
92     >=media-libs/gstreamer-0.10
93     >=media-libs/gst-plugins-base-0.10
94     java? (
95     >=dev-java/bsh-2.0_beta4
96     dev-java/lucene:2.9
97     dev-java/lucene-analyzers:2.3
98     dev-java/saxon:0
99     )
100     net-nds/openldap
101     virtual/opengl
102     net-libs/neon
103     "
104    
105     RDEPEND="${COMMON_DEPEND}
106 scarabeus 1.2 !app-office/libreoffice
107 scarabeus 1.1 !app-office/openoffice-bin
108     !app-office/openoffice
109     java? ( >=virtual/jre-1.6 )
110     "
111    
112     PDEPEND="
113     >=app-office/libreoffice-l10n-$(get_version_component_range 1-2)
114     "
115    
116     DEPEND="${COMMON_DEPEND}"
117    
118     # only one flavor at a time
119     REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde )"
120    
121     RESTRICT="test strip"
122    
123     S="${WORKDIR}"
124    
125 scarabeus 1.3 pkg_pretend() {
126     [[ $(gcc-major-version) -lt 4 ]] || \
127     ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \
128     && die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)."
129     }
130    
131 scarabeus 1.1 pkg_setup() {
132     kde4-base_pkg_setup
133     }
134    
135     src_unpack() {
136     default
137     }
138    
139     src_configure() { :; }
140    
141     src_compile() { :; }
142    
143     src_install() {
144     dodir /usr
145     cp -aR "${S}"/usr/* "${ED}"/usr/
146     }
147    
148     pkg_preinst() {
149     # Cache updates - all handled by kde eclass for all environments
150     kde4-base_pkg_preinst
151     }
152    
153     pkg_postinst() {
154     kde4-base_pkg_postinst
155    
156     pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
157     }
158    
159     pkg_postrm() {
160     kde4-base_pkg_postrm
161     }

  ViewVC Help
Powered by ViewVC 1.1.20