/[gentoo-x86]/app-office/libreoffice/files/generate_libreoffice_package.sh
Gentoo

Diff of /app-office/libreoffice/files/generate_libreoffice_package.sh

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

Revision 1.2 Revision 1.4
8die() { 8die() {
9 echo "${1}" 9 echo "${1}"
10 exit 1 10 exit 1
11} 11}
12 12
13VERSION="3.5.2.2" 13VERSION="3.5.5.3"
14 14BINVERSION="3.5.5.3"
15BINRELEASE="-r1"
16 15
17# first the default subset of useflags 16# first the default subset of useflags
18IUSES_BASE="bash-completion binfilter branding cups dbus graphite gstreamer gtk nsplugin python vba webdav xmlsec -aqua -jemalloc -mysql -nlpsolver -odk -opengl -pdfimport -postgres -svg" 17IUSES_BASE="bash-completion binfilter branding cups dbus graphite gstreamer gtk nsplugin python vba webdav xmlsec -aqua -jemalloc -mysql -nlpsolver -odk -opengl -pdfimport -postgres -svg"
19 18
20# now for the options 19# now for the options
30# compile the flavor 29# compile the flavor
31echo "Base" 30echo "Base"
32echo "app-office/libreoffice ${IUSES_BASE} ${IUSES_NJ} ${IUSES_NG} ${IUSES_NK}" > /etc/portage/package.use/libreo 31echo "app-office/libreoffice ${IUSES_BASE} ${IUSES_NJ} ${IUSES_NG} ${IUSES_NK}" > /etc/portage/package.use/libreo
33emerge -v =libreoffice-${VERSION} || die "emerge failed" 32emerge -v =libreoffice-${VERSION} || die "emerge failed"
34quickpkg libreoffice --include-config=y 33quickpkg libreoffice --include-config=y
35mv /tmp/portage/packages/app-office/libreoffice-${VERSION}.tbz2 ./libreoffice-base-${VERSION}${BINRELEASE}.tbz2 || die "Moving package failed" 34mv /tmp/portage/packages/app-office/libreoffice-${VERSION}.tbz2 ./libreoffice-base-${BINVERSION}.tbz2 || die "Moving package failed"
36 35
37echo "Base - java" 36echo "Base - java"
38echo "app-office/libreoffice ${IUSES_BASE} ${IUSES_J} ${IUSES_NG} ${IUSES_NK}" > /etc/portage/package.use/libreo 37echo "app-office/libreoffice ${IUSES_BASE} ${IUSES_J} ${IUSES_NG} ${IUSES_NK}" > /etc/portage/package.use/libreo
39emerge -v =libreoffice-${VERSION} || die "emerge failed" 38emerge -v =libreoffice-${VERSION} || die "emerge failed"
40quickpkg libreoffice --include-config=y 39quickpkg libreoffice --include-config=y
41mv /tmp/portage/packages/app-office/libreoffice-${VERSION}.tbz2 ./libreoffice-base-java-${VERSION}${BINRELEASE}.tbz2 || die "Moving package failed" 40mv /tmp/portage/packages/app-office/libreoffice-${VERSION}.tbz2 ./libreoffice-base-java-${BINVERSION}.tbz2 || die "Moving package failed"
42 41
43# kde flavor 42# kde flavor
44echo "KDE" 43echo "KDE"
45echo "app-office/libreoffice ${IUSES_BASE} ${IUSES_NJ} ${IUSES_NG} ${IUSES_K}" > /etc/portage/package.use/libreo 44echo "app-office/libreoffice ${IUSES_BASE} ${IUSES_NJ} ${IUSES_NG} ${IUSES_K}" > /etc/portage/package.use/libreo
46emerge -v =libreoffice-${VERSION} || die "emerge failed" 45emerge -v =libreoffice-${VERSION} || die "emerge failed"
47quickpkg libreoffice --include-config=y 46quickpkg libreoffice --include-config=y
48mv /tmp/portage/packages/app-office/libreoffice-${VERSION}.tbz2 ./libreoffice-kde-${VERSION}${BINRELEASE}.tbz2 || die "Moving package failed" 47mv /tmp/portage/packages/app-office/libreoffice-${VERSION}.tbz2 ./libreoffice-kde-${BINVERSION}.tbz2 || die "Moving package failed"
49 48
50echo "KDE - java" 49echo "KDE - java"
51echo "app-office/libreoffice ${IUSES_BASE} ${IUSES_J} ${IUSES_NG} ${IUSES_K}" > /etc/portage/package.use/libreo 50echo "app-office/libreoffice ${IUSES_BASE} ${IUSES_J} ${IUSES_NG} ${IUSES_K}" > /etc/portage/package.use/libreo
52emerge -v =libreoffice-${VERSION} || die "emerge failed" 51emerge -v =libreoffice-${VERSION} || die "emerge failed"
53quickpkg libreoffice --include-config=y 52quickpkg libreoffice --include-config=y
54mv /tmp/portage/packages/app-office/libreoffice-${VERSION}.tbz2 ./libreoffice-kde-java-${VERSION}${BINRELEASE}.tbz2 || die "Moving package failed" 53mv /tmp/portage/packages/app-office/libreoffice-${VERSION}.tbz2 ./libreoffice-kde-java-${BINVERSION}.tbz2 || die "Moving package failed"
55 54
56# gnome flavor 55# gnome flavor
57echo "Gnome" 56echo "Gnome"
58echo "app-office/libreoffice ${IUSES_BASE} ${IUSES_NJ} ${IUSES_G} ${IUSES_NK}" > /etc/portage/package.use/libreo 57echo "app-office/libreoffice ${IUSES_BASE} ${IUSES_NJ} ${IUSES_G} ${IUSES_NK}" > /etc/portage/package.use/libreo
59emerge -v =libreoffice-${VERSION} || die "emerge failed" 58emerge -v =libreoffice-${VERSION} || die "emerge failed"
60quickpkg libreoffice --include-config=y 59quickpkg libreoffice --include-config=y
61mv /tmp/portage/packages/app-office/libreoffice-${VERSION}.tbz2 ./libreoffice-gnome-${VERSION}${BINRELEASE}.tbz2 || die "Moving package failed" 60mv /tmp/portage/packages/app-office/libreoffice-${VERSION}.tbz2 ./libreoffice-gnome-${BINVERSION}.tbz2 || die "Moving package failed"
62 61
63echo "Gnome -java" 62echo "Gnome -java"
64echo "app-office/libreoffice ${IUSES_BASE} ${IUSES_J} ${IUSES_G} ${IUSES_NK}" > /etc/portage/package.use/libreo 63echo "app-office/libreoffice ${IUSES_BASE} ${IUSES_J} ${IUSES_G} ${IUSES_NK}" > /etc/portage/package.use/libreo
65emerge -v =libreoffice-${VERSION} || die "emerge failed" 64emerge -v =libreoffice-${VERSION} || die "emerge failed"
66quickpkg libreoffice --include-config=y 65quickpkg libreoffice --include-config=y
67mv /tmp/portage/packages/app-office/libreoffice-${VERSION}.tbz2 ./libreoffice-gnome-java-${VERSION}${BINRELEASE}.tbz2 || die "Moving package failed" 66mv /tmp/portage/packages/app-office/libreoffice-${VERSION}.tbz2 ./libreoffice-gnome-java-${BINVERSION}.tbz2 || die "Moving package failed"
68 67
69 68
70for name in ./libreoffice-*-${VERSION}${BINRELEASE}.tbz2 ; do 69for name in ./libreoffice-*-${BINVERSION}.tbz2 ; do
71 70
72 BN=`basename $name .tbz2` 71 BN=`basename $name .tbz2`
73 72
74 rm -rf tmp.lo 73 rm -rf tmp.lo
75 mkdir -vp tmp.lo/p1 tmp.lo/p2 74 mkdir -vp tmp.lo/p1 tmp.lo/p2

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

  ViewVC Help
Powered by ViewVC 1.1.20