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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download) (as text)
Wed Jan 11 12:10:57 2012 UTC (2 years, 6 months ago) by scarabeus
Branch: MAIN
File MIME type: text/x-sh
Add the binary generator script.

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

1 scarabeus 1.1 #!/bin/bash
2    
3     die() {
4     echo "${1}"
5     exit 1
6     }
7    
8     VERSION="3.4.5.2"
9    
10     # first the default subset of useflags
11     IUSES_BASE="bash-completion binfilter branding dbus graphite gstreamer gtk python templates webdav odk"
12    
13     # now for the options
14     IUSES_J="java"
15     IUSES_NJ="-java"
16     IUSES_G="gnome eds"
17     IUSES_NG="-gnome -eds"
18     IUSES_K="kde"
19     IUSES_NK="-kde"
20    
21     mkdir -p /etc/portage/package.use/
22    
23     # compile the flavor
24     echo "Base"
25     echo "app-office/libreoffice ${IUSES_BASE} ${IUSES_NJ} ${IUSES_NG} ${IUSES_NK}" > /etc/portage/package.use/libreo
26     emerge -v =libreoffice-${VERSION} || die "emerge failed"
27     quickpkg libreoffice --include-config=y
28     cp /usr/portage/packages/app-office/libreoffice-${VERSION}.tbz2 ./libreoffice-base-${VERSION}.tbz2 || die "Copying package failed"
29    
30     echo "Base - java"
31     echo "app-office/libreoffice ${IUSES_BASE} ${IUSES_J} ${IUSES_NG} ${IUSES_NK}" > /etc/portage/package.use/libreo
32     emerge -v =libreoffice-${VERSION} || die "emerge failed"
33     quickpkg libreoffice --include-config=y
34     cp /usr/portage/packages/app-office/libreoffice-${VERSION}.tbz2 ./libreoffice-base-java-${VERSION}.tbz2 || die "Copying package failed"
35    
36     # kde flavor
37     echo "KDE"
38     echo "app-office/libreoffice ${IUSES_BASE} ${IUSES_NJ} ${IUSES_NG} ${IUSES_K}" > /etc/portage/package.use/libreo
39     emerge -v =libreoffice-${VERSION} || die "emerge failed"
40     quickpkg libreoffice --include-config=y
41     cp /usr/portage/packages/app-office/libreoffice-${VERSION}.tbz2 ./libreoffice-kde-${VERSION}.tbz2 || die "Copying package failed"
42    
43     echo "KDE - java"
44     echo "app-office/libreoffice ${IUSES_BASE} ${IUSES_J} ${IUSES_NG} ${IUSES_K}" > /etc/portage/package.use/libreo
45     emerge -v =libreoffice-${VERSION} || die "emerge failed"
46     quickpkg libreoffice --include-config=y
47     cp /usr/portage/packages/app-office/libreoffice-${VERSION}.tbz2 ./libreoffice-kde-java-${VERSION}.tbz2 || die "Copying package failed"
48    
49     # gnome flavor
50     echo "Gnome"
51     echo "app-office/libreoffice ${IUSES_BASE} ${IUSES_NJ} ${IUSES_G} ${IUSES_NK}" > /etc/portage/package.use/libreo
52     emerge -v =libreoffice-${VERSION} || die "emerge failed"
53     quickpkg libreoffice --include-config=y
54     cp /usr/portage/packages/app-office/libreoffice-${VERSION}.tbz2 ./libreoffice-gnome-${VERSION}.tbz2 || die "Copying package failed"
55    
56     echo "Gnome -java"
57     echo "app-office/libreoffice ${IUSES_BASE} ${IUSES_J} ${IUSES_G} ${IUSES_NK}" > /etc/portage/package.use/libreo
58     emerge -v =libreoffice-${VERSION} || die "emerge failed"
59     quickpkg libreoffice --include-config=y
60     cp /usr/portage/packages/app-office/libreoffice-${VERSION}.tbz2 ./libreoffice-gnome-java-${VERSION}.tbz2 || die "Copying package failed"

  ViewVC Help
Powered by ViewVC 1.1.20