You are not logged in.
During the install I need to add /usr/share/mftrace to python path. I've succeeded in the post_install. I need to remove the path on uninstall, and I don't know how to do it. Any help? The mftrace.install file is below:
post_install() {
cd /usr/share/mftrace/
import filelib
}
post_upgrade() {
/bin/true
}
pre_remove() {
/bin/true
}
op=$1
shift
$op $*
fffft!
Offline
The import command is used to take a screenshot... are you sure you're using it right and that the mftrace python scripts aren't just adding /usr/share/mftrace to the python path? In that case, it's added every time. I don't know of an easy way to add something to the python import path permanently, it's actually compiled in when you compile python.
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
OK, I'm not really sure what I'm doing.
The problem is when I install mftrace and use it (compiling ec-fonts-mftraced, or lilypond) I get an error: module afm not found. I found a response to the same question elsewhere on the web suggesting running import filelib.
It seemed to work, but I'm not sure what it's doing or if on reboot it will work. Do you know how I would resolve this?
When I get back to my house I'll post the mftrace PKGBUILD. I did upload the mftrace package to ftp.archlinux.org/incoming, if you have access.
fffft!
Offline
Here's the PKGBUILD:
# Contributor: Nathan Curry <thegnu@nathancurry.com>
pkgname=mftrace
pkgver=1.0.34
pkgrel=1
install="$pkgname.install"
pkgdesc="a small Python program that traces TeX bitmap fonts into scalable PS or TTF fonts"
url="http://www.xs4all.nl/~hanwen/mftrace/"
depends=('potrace' 'python>=2.1' 't1utils' 'tetex')
source=(http://www.cs.uu.nl/~hanwen/mftrace/$pkgname-$pkgver.tar.gz)
md5sums=('c290633ac31c29fbc6a0deeaff97e7e7')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install
}
fffft!
Offline