You are not logged in.

#1 2006-11-03 17:47:15

jinn
Member
From: Gothenburg
Registered: 2005-12-10
Posts: 506

gjiten request

Can someone please add this package: gjiten.

Gjiten is a Japanese dictionary program for GNOME.
Gjiten also has a kanji dictionary. Any combination of stroke count, radicals and search key can be used for kanji lookups.


The ultimate Archlinux release name: "I am your father"

Offline

#2 2006-11-03 19:16:00

jinn
Member
From: Gothenburg
Registered: 2005-12-10
Posts: 506

Re: gjiten request

tried out making a pkgbuild for the first time.. but cant figure out why compiling gjiten I get this error:

ead-2.0 -lglib-2.0
make[2]: Leaving directory `/root/gjiten/test/src/gjiten-2.6/src'
Making all in data
make[2]: Entering directory `/root/gjiten/test/src/gjiten-2.6/data'
LC_ALL=C ../intltool-merge -s -u -c ../po/.intltool-merge-cache ../po gjiten.schemas.in gjiten.schemas
LC_ALL=C ../intltool-merge -s -u -c ../po/.intltool-merge-cache ../po gjiten-dicfiles.schemas.in gjiten-dicfiles.schemas
Generating and caching the translation database
Generating and caching the translation database
Merging translations into gjiten-dicfiles.schemas.
Merging translations into gjiten.schemas.
make[2]: Leaving directory `/root/gjiten/test/src/gjiten-2.6/data'
Making all in help
make[2]: Entering directory `/root/gjiten/test/src/gjiten-2.6/help'
Making all in C
make[3]: Entering directory `/root/gjiten/test/src/gjiten-2.6/help/C'
for file in gjiten-C.omf; do 
          scrollkeeper-preinstall /usr/share/gnome/help/gjiten/C/gjiten.xml ./$file $file.out; 
        done
xmlto txt gjiten.xml
touch omf_timestamp
No way to convert HTML to text found.
make[3]: *** [../../README] Error 1
make[3]: Leaving directory `/root/gjiten/test/src/gjiten-2.6/help/C'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/gjiten/test/src/gjiten-2.6/help'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/gjiten/test/src/gjiten-2.6'
make: *** [all] Error 2

The ultimate Archlinux release name: "I am your father"

Offline

#3 2006-11-03 20:50:40

tardo
Member
Registered: 2006-07-15
Posts: 526

Re: gjiten request

post your PKGBUILD

Offline

#4 2006-11-03 22:03:19

jinn
Member
From: Gothenburg
Registered: 2005-12-10
Posts: 506

Re: gjiten request

its not the pkgbuild.. i downloaded the source, ran .configure, then make.
If i cant compile it through manual way, it wouldnt compile with the pkgbuild anyway. When it compiles without error, i will finish the pkgbuild for it.


The ultimate Archlinux release name: "I am your father"

Offline

#5 2006-11-03 22:47:18

jinn
Member
From: Gothenburg
Registered: 2005-12-10
Posts: 506

Re: gjiten request

made a pkgbuild for kanjipad, which is used with gjiten.
http://aur.archlinux.org/packages.php?d … hans=&SeB=


The ultimate Archlinux release name: "I am your father"

Offline

#6 2006-11-03 22:48:31

tardo
Member
Registered: 2006-07-15
Posts: 526

Re: gjiten request

well, gimme a few hours to get back home and i'll try installing it myself.

Offline

#7 2006-11-04 02:35:06

tardo
Member
Registered: 2006-07-15
Posts: 526

Re: gjiten request

# Contributor: tardo <tardo>

pkgname=gjiten
pkgver=2.6
pkgrel=1
pkgdesc="Gjiten is a Japanese dictionary program for GNOME"
url="http://gjiten.sourceforge.net/"
license="GPL"
depends=('gtk2')
makedepends=('lynx' 'xmlto' 'perlxml')
source=(http://gjiten.sourceforge.net/$pkgname-$pkgver.tar.gz
        'http://ftp.cc.monash.edu.au/pub/nihongo/edict.gz'
        'http://ftp.cc.monash.edu.au/pub/nihongo/kanjidic.gz')
md5sums=('44a5d9640e37d8b0547f9c7e3d7ac67a'
         'fbbba3225ce5dcd7cf694613168185ef'
         'b0cc30caa6d8c61b20990222074bd974')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
  cd $startdir/src
  iconv -f EUC-JP -t UTF-8 edict -o edict.utf8
  iconv -f EUC-JP -t UTF-8 kanjidic -o kanjidic.utf8
  mkdir -p $startdir/pkg/usr/share/gjiten/dics
  mv edict.utf8 $startdir/pkg/usr/share/gjiten/dics/
  mv kanjidic.utf8 $startdir/pkg/usr/share/gjiten/dics/
}

Adds two basic dictionaries to /usr/share/gjiten/dics : edict and kanjidic. You still have to manually set the dictionaries in preferences. If it works for you, add it to the AUR (and vote for it)!

Offline

#8 2006-11-04 08:32:33

jinn
Member
From: Gothenburg
Registered: 2005-12-10
Posts: 506

Re: gjiten request

Thx.. it works just fine.. Just one thing I dont understand about making pkgbuilds. How do I know which makedependancies it requires? I did not have lynx and therefor it didnt compile for me..

Will definitively vote for it.


The ultimate Archlinux release name: "I am your father"

Offline

#9 2006-11-04 09:16:36

jinn
Member
From: Gothenburg
Registered: 2005-12-10
Posts: 506

Re: gjiten request

It think for it to work fully you need to make the perlscript run also, which sets alot of gconf settings besides downloading the dictionary files.


The ultimate Archlinux release name: "I am your father"

Offline

#10 2006-11-04 13:53:53

Slash
Member
Registered: 2005-04-19
Posts: 66
Website

Re: gjiten request

jinn wrote:

Thx.. it works just fine.. Just one thing I dont understand about making pkgbuilds. How do I know which makedependancies it requires? I did not have lynx and therefor it didnt compile for me..

There are two ways-

1) Check the program's website or README files to see which programs are required.

2) Use the "namcap" program in the extra repository. Simply run "namcap <built_package>" and it will analyze it for problems. For just depends, run "namcap -r depends <built_package>". Note that namcap is extremely useful, but doesn't always know all the required programs.

I would recommend doing both when making a PKGBUILD to cover all your bases.

EDIT: Er, wait. You said makedepends. Doh. Well, in that case, you only have option #1 available to you wink

Offline

#11 2006-11-04 15:28:00

tardo
Member
Registered: 2006-07-15
Posts: 526

Re: gjiten request

namcap wasn't really helpful so I had to google the error make was giving tongue

and i didn't include perlscript because I'm not running the perl script neither am I changing any gconf settings. once u start the program, go to prefs and select the dictionary and it'll automagically update ur gconf settings.
I WAS going to make a patch that'll do it automatically, but I ran out of time (and now my homework has crossed the deadlne) but I'll look into that sometime.

Offline

#12 2008-07-03 16:25:07

VincentV
Member
Registered: 2006-12-18
Posts: 31

Re: gjiten request

Hi,
Wow I wanna try gjiten & kanjipad.  But trying to makepkg gjiten, I got errors saying the md5sums checks failed for edict.gz & kanjidic.gz....   Can anyone set me straight how to do this?  Thanks!


VincentV
Somewhere in J-Pop Heaven...

Offline

#13 2008-07-04 10:25:10

catwell
Member
From: Bretagne, France
Registered: 2008-02-20
Posts: 207
Website

Re: gjiten request

That's normal since these files are updated quite often. Just update the md5sums in the PKGBUILD accordingly or even delete them (this will issue a warning but the build process will continue).

Offline

Board footer

Powered by FluxBB