diff options
Diffstat (limited to 'pkgs/applications/editors/emacs-modes')
3 files changed, 62 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs-modes/bbdb/builder.sh b/pkgs/applications/editors/emacs-modes/bbdb/builder.sh new file mode 100644 index 00000000000..b860adbb745 --- /dev/null +++ b/pkgs/applications/editors/emacs-modes/bbdb/builder.sh @@ -0,0 +1,12 @@ +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" diff --git a/pkgs/applications/editors/emacs-modes/bbdb/default.nix b/pkgs/applications/editors/emacs-modes/bbdb/default.nix new file mode 100644 index 00000000000..3799d0a0f1b --- /dev/null +++ b/pkgs/applications/editors/emacs-modes/bbdb/default.nix @@ -0,0 +1,22 @@ +{stdenv, fetchurl, emacs, texinfo, ctags}: + +stdenv.mkDerivation { + name = "bbdb-2.35"; + + src = fetchurl { + url = http://bbdb.sourceforge.net/bbdb-2.35.tar.gz; + sha256 = "3fb1316e2ed74d47ca61187fada550e58797467bd9e8ad67343ed16da769f916"; + }; + + patches = [ ./install-infodir.patch ]; + + buildInputs = [emacs texinfo ctags]; + builder = ./builder.sh; + + meta = { + description = ''The Insidious Big Brother Database (BBDB), a + contact management utility for Emacs.''; + homepage = http://bbdb.sourceforge.net/; + license = "GPL"; + }; +} diff --git a/pkgs/applications/editors/emacs-modes/bbdb/install-infodir.patch b/pkgs/applications/editors/emacs-modes/bbdb/install-infodir.patch new file mode 100644 index 00000000000..31ae6b26698 --- /dev/null +++ b/pkgs/applications/editors/emacs-modes/bbdb/install-infodir.patch @@ -0,0 +1,28 @@ +--- bbdb-2.35/texinfo/Makefile.in 2001-11-20 09:00:12.000000000 +0100 ++++ bbdb-2.35/texinfo/Makefile.in 2008-02-20 12:07:36.000000000 +0100 +@@ -27,22 +27,22 @@ all: info bbdb.dvi + install-pkg: uninstall-pkg info + @if test "x$(SYMLINKS)" = "xno" ; then \ + for i in `ls bbdb.info* ` ; do \ +- $(INSTALL_DATA) $$i $(PACKAGEDIR)/info/ ; \ ++ $(INSTALL_DATA) $$i $(infodir)/ ; \ + done ; \ + else \ + if test "x$(LINKPATH)" = "x" ; then \ + for i in `ls bbdb.info* ` ; do \ +- $(LN_S) `pwd`/$$i $(PACKAGEDIR)/info/$$i ; \ ++ $(LN_S) `pwd`/$$i $(infodir)/$$i ; \ + done ; \ + else \ + for i in `ls bbdb.info* ` ; do \ +- $(LN_S) $(LINKPATH)/texinfo/$$i $(PACKAGEDIR)/info/$$i ; \ ++ $(LN_S) $(LINKPATH)/texinfo/$$i $(infodir)/$$i ; \ + done ; \ + fi ; \ + fi + + uninstall-pkg: +- -$(RM) $(PACKAGEDIR)/info/bbdb.info* ++ -$(RM) $(infodir)/bbdb.info* + + info: bbdb.info |