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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Sat Feb 25 15:21:45 2012 UTC (2 years, 6 months ago) by dilfridge
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Remove broken build

(Portage version: 2.1.10.48/cvs/Linux x86_64)

1 scarabeus 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 dilfridge 1.6 # $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/libreoffice-bin-3.4.5.2.ebuild,v 1.5 2012/02/19 12:31:11 scarabeus Exp $
4 scarabeus 1.1
5     EAPI=4
6    
7     KDE_REQUIRED="optional"
8     CMAKE_REQUIRED="never"
9    
10     BASE_AMD64_URI="http://dev.gentoo.org/~pacho/libreoffice/"
11     BASE_X86_URI="http://gentoo-pr.org/libreo/libreo/"
12    
13 scarabeus 1.4 inherit kde4-base java-pkg-opt-2 pax-utils prefix
14 scarabeus 1.1
15     DESCRIPTION="LibreOffice, a full office productivity suite. Binary package"
16     HOMEPAGE="http://www.libreoffice.org"
17     SRC_URI_AMD64="
18     kde? (
19     !java? ( ${BASE_AMD64_URI}/${PN/-bin}-kde-${PVR}.tbz2 -> ${PN/-bin}-kde-amd64-${PVR}.tbz2 )
20     java? ( ${BASE_AMD64_URI}/${PN/-bin}-kde-java-${PVR}.tbz2 -> ${PN/-bin}-kde-java-amd64-${PVR}.tbz2 )
21     )
22     gnome? (
23     !java? ( ${BASE_AMD64_URI}/${PN/-bin}-gnome-${PVR}.tbz2 -> ${PN/-bin}-gnome-amd64-${PVR}.tbz2 )
24     java? ( ${BASE_AMD64_URI}/${PN/-bin}-gnome-java-${PVR}.tbz2 -> ${PN/-bin}-gnome-java-amd64-${PVR}.tbz2 )
25     )
26     !kde? ( !gnome? (
27     !java? ( ${BASE_AMD64_URI}/${PN/-bin}-base-${PVR}.tbz2 -> ${PN/-bin}-base-amd64-${PVR}.tbz2 )
28     java? ( ${BASE_AMD64_URI}/${PN/-bin}-base-java-${PVR}.tbz2 -> ${PN/-bin}-base-java-amd64-${PVR}.tbz2 )
29     ) )
30     "
31    
32     SRC_URI_X86="
33     kde? (
34     !java? ( ${BASE_X86_URI}/${PN/-bin}-kde-${PVR}.tbz2 -> ${PN/-bin}-kde-x86-${PVR}.tbz2 )
35     java? ( ${BASE_X86_URI}/${PN/-bin}-kde-java-${PVR}.tbz2 -> ${PN/-bin}-kde-java-x86-${PVR}.tbz2 )
36     )
37     gnome? (
38     !java? ( ${BASE_X86_URI}/${PN/-bin}-gnome-${PVR}.tbz2 -> ${PN/-bin}-gnome-x86-${PVR}.tbz2 )
39     java? ( ${BASE_X86_URI}/${PN/-bin}-gnome-java-${PVR}.tbz2 -> ${PN/-bin}-gnome-java-x86-${PVR}.tbz2 )
40     )
41     !kde? ( !gnome? (
42     !java? ( ${BASE_X86_URI}/${PN/-bin}-base-${PVR}.tbz2 -> ${PN/-bin}-base-x86-${PVR}.tbz2 )
43     java? ( ${BASE_X86_URI}/${PN/-bin}-base-java-${PVR}.tbz2 -> ${PN/-bin}-base-java-x86-${PVR}.tbz2 )
44     ) )
45     "
46    
47     SRC_URI="
48     amd64? ( ${SRC_URI_AMD64} )
49     x86? ( ${SRC_URI_X86} )
50     "
51    
52     IUSE="gnome java kde"
53     LICENSE="LGPL-3"
54     SLOT="0"
55 scarabeus 1.5 KEYWORDS="~amd64 ~x86"
56 scarabeus 1.1
57     COMMON_DEPEND="
58     app-arch/zip
59     app-arch/unzip
60     >=app-text/hunspell-1.3.2-r3
61     app-text/mythes
62     app-text/libwpd:0.9[tools]
63     app-text/libwpg:0.2
64     >=app-text/libwps-0.2.2
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-1.0.14[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[X]
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     virtual/opengl
101     net-libs/neon
102     "
103    
104     RDEPEND="${COMMON_DEPEND}
105     !app-office/libreoffice
106     !app-office/openoffice-bin
107     !app-office/openoffice
108     java? ( >=virtual/jre-1.6 )
109     "
110    
111     PDEPEND="
112     =app-office/libreoffice-l10n-$(get_version_component_range 1-3)*
113     "
114    
115     DEPEND="${COMMON_DEPEND}"
116    
117     # only one flavor at a time
118     REQUIRED_USE="kde? ( !gnome ) gnome? ( !kde )"
119    
120     RESTRICT="test strip"
121    
122     S="${WORKDIR}"
123    
124     PYTHON_UPDATER_IGNORE="1"
125    
126     pkg_pretend() {
127     [[ $(gcc-major-version) -lt 4 ]] || \
128     ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -le 4 ]] ) \
129     && die "Sorry, but gcc-4.4 and earlier won't work for libreoffice-bin package (see bug #387515)."
130     }
131    
132     pkg_setup() {
133     kde4-base_pkg_setup
134     }
135    
136     src_unpack() {
137     default
138     }
139    
140 scarabeus 1.4 src_prepare() {
141     cp "${FILESDIR}"/50-${PN} "${T}"
142     eprefixify "${T}"/50-${PN}
143     }
144    
145 scarabeus 1.1 src_configure() { :; }
146    
147     src_compile() { :; }
148    
149     src_install() {
150     dodir /usr
151     cp -aR "${S}"/usr/* "${ED}"/usr/
152 scarabeus 1.2
153     # prevent revdep-rebuild from attempting to rebuild all the time
154 scarabeus 1.4 insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
155 scarabeus 1.2
156 scarabeus 1.1 }
157    
158     pkg_preinst() {
159     # Cache updates - all handled by kde eclass for all environments
160     kde4-base_pkg_preinst
161     }
162    
163     pkg_postinst() {
164     kde4-base_pkg_postinst
165    
166     pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/libreoffice/program/soffice.bin
167     }
168    
169     pkg_postrm() {
170     kde4-base_pkg_postrm
171     }

  ViewVC Help
Powered by ViewVC 1.1.20