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