You are not logged in.

#1 2005-07-17 22:40:27

allanon
Member
From: Enschede, The Netherlands
Registered: 2004-02-10
Posts: 52

[REQUEST] Gramps 2.0.x

Website quote: "GRAMPS is a genealogy program for Linux and other UNIX-like systems. The GRAMPS name stands for Genealogical Research and Analysis Management Programming System." - http://gramps-project.org/

Earlier a Gramps 1.x PKGBUILD was posted, and all was well, it could be adapted to every release in the 1.x series. I later tried adapting it to Gramps 2, but did not have any success.

Do anyone feel like giving it a go, or maybe even has the PKGBUILD lying around?

[/url]

Offline

#2 2005-07-18 00:13:41

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: [REQUEST] Gramps 2.0.x

i made this PKGBUILD in five minutes, so it might need some tweaks. it seems to build and run fine but I'm not used to using this app so let me know if anything needs work.

# Contributed by iBertus <howard.rob@gmail.com>

pkgname=gramps
pkgver=2.0.5
pkgrel=1
pkgdesc="GRAMPS is a genealogy program for Linux and other UNIX-like systems."
url="http://gramps-project.org"
license=""
depends=('pygtk' 'gnome-python')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://easynews.dl.sourceforge.net/sourceforge/gramps/$pkgname-$pkgver.tar.gz)
md5sums=('87e6ad11f18a83dcd91fb12b947b2cc0')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/opt/gnome
  make || return 1
  make DESTDIR=$startdir/pkg install


}

Offline

#3 2005-07-18 21:04:16

allanon
Member
From: Enschede, The Netherlands
Registered: 2004-02-10
Posts: 52

Re: [REQUEST] Gramps 2.0.x

Hi, thank you very much!  Seems like my PKGBUILD was not the problem, then. When starting the program, I get "Configuration/Installation error. The gconf schemas were not found. First, try executing 'pkill gconfd' and try starting gramps again. If this does not help then the schemas were not properly installed. If you have not done 'make install' or if you installed. If you have not done 'make install' or if you installed without being root, this is most likely a cause of the problem. Please read the INSTALL file in the top-level source directory."

I have python/gnome-python/pygtk2/gnome-common installed, but it miiight seem like I have to install the full Gnome sad

Trying that now, will let you know how it went.

Offline

#4 2005-07-18 23:19:34

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

Re: [REQUEST] Gramps 2.0.x

I've made an gramps.install file based on the one from totem. It seems to work fine now.

# Contributed by iBertus <howard.rob@gmail.com>

pkgname=gramps
pkgver=2.0.5
pkgrel=1
pkgdesc="GRAMPS is a genealogy program for Linux and other UNIX-like systems."
url="http://gramps-project.org"
license=""
depends=('pygtk' 'gnome-python')
makedepends=()
conflicts=()
replaces=()
backup=()
install=gramps.install
source=(http://dl.sourceforge.net/sourceforge/gramps/$pkgname-$pkgver.tar.gz)
md5sums=('87e6ad11f18a83dcd91fb12b947b2cc0')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/opt/gnome 
  make || return 1
  make DESTDIR=$startdir/pkg install
}

gramps.install

pkgname=gramps

post_install() {
  schemas=(`pacman -Ql $pkgname | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }'`)
  scrolls=(`pacman -Ql $pkgname | grep 'share/omf/.*.omf$' | awk '{ print $2 }'`)

  export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source`
  for schema in "${schemas[@]}" ; do
    opt/gnome/bin/gconftool-2 --makefile-install-rule "$schema" >/dev/null 2>&1
  done

  for scroll in "${scrolls[@]}" ; do
    scrollkeeper-install -q -p var/lib/scrollkeeper "$scroll"
  done

  kill -s HUP `pidof /opt/gnome/bin/gconfd-2` > /dev/null 2>&1
  update-desktop-database -q
  update-mime-database opt/gnome/share/mime > /dev/null 2>&1

}

pre_upgrade() {
  pre_remove $1
}

post_upgrade() {
  post_install $1
}

pre_remove() {
  schemas=(`pacman -Ql $pkgname | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }'`)
  scrolls=(`pacman -Ql $pkgname | grep 'share/omf/.*.omf$' | awk '{ print $2 }'`)

  export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source`
  for schema in "${schemas[@]}" ; do
    opt/gnome/bin/gconftool-2 --makefile-uninstall-rule "$schema" >/dev/null 2>&1
  done

  for scroll in "${scrolls[@]}" ; do
    scrollkeeper-uninstall -q -p var/lib/scrollkeeper "$scroll"
  done

  kill -s HUP `pidof /opt/gnome/bin/gconfd-2` >/dev/null 2>&1
}

post_remove() {
  update-desktop-database -q
  update-mime-database opt/gnome/share/mime > /dev/null 2>&1
}

op=$1
shift

$op $*

Offline

#5 2005-07-19 05:41:28

allanon
Member
From: Enschede, The Netherlands
Registered: 2004-02-10
Posts: 52

Re: [REQUEST] Gramps 2.0.x

Gnome solved no problems, Snowman did, thanks a lot smile
This is a neat little program. I've managed to find ancestors as far back as 1600 now. Old school wink

Offline

#6 2005-07-19 06:51:10

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

Re: [REQUEST] Gramps 2.0.x

Cool 8)

Offline

#7 2005-07-21 05:05:17

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: [REQUEST] Gramps 2.0.x

thanks for the fix snowman. i forgot about doing all that post-install stuff :oops:

Offline

Board footer

Powered by FluxBB