You are not logged in.

#1 2005-08-03 14:08:07

janwil
Member
From: Tartu, Estonia
Registered: 2003-08-15
Posts: 88

[REQUEST] (x)eukleides

Hi Archers!

There is a very fine geometry drawing package called Eukleides available for Linux:

http://perso.wanadoo.fr/obrecht/

I tried to build Arch package for it and its X-frontend Xeukleides, but did not manage. I would appreciate if someone with a bit more experience could help me.

Thnx!
Jan

Offline

#2 2005-08-03 17:35:38

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [REQUEST] (x)eukleides

Could you post the PKGBUILD you used and the error messages you got?

Offline

#3 2005-08-04 08:31:57

janwil
Member
From: Tartu, Estonia
Registered: 2003-08-15
Posts: 88

Re: [REQUEST] (x)eukleides

Hi!

So I worked a bit more and finally got something working. However, namcap complains about some wrong symlinks in eukleides package. Can someone please help me sorting this out?

eukleides PKGBUILD:

pkgname=eukleides
pkgver=1.0.2
pkgrel=1
pkgdesc="Eukleides -- a geometry drawing program"
url="http://perso.wanadoo.fr/obrecht/"
license="GPL"
makedepends=('bison' 'flex' 'texinfo')
depends=('bash')
source=(http://perso.wanadoo.fr/obrecht/download/$pkgname.$pkgver.tar.gz)
md5sums=('c0f24b9f6de9f52dc23e8774672a392f')

build() {
  cd $startdir/src/$pkgname.$pkgver
  make || return 1
  make PREFIX=$startdir/pkg/usr install
}

xeukleides PKGBUILD

pkgname=xeukleides
pkgver=1.0.1
pkgrel=1
pkgdesc="XEukleides -- a frontent for Eukleides"
url="http://perso.wanadoo.fr/obrecht/"
license="GPL"
makedepends=('bison' 'flex')
depends=('gtk' 'x-server')
source=(http://perso.wanadoo.fr/obrecht/download/$pkgname.$pkgver.tar.gz)
md5sums=('66d37a4f34a8f9cc82e1edb562fb5b6c')

build() {
  cd $startdir/src/$pkgname.$pkgver
  make || return 1
  make PREFIX=$startdir/pkg/usr install
}

And it seems that they got compiled against GTK, not GTK2 ...

Thnx,
Jan

Offline

#4 2005-08-04 16:18:41

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [REQUEST] (x)eukleides

Good job big_smile
Some comments:
1. the license field should be empty
2. you don't need 'bison' and  'flex' as makedepends.  They are part of the base packages so it is assumed that everyone has them installed.
3. the 'x-server' depends is not needed because gtk depends on 'x-server'
4. the symlink error is because the pkg contains symlinks referring to the build directory. To correct that, add:

  rm $startdir/pkg/usr/man/man1/{euk2edit.1,euk2eps.1}
  ln -fs /usr/man/man1/eukleides.1.gz $startdir/pkg/usr/man/man1/euk2edit.1.gz
  ln -fs /usr/man/man1/eukleides.1.gz  $startdir/pkg/usr/man/man1/euk2eps.1.gz

after the make install line of eukleides.
5. gtk2 is not gtk version 2; they are completely different (incompatible).  It seems that the program was made to use gtk. You cannot change that without modifying the source code.

Offline

#5 2005-08-05 08:05:59

janwil
Member
From: Tartu, Estonia
Registered: 2003-08-15
Posts: 88

Re: [REQUEST] (x)eukleides

Snowman,

Thanx for the comments -- got it all working now. However, when removing the x-server dependency, namcap started complaining about it, so I put it back. Is it a namcap problem?

Jan

Offline

#6 2005-08-05 17:11:26

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: [REQUEST] (x)eukleides

It's a namcap problem.  Namcap is a useful tool but it's not perfect. You still need to rely to the docs and common sense even if you use namcap.  Namcap doesn't realise that x-server is a depend of gtk. If you have gtk installed, you necessarily have x-server installed.

Offline

Board footer

Powered by FluxBB