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

Diff of /app-office/libreoffice-bin/libreoffice-bin-3.3.1.ebuild

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

Revision 1.7 Revision 1.8
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.3.1.ebuild,v 1.7 2011/03/18 22:54:58 suka Exp $ 3# $Header: /var/cvsroot/gentoo-x86/app-office/libreoffice-bin/Attic/libreoffice-bin-3.3.1.ebuild,v 1.8 2011/03/19 00:14:02 suka 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
13BVER="3.3.1-8" 13BVER="3.3.1-8"
14BVER2="3.3-8" 14BVER2="3.3-8"
15UREVER="1.7.0-8" 15UREVER="1.7.0-8"
16BASIS="libobasis3.3" 16BASIS="libobasis3.3"
17BASIS2="basis3.3" 17BASIS2="basis3.3"
18NM1="libreoffice" 18NM="libreoffice"
19NM1="${NM}"
19NM2="${NM1}3" 20NM2="${NM1}3"
20NM3="${NM2}.3" 21NM3="${NM2}.3"
21FILEPATH="http://download.documentfoundation.org/${NM1}/stable/${PV}/rpm/" 22FILEPATH="http://download.documentfoundation.org/${NM}/stable/${PV}/rpm/"
22 23
23if [ "${ARCH}" = "amd64" ] ; then 24if [ "${ARCH}" = "amd64" ] ; then
24 XARCH="x86_64" 25 XARCH="x86_64"
25 XARCH2="x86-64" 26 PACKED="LibO_${MY_PV2}_Linux_x86-64"
26else 27else
27 XARCH="i586" 28 XARCH="i586"
28 XARCH2="x86" 29 PACKED="LibO_${MY_PV2}_Linux_x86"
29fi 30fi
30 31
31S="${WORKDIR}/en-US/RPMS" 32S="${WORKDIR}/en-US/RPMS"
32UP="LibO_${MY_PV2}_Linux_${XARCH2}_install-rpm_en-US/RPMS" 33UP="${PACKED}_install-rpm_en-US/RPMS"
33DESCRIPTION="LibreOffice productivity suite." 34DESCRIPTION="LibreOffice productivity suite."
34 35
35SRC_URI="amd64? ( ${FILEPATH}/x86_64/LibO_${PV}_Linux_x86-64_install-rpm_en-US.tar.gz 36SRC_URI="amd64? ( ${FILEPATH}/x86_64/LibO_${PV}_Linux_x86-64_install-rpm_en-US.tar.gz
36 offlinehelp? ( ${FILEPATH}/x86_64/LibO_${PV}_Linux_x86-64_helppack-rpm_en-US.tar.gz ) ) 37 offlinehelp? ( ${FILEPATH}/x86_64/LibO_${PV}_Linux_x86-64_helppack-rpm_en-US.tar.gz ) )
37 x86? ( ${FILEPATH}/x86/LibO_${PV}_Linux_x86_install-rpm_en-US.tar.gz 38 x86? ( ${FILEPATH}/x86/LibO_${PV}_Linux_x86_install-rpm_en-US.tar.gz
70 71
71PDEPEND="java? ( >=virtual/jre-1.5 )" 72PDEPEND="java? ( >=virtual/jre-1.5 )"
72 73
73RESTRICT="strip" 74RESTRICT="strip"
74 75
75QA_EXECSTACK="usr/$(get_libdir)/${NM1}/${BASIS2}/program/* 76QA_EXECSTACK="usr/$(get_libdir)/${NM}/${BASIS2}/program/*
76 usr/$(get_libdir)/${NM1}/ure/lib/*" 77 usr/$(get_libdir)/${NM}/ure/lib/*"
77QA_TEXTRELS="usr/$(get_libdir)/${NM1}/ure/lib/*" 78QA_TEXTRELS="usr/$(get_libdir)/${NM}/ure/lib/*"
78QA_PRESTRIPPED="usr/$(get_libdir)/${NM1}/${BASIS2}/program/* 79QA_PRESTRIPPED="usr/$(get_libdir)/${NM}/${BASIS2}/program/*
79 usr/$(get_libdir)/${NM1}/${BASIS2}/program/python-core-2.6.1/lib/lib-dynload/* 80 usr/$(get_libdir)/${NM}/${BASIS2}/program/python-core-2.6.1/lib/lib-dynload/*
80 usr/$(get_libdir)/${NM1}/program/* 81 usr/$(get_libdir)/${NM}/program/*
81 usr/$(get_libdir)/${NM1}/ure/bin/* 82 usr/$(get_libdir)/${NM}/ure/bin/*
82 usr/$(get_libdir)/${NM1}/ure/lib/*" 83 usr/$(get_libdir)/${NM}/ure/lib/*"
83 84
84src_unpack() { 85src_unpack() {
85 86
86 unpack ${A} 87 unpack ${A}
87 88
123 # Localization 124 # Localization
124 strip-linguas ${LANGS} 125 strip-linguas ${LANGS}
125 for l in ${LINGUAS}; do 126 for l in ${LINGUAS}; do
126 m="${l/_/-}" 127 m="${l/_/-}"
127 if [[ ${m} != "en" ]] ; then 128 if [[ ${m} != "en" ]] ; then
128 LANGDIR="LibO_${MY_PV2}_Linux_${XARCH2}_langpack-rpm_${m}/RPMS/" 129 LANGDIR="${PACKED}_langpack-rpm_${m}/RPMS/"
129 rpm_unpack "./${LANGDIR}/${BASIS}-${m}-${BVER}.${XARCH}.rpm" 130 rpm_unpack "./${LANGDIR}/${BASIS}-${m}-${BVER}.${XARCH}.rpm"
130 rpm_unpack "./${LANGDIR}/${NM2}-${m}-${BVER}.${XARCH}.rpm" 131 rpm_unpack "./${LANGDIR}/${NM2}-${m}-${BVER}.${XARCH}.rpm"
131 for n in base binfilter calc math res writer; do 132 for n in base binfilter calc math res writer; do
132 rpm_unpack "./${LANGDIR}/${BASIS}-${m}-${n}-${BVER}.${XARCH}.rpm" 133 rpm_unpack "./${LANGDIR}/${BASIS}-${m}-${n}-${BVER}.${XARCH}.rpm"
133 done 134 done
150 151
151} 152}
152 153
153src_install () { 154src_install () {
154 155
155 INSTDIR="/usr/$(get_libdir)/${NM1}" 156 INSTDIR="/usr/$(get_libdir)/${NM}"
156 dodir ${INSTDIR} 157 dodir ${INSTDIR}
157 mv "${WORKDIR}"/opt/${NM1}/* "${ED}${INSTDIR}" || die 158 mv "${WORKDIR}"/opt/${NM1}/* "${ED}${INSTDIR}" || die
158 159
159 #Menu entries, icons and mime-types 160 #Menu entries, icons and mime-types
160 cd "${ED}${INSTDIR}/share/xdg/" 161 cd "${ED}${INSTDIR}/share/xdg/"
202 203
203 fdo-mime_desktop_database_update 204 fdo-mime_desktop_database_update
204 fdo-mime_mime_database_update 205 fdo-mime_mime_database_update
205 use gnome && gnome2_icon_cache_update 206 use gnome && gnome2_icon_cache_update
206 207
207 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/${NM1}/program/soffice.bin 208 pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/${NM}/program/soffice.bin
208 209
209} 210}
210 211
211pkg_postrm() { 212pkg_postrm() {
212 213

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20