mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
pkgs/applications/editors/emacs-modes/bbdb: replace custom build script with standard builder
Also added most of optional contributions shipped in the release tarball to the installation. svn path=/nixpkgs/trunk/; revision=27646
This commit is contained in:
parent
5422838e56
commit
ea4daca60d
2 changed files with 14 additions and 13 deletions
|
@ -1,12 +0,0 @@
|
|||
source "$stdenv/setup" || exit 1
|
||||
|
||||
unpackPhase && \
|
||||
cd bbdb-*.* && patchPhase && \
|
||||
./configure --prefix="$out" \
|
||||
--with-package-dir="$out/share/emacs/site-lisp" && \
|
||||
make && make install-pkg && \
|
||||
mkdir -p "$out/info" && \
|
||||
make -C texinfo install-pkg && \
|
||||
mv "$out/share/emacs/site-lisp/lisp/bbdb/"* \
|
||||
"$out/share/emacs/site-lisp" && \
|
||||
rm -rf "$out/share/emacs/site-lisp/lisp"
|
|
@ -11,7 +11,20 @@ stdenv.mkDerivation {
|
|||
patches = [ ./install-infodir.patch ];
|
||||
|
||||
buildInputs = [emacs texinfo ctags];
|
||||
builder = ./builder.sh;
|
||||
configureFlags = "--with-package-dir=$$out/share/emacs/site-lisp";
|
||||
preInstall = "ensureDir $out/info";
|
||||
installTargets = "install-pkg texinfo";
|
||||
postInstall = ''
|
||||
mv $out/info $out/share/
|
||||
mv "$out/share/emacs/site-lisp/lisp/bbdb/"* $out/share/emacs/site-lisp/
|
||||
mv $out/share/emacs/site-lisp/etc/bbdb $out/share/
|
||||
rm -rf $out/share/emacs/site-lisp/{lisp,etc}
|
||||
mv bits $out/share/bbdb/
|
||||
# Make optional modules from bbdb available for import, but symlink
|
||||
# them into the site-lisp directory to make it obvious that they are
|
||||
# not a genuine part of the distribution.
|
||||
ln -s "$out/share/bbdb/bits/"*.el $out/share/emacs/site-lisp/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "The Insidious Big Brother Database (BBDB), a contact management utility for Emacs";
|
||||
|
|
Loading…
Reference in a new issue