You are not logged in.

#1 2007-11-24 22:54:09

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

[REQUEST] writer2latex

If anyone is up to packaging writer2latex. It seems a little complex for my first solo PKGBUILD. Also, if possible, it needs to be compatible with Java 1.5 for use using gcj.

http://www.hj-gym.dk/~hj/writer2latex/

Offline

#2 2007-12-01 14:01:48

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [REQUEST] writer2latex

Hello,

here is a PKGBUILD

# Contributor: Stefan Husmann <stefan.husmann@t-systems.com>
pkgname=writer2latex
pkgver=05
pkgrel=1
pkgdesc="Converter for OO-Writer-documents to LaTeX"
arch=('i686')
url="http://www.hj-gym.dk/~hj/writer2latex"
license=('LGPL')
depends=('jdk' 'openoffice-base-devel')
makedepends=('apache-ant>=1.5' 'patch')
source=(http://www.hj-gym.dk/~hj/writer2latex/$pkgname$pkgver.zip build.xml.patch)
md5sums=('aaff584834819cf8de9cf85d1f5280c1' '436894c899dd085ca39974e73e360470')

build() {
  cd $startdir/src/$pkgname$pkgver
  patch build.xml ../build.xml.patch
  sed -i 's+$HOME+/opt+' w2l 
  ant all
  mkdir -p $startdir/pkg/usr/bin
  mkdir $startdir/pkg/opt/
  install -Dm755 $startdir/src/$pkgname$pkgver/w2l $startdir/pkg/usr/bin
  mv  $startdir/src/writer2latex05 $startdir/pkg/opt/
}

and a patchfile.

11c11
<     <property name="OFFICE_HOME" location=""/>
---
>     <property name="OFFICE_HOME" location="/opt/openoffice-dev"/>

They were not tested very hard. Please change the dependency and the last line in the patchfile, if you use openoffice-base instead of openoffice-base-devel.

Offline

#3 2007-12-01 23:32:11

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [REQUEST] writer2latex

Thank you very much. It seems to work nicely.

Offline

#4 2007-12-08 06:25:20

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [REQUEST] writer2latex

I removed all references to OpenOffice before the previous post and built it from there... without the patch. I think that you should add this to AUR..

Last edited by skottish (2007-12-08 06:26:09)

Offline

#5 2007-12-08 18:33:11

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [REQUEST] writer2latex

skottish wrote:

I removed all references to OpenOffice before the previous post and built it from there... without the patch. I think that you should add this to AUR..

Thank you! Did you test the Integration in Open-Office? I do not use OpenOffice so  I did not test it.

Offline

#6 2007-12-09 00:08:25

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [REQUEST] writer2latex

Stefan Husmann wrote:

Thank you! Did you test the Integration in Open-Office? I do not use OpenOffice so  I did not test it.

No I didn't. I'm trying to learn LyX (then Latex) and decided that having OO around was going to be in the way.

Last edited by skottish (2007-12-09 00:08:36)

Offline

#7 2007-12-09 20:50:56

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [REQUEST] writer2latex

skottish wrote:
Stefan Husmann wrote:

Thank you! Did you test the Integration in Open-Office? I do not use OpenOffice so  I did not test it.

No I didn't. I'm trying to learn LyX (then Latex) and decided that having OO around was going to be in the way.

It is in the AUR now. I took away jdk-dependency and put in JRE-dependency instead. It is sufficient.

I do not use LyX, too. It would be interesting to know if the writer2latex-output can be imported by LyX.

Offline

#8 2007-12-09 21:55:23

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [REQUEST] writer2latex

Stefan Husmann wrote:

It would be interesting to know if the writer2latex-output can be imported by LyX.

Not only does it work, there's a GUI option for it under import.

Offline

Board footer

Powered by FluxBB