You are not logged in.

#1 2008-03-19 18:35:25

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

[Request] - Codebrowser editor

Hi,
Could someone create a PKGBUILD for the Codebrowser editor, http://code-browser.sourceforge.net/index.html.  I failed as the source tried to install into /usr/bin as a user, during makepkg.
Thanks,
Cotton

Offline

#2 2008-03-19 20:01:14

Purch
Member
From: Finland
Registered: 2006-02-23
Posts: 229

Re: [Request] - Codebrowser editor

This one works. You should create desktop file as it is not included etc and I was too lazy smile Maybe I will fix it soon. Code-browser looks nice. Thank you for sharing this.

# Contributor: Arto Puranen <purcher@gmail.com>

pkgname=code-browser
pkgver=3.0
pkgrel=8
pkgdesc="Code Browser is a folding text editor, designed to hierarchically structure any kind of text file and especially source code."
arch=(i686)
url="http://code-browser.sourceforge.net/index.html"
license=('GPL')
depends=(gtk2)
source=(http://surfnet.dl.sourceforge.net/sourceforge/code-browser/$pkgname-$pkgver-src.tar.gz)

build() {
  cd "$srcdir/$pkgname-$pkgver"

  sed -i 's|/local||' Makefile
  sed -i '/INSTALL/ s|\$(bindir)|\$(DESTDIR)&|' Makefile
  sed -i '/INSTALL/ s|\$(CONFIGDIR)|\$(DESTDIR)&|' Makefile
  mkdir -p $startdir/pkg/usr/bin
  make || return 1
  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et:
md5sums=('a3ab418148a224b98c9d363973030568')

edit: preferences do not work yet.
edit2: now it works
edit3: added to AUR http://aur.archlinux.org/packages.php?ID=15812

Last edited by Purch (2008-03-20 01:48:54)

Offline

#3 2008-03-19 23:06:50

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: [Request] - Codebrowser editor

Many thanks for the PKGBUILD Purch - just the job.

Just one small glitch with release 5 - when the pkg & src directories are deleted after build, the schema fails as it is looking to ./pkg/usr/share/code-browser-3/config-default/preferences.cbc for the options/preferences.

Offline

#4 2008-03-20 01:47:32

Purch
Member
From: Finland
Registered: 2006-02-23
Posts: 229

Re: [Request] - Codebrowser editor

I cleand up the PKGBUILD, but still shemes won't work. How did you find that wrong path?

Offline

#5 2008-03-20 06:29:09

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: [Request] - Codebrowser editor

After deleting the pkg & src directories, clicking on Tools > Options (and/or Preferences) shows the error.
Text is shown as white on black, rather than black on white.

With pkg & src present, they open in new tabs.

EDIT: Release 8 appears to have fixed this big_smile

Last edited by Cotton (2008-03-20 06:34:00)

Offline

#6 2008-03-20 09:37:43

Purch
Member
From: Finland
Registered: 2006-02-23
Posts: 229

Re: [Request] - Codebrowser editor

Cotton can you change the scheme in tools / options /Display / theme ?

Offline

#7 2008-03-21 13:53:06

Cotton
Member
From: Cornwall, UK
Registered: 2004-09-17
Posts: 568

Re: [Request] - Codebrowser editor

No.  I tried putting eclipse & eclipse-fixed in the Display Schemes section in Tools > Options (as copied from the same section in Tools > Preferences) but it responded with:

~/.code-browser-3/config/preferences.cbc:236: expecting '=' but found ''

I've reverted to the default to stop this error appearing when opening a file.

Offline

#8 2008-03-25 14:00:16

Purch
Member
From: Finland
Registered: 2006-02-23
Posts: 229

Re: [Request] - Codebrowser editor

It works now, in options / display just put

theme = eclipse

Offline

Board footer

Powered by FluxBB