1 |
patrick 09/03/01 12:03:25 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: indeview-0.6.7.ebuild |
5 |
Log: |
6 |
Bump to 0.6.7. Modified ebuild by Peter Gaal and Joel Martin. Adding ~amd64 keyword. |
7 |
(Portage version: 2.2_rc23/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.14 app-office/indeview/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/indeview/ChangeLog?rev=1.14&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/indeview/ChangeLog?rev=1.14&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/indeview/ChangeLog?r1=1.13&r2=1.14 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/app-office/indeview/ChangeLog,v |
19 |
retrieving revision 1.13 |
20 |
retrieving revision 1.14 |
21 |
diff -u -r1.13 -r1.14 |
22 |
--- ChangeLog 16 Oct 2006 15:49:20 -0000 1.13 |
23 |
+++ ChangeLog 1 Mar 2009 12:03:25 -0000 1.14 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for app-office/indeview |
26 |
-# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/app-office/indeview/ChangeLog,v 1.13 2006/10/16 15:49:20 kanaka Exp $ |
28 |
+# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/app-office/indeview/ChangeLog,v 1.14 2009/03/01 12:03:25 patrick Exp $ |
30 |
+ |
31 |
+*indeview-0.6.7 (01 Mar 2009) |
32 |
+ |
33 |
+ 01 Mar 2009; Patrick Lauer <patrick@g.o> +indeview-0.6.7.ebuild: |
34 |
+ Bump to 0.6.7. Modified ebuild by Peter Gaal and Joel Martin. Adding |
35 |
+ ~amd64 keyword. |
36 |
|
37 |
16 Oct 2006; Joel Martin <kanaka@g.o> indeview-0.6.6.ebuild: |
38 |
Move qt from RDEPEND to DEPEND since it uses qmake to build |
39 |
|
40 |
|
41 |
|
42 |
1.1 app-office/indeview/indeview-0.6.7.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/indeview/indeview-0.6.7.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/indeview/indeview-0.6.7.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: indeview-0.6.7.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2009 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/app-office/indeview/indeview-0.6.7.ebuild,v 1.1 2009/03/01 12:03:25 patrick Exp $ |
52 |
|
53 |
DESCRIPTION="Convert OpenOffice/KOffice to run independently on Linux, OSX, or Windows" |
54 |
HOMEPAGE="http://www.indeview.org/" |
55 |
SRC_URI="http://www.${PN}.org/download/${P}.tgz" |
56 |
LICENSE="LGPL-2.1" |
57 |
SLOT="0" |
58 |
|
59 |
KEYWORDS="~amd64 ~ppc ~x86" |
60 |
IUSE="" |
61 |
DEPEND="=x11-libs/qt-3*" |
62 |
RDEPEND="${DEPEND}" |
63 |
|
64 |
S=${WORKDIR}/${P}/Viewer |
65 |
|
66 |
src_compile() { |
67 |
${QTDIR}/bin/qmake || die "qmake failed" |
68 |
make || die "make failed" |
69 |
|
70 |
# Fix up the OpenOffice macro file |
71 |
cd "${S}"/../Creator/OpenOffice/ |
72 |
cp IndeViewExport.bas IndeViewExport.mo.bas |
73 |
sed -i -e 's:unknown:/usr/share/IndeView/ROOT_DATA:' IndeViewExport.mo.bas |
74 |
# Convert special characters to &XXX; style |
75 |
sed -i -e 's/&/\&/g' IndeViewExport.mo.bas |
76 |
sed -i -e 's/"/\"/g' IndeViewExport.mo.bas |
77 |
sed -i -e 's/</\</g' IndeViewExport.mo.bas |
78 |
sed -i -e 's/>/\>/g' IndeViewExport.mo.bas |
79 |
sed -i -e "s/'/\'/g" IndeViewExport.mo.bas |
80 |
|
81 |
cat >> IndeViewExport.xba << _EOF_ |
82 |
<?xml version="1.0" encoding="UTF-8"?> |
83 |
<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd"> |
84 |
<script:module xmlns:script="http://openoffice.org/2000/script" script:name="IndeViewExport" script:language="StarBasic"> |
85 |
_EOF_ |
86 |
cat IndeViewExport.mo.bas >> IndeViewExport.xba |
87 |
cat >> IndeViewExport.xba << _EOF_ |
88 |
</script:module> |
89 |
_EOF_ |
90 |
|
91 |
cd "${S}"/../Creator/KPresenter |
92 |
sed -i -e 's:^ROOT_DATA=unknown:ROOT_DATA=/usr/share/IndeView/ROOT_DATA:' kpr2iv.sh |
93 |
} |
94 |
|
95 |
src_install() { |
96 |
dobin bin/indeview |
97 |
dobin ../Creator/KPresenter/kpr2iv.sh |
98 |
|
99 |
cd "${S}"/.. |
100 |
dohtml -r doc/html/* |
101 |
dodoc README AUTHORS |
102 |
|
103 |
dodir /usr/share/IndeView |
104 |
cp -pPR "${S}"/../ROOT_DATA "${D}"/usr/share/IndeView/ |
105 |
|
106 |
if [ -e /opt/OpenOffice.org ]; then |
107 |
dodir /opt/OpenOffice.org/share/basic/Tools |
108 |
insinto /opt/OpenOffice.org/share/basic/Tools |
109 |
cd "${S}"/../Creator/OpenOffice/ |
110 |
doins IndeViewExport.xba |
111 |
else |
112 |
dodir /usr/lib/openoffice/share/basic/Tools |
113 |
insinto /usr/lib/openoffice/share/basic/Tools |
114 |
cd "${S}"/../Creator/OpenOffice/ |
115 |
doins IndeViewExport.xba |
116 |
fi |
117 |
} |
118 |
|
119 |
pkg_postinst() { |
120 |
# Add script to OpenOffice macros list |
121 |
if [ -e /opt/OpenOffice.org ]; |
122 |
then |
123 |
grep "IndeViewExport" /opt/OpenOffice.org/share/basic/Tools/script.xlb > /dev/null 2>&1 || |
124 |
sed -i -e 's;</library:library>; <library:element library:name="IndeViewExport"/>\n</library:library>;' /opt/OpenOffice.org/share/basic/Tools/script.xlb |
125 |
else |
126 |
grep "IndeViewExport" /usr/lib/openoffice/share/basic/Tools/script.xlb > /dev/null 2>&1 || |
127 |
sed -i -e 's;</library:library>; <library:element library:name="IndeViewExport"/>\n</library:library>;' /usr/lib/openoffice/share/basic/Tools/script.xlb |
128 |
fi |
129 |
|
130 |
echo |
131 |
ewarn "If you install or re-install openoffice, " |
132 |
ewarn "you will need to re-merge this package." |
133 |
echo |
134 |
} |
135 |
|
136 |
pkg_postrm() { |
137 |
# Delete script from OpenOffice macros list |
138 |
if [ ! -e "${ROOT}"/usr/bin/indeview ]; |
139 |
then |
140 |
if [ -e /opt/OpenOffice.org ]; then |
141 |
grep "IndeViewExport" /opt/OpenOffice.org/share/basic/Tools/script.xlb > /dev/null 2>&1 && |
142 |
sed -i -e '/^ <library:element library:name="IndeViewExport"\/>$/d' /opt/OpenOffice.org/share/basic/Tools/script.xlb |
143 |
else |
144 |
grep "IndeViewExport" /usr/lib/openoffice/share/basic/Tools/script.xlb > /dev/null 2>&1 && |
145 |
sed -i -e '/^ <library:element library:name="IndeViewExport"\/>$/d' /usr/lib/openoffice/share/basic/Tools/script.xlb |
146 |
fi |
147 |
fi |
148 |
} |