Package Base Details: rust-git

Git Clone URL: https://aur.archlinux.org/rust-git.git (read-only, click to copy)
Keywords: mozilla rust
Submitter: mrshpot
Maintainer: spider-mario (ishitatsuyuki)
Last Packager: ishitatsuyuki
Votes: 26
Popularity: 0.001486
First Submitted: 2012-01-21 11:30
Last Updated: 2018-02-11 11:49

Latest Comments

« First ‹ Previous ... 6 7 8 9 10 11 12 Next › Last »

spider-mario commented on 2012-12-23 19:35

The thing is, if the .el files are copied too, then the user can install emacs after building the package and still be able to use the mode (though it will be slower than if it has been precompiled). That is the reason why only the call to make is in the if.

Anonymous comment on 2012-12-23 19:03

I'm trying it out now, but I made the following modifications:

cp -a *.elc "$pkgdir/usr/share/emacs/site-lisp/" # copy just the .elc files

It also might be useful to wrap this whole section in the if:

if which emacs > /dev/null;
cd src/etc/emacs;
make;
install --directory "$pkgdir/usr/share/emacs/site-lisp/";
cp -a *.elc "$pkgdir/usr/share/emacs/site-lisp/"
echo "enable rust-mode in emacs by adding (require 'rust-mode) to your ~/.emacs file"
fi

Something along these lines perhaps.

spider-mario commented on 2012-12-23 18:04

I’ve just given it a try, please let me know whether it works.

Anonymous comment on 2012-12-23 17:43

For emacs, you need to first build the files in the emacs directory. I'm not sure what the pre-reqs for this are (you at least need emacs installed though).

the emacs files are in src/etc/emacs. You need to run make from this directory. Then you copy all the .elc files from there to /usr/share/emacs/site-lisp/

After that you need to add (require 'rust-mode) to your ~/.emacs file (This can probably just be some post-install output for the user to act on). I'm not sure how to do all this in the PKGBUILD right now. I'll look into (and I'm testing some stuff now) and I'll hopefully get back to you with a patched PKGBUILD, but if anyone can do this quickly off the top of their head, that'd be great too :)

spider-mario commented on 2012-12-10 19:23

Done for Vim, thanks!

Unfortunately, I don’t use Emacs either, so even if I tried to do the same for the Emacs files, I wouldn’t be able to check that it works.

If someone can make it work, I’ll be glad to add it to the PKGBUILD.

thestinger commented on 2012-12-10 14:40

It would be great if you could install the Vim and Emacs files that ship with the rust source. For vim, you just need this:

mkdir -p "$pkgdir/usr/share/vim"
cp -a src/etc/vim "$pkgdir/usr/share/vim/vimfiles"

I'm unsure about what to do with the Emacs files + Makefile though, so an Emacs user will have to step forward with that info :).

mrshpot commented on 2012-10-19 07:00

Sorry, due to lack of time I'm disowning it so somebody can actually fix it.

Svenstaro commented on 2012-10-12 16:48

This PKGBUILD has a bunch of problems.

1) You are not using a packaging() function
2) You are still using || return 1
3) You are using the wrong DESTDIR
4) You are not using Maintainer or Contributor in the comment but your custom "Author"
5) You don't need the python hack anymore
6) You shouldn't manually have to copy docs (did you make an upstream bug report?)

Anonymous comment on 2012-10-12 16:06

Files are being installed in the wrong directory (/usr/usr instead of just /usr), fixed PKGBUILD: http://p.blicky.net/86t6s (only changes the DESTDIR= line).

Anonymous comment on 2012-10-12 11:39

Anybody with problems on x86_64, if so what did you do to solve this?

I am working with the official repos and python2, but at the end of the build I
have problems with packaging the documentation which kill the whole build. I've tried
modifiying the PKGBUILD with no success, any ideas?

thanks for the PKGBUILD though