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

Diff of /app-office/libreoffice-bin/libreoffice-bin-3.4.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/Attic/libreoffice-bin-3.4.3-r1.ebuild,v 1.1 2011/09/02 10:53:52 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/Attic/libreoffice-bin-3.4.3-r1.ebuild,v 1.2 2011/09/03 11:56:58 scarabeus Exp $
4 4
5EAPI="3" 5EAPI="3"
6 6
7inherit eutils fdo-mime gnome2-utils pax-utils prefix rpm multilib 7inherit eutils fdo-mime gnome2-utils pax-utils prefix rpm multilib
8 8
9IUSE="gnome java offlinehelp" 9IUSE="gnome java"
10 10
11MY_PV="${PV/_/-}" 11MY_PV="${PV/_/-}"
12MY_PV2="${PV}rc2" 12MY_PV2="${PV}rc2"
13BVER="3.4.3-302" 13BVER="3.4.3-302"
14BVER2="3.4-302" 14BVER2="3.4-302"
27fi 27fi
28UP="${PACKED}_install-rpm_en-US/RPMS" 28UP="${PACKED}_install-rpm_en-US/RPMS"
29 29
30DESCRIPTION="LibreOffice productivity suite." 30DESCRIPTION="LibreOffice productivity suite."
31HOMEPAGE="http://www.libreoffice.org" 31HOMEPAGE="http://www.libreoffice.org"
32SRC_URI="amd64? ( ${FILEPATH}/x86_64/LibO_${PV}_Linux_x86-64_install-rpm_en-US.tar.gz 32SRC_URI="amd64? ( ${FILEPATH}/x86_64/LibO_${PV}_Linux_x86-64_install-rpm_en-US.tar.gz )
33 offlinehelp? ( ${FILEPATH}/x86_64/LibO_${PV}_Linux_x86-64_helppack-rpm_en-US.tar.gz ) )
34 x86? ( ${FILEPATH}/x86/LibO_${PV}_Linux_x86_install-rpm_en-US.tar.gz 33 x86? ( ${FILEPATH}/x86/LibO_${PV}_Linux_x86_install-rpm_en-US.tar.gz )"
35 offlinehelp? ( ${FILEPATH}/x86/LibO_${PV}_Linux_x86_helppack-rpm_en-US.tar.gz ) )"
36
37LANGS="af ar as ast be bg bn bo br brx bs ca ca_XV cs cy da de dgo dz el en en_GB en_ZA eo es et eu fa fi fr ga gl gu he hi hr hu id is it ja ka kk km kn ko kok ks ku lo lt lv mai mk ml mn mni mr my nb ne nl nn nr nso oc om or pa_IN pl pt pt_BR ro ru rw sa_IN sat sd sh si sk sl sq sr ss st sv sw_TZ ta te tg th tn tr ts ug uk uz ve vi xh zh_CN zh_TW zu"
38
39LANGS2="bg bn bo bs ca ca_XV cs da de dz el en en_GB en_ZA eo es et eu fi fr gl gu he hi hr hu id is it ja ka km ko mk nb ne nl nn om pl pt pt_BR ru si sk sl sq sv tg tr ug uk vi zh_CN zh_TW"
40
41for X in ${LANGS} ; do
42 [[ ${X} != "en" ]] && SRC_URI="${SRC_URI} linguas_${X}? (
43 amd64? ( "${FILEPATH}"/x86_64/LibO_${PV}_Linux_x86-64_langpack-rpm_${X/_/-}.tar.gz )
44 x86? ( "${FILEPATH}"/x86/LibO_${PV}_Linux_x86_langpack-rpm_${X/_/-}.tar.gz ) )"
45 IUSE="${IUSE} linguas_${X}"
46done
47
48for Y in ${LANGS2} ; do
49 [[ ${Y} != "en" ]] && SRC_URI="${SRC_URI} linguas_${Y}? (
50 amd64? ( offlinehelp? ( "${FILEPATH}"/x86_64/LibO_${PV}_Linux_x86-64_helppack-rpm_${Y/_/-}.tar.gz ) )
51 x86? ( offlinehelp? ( "${FILEPATH}"/x86/LibO_${PV}_Linux_x86_helppack-rpm_${Y/_/-}.tar.gz ) ) )"
52done
53 34
54LICENSE="LGPL-3" 35LICENSE="LGPL-3"
55SLOT="0" 36SLOT="0"
56KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" 37KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
57 38
58RDEPEND="!app-office/libreoffice 39RDEPEND="!app-office/libreoffice
59 !app-office/openoffice 40 !app-office/openoffice
60 !app-office/openoffice-bin 41 !app-office/openoffice-bin
61 !prefix? ( sys-libs/glibc ) 42 !prefix? ( sys-libs/glibc )
43 >=app-office/libreoffice-l10n-${PV}
62 app-arch/unzip 44 app-arch/unzip
63 app-arch/zip 45 app-arch/zip
64 >=dev-lang/perl-5.0 46 >=dev-lang/perl-5.0
65 >=media-libs/freetype-2.1.10-r2 47 >=media-libs/freetype-2.1.10-r2
66 x11-libs/libXaw 48 x11-libs/libXaw
114 96
115 # English support installed by default 97 # English support installed by default
116 rpm_unpack "./${UP}/${BASIS}-en-US-${BVER}.${XARCH}.rpm" 98 rpm_unpack "./${UP}/${BASIS}-en-US-${BVER}.${XARCH}.rpm"
117 rpm_unpack "./${UP}/${NM2}-en-US-${BVER}.${XARCH}.rpm" 99 rpm_unpack "./${UP}/${NM2}-en-US-${BVER}.${XARCH}.rpm"
118 rpm_unpack "./${UP}/${NM2}-dict-en-${BVER}.${XARCH}.rpm" 100 rpm_unpack "./${UP}/${NM2}-dict-en-${BVER}.${XARCH}.rpm"
119 use offlinehelp && rpm_unpack "./${PACKED}_helppack-rpm_en-US/RPMS//${BASIS}-en-US-help-${BVER}.${XARCH}.rpm"
120 for s in base binfilter calc math res writer ; do 101 for s in base binfilter calc math res writer ; do
121 rpm_unpack "./${UP}/${BASIS}-en-US-${s}-${BVER}.${XARCH}.rpm" 102 rpm_unpack "./${UP}/${BASIS}-en-US-${s}-${BVER}.${XARCH}.rpm"
122 done
123
124 # Localization
125 strip-linguas ${LANGS}
126 for l in ${LINGUAS}; do
127 m="${l/_/-}"
128 if [[ ${m} != "en" ]] ; then
129 LANGDIR="${PACKED}_langpack-rpm_${m}/RPMS/"
130 rpm_unpack "./${LANGDIR}/${BASIS}-${m}-${BVER}.${XARCH}.rpm"
131 rpm_unpack "./${LANGDIR}/${NM2}-${m}-${BVER}.${XARCH}.rpm"
132 for n in base binfilter calc math res writer; do
133 rpm_unpack "./${LANGDIR}/${BASIS}-${m}-${n}-${BVER}.${XARCH}.rpm"
134 done
135
136 for DICT_FILE in `find "./${LANGDIR}" -name "${NM2}-dict-*-${BVER}.${XARCH}.rpm"`; do
137 DICT_REGEX="s/${NM2}-dict-(.*?)-${BVER}.${XARCH}.rpm/\1/"
138 DICT_LOCALE=`basename "$DICT_FILE" | sed -E "${DICT_REGEX}"`
139 if [[ -n "${DICT_LOCALE}" && ! -d "${WORKDIR}/opt/${NM1}/share/extensions/dict-${DICT_LOCALE}" ]] ; then
140 rpm_unpack "${DICT_FILE}"
141 fi
142 done
143
144 # Help files
145 if use offlinehelp; then
146 LANGDIR2="${PACKED}_helppack-rpm_${m}/RPMS/"
147 rpm_unpack "./${LANGDIR2}/${BASIS}-${m}-help-${BVER}.${XARCH}.rpm"
148 fi
149 fi
150 done 103 done
151 104
152} 105}
153 106
154src_install () { 107src_install () {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20