Install pure-mode.el without pure's dependencies

6 views
Skip to first unread message

Ryan Schmidt

unread,
Dec 14, 2011, 1:39:48 AM12/14/11
to pure...@googlegroups.com
I'd like to be able to install pure-mode.el without needing to have pure or its dependencies (like llvm, mpfr, gmp, readline) installed. Is there a good way to do that? Currently I'm running the configure script and it's saying:

checking for __gmpz_init in -lgmp... no
configure: error: Cannot find the GMP library, please install libgmp or libmpir.

And I shouldn't have to install those just to get pure-mode.el.


Albert Graef

unread,
Dec 14, 2011, 2:09:34 AM12/14/11
to pure...@googlegroups.com

Here are the steps that make does to build pure-mode.el and
pure-mode.elc. These are very unlikely to change, so you can just run
them manually in your build script. Just replace /usr/local with
whatever your installation prefix is in MacPorts. Omit the last command
if you only need the pure-mode.el file and don't care about the
corresponding bytecode.

# sed -e 's,@bindir\@,/usr/local/bin,g' -e
's,@libdir\@,/usr/local/lib,g' ./etc/pure-mode.el.in > etc/pure-mode.el.tmp
# mv etc/pure-mode.el.tmp etc/pure-mode.el
# cd etc && /usr/bin/emacs -q --no-site-file -batch -eval "(add-to-list
'load-path \".\")" -eval "(setq byte-compile-warnings '(callargs
free-vars noruntime redefine))" -f batch-byte-compile pure-mode.el

Albert

--
Dr. Albert Gr"af
Dept. of Music-Informatics, University of Mainz, Germany
Email: Dr.G...@t-online.de, a...@muwiinfa.geschichte.uni-mainz.de
WWW: http://www.musikinformatik.uni-mainz.de/ag

Albert Graef

unread,
Dec 14, 2011, 2:17:15 AM12/14/11
to pure...@googlegroups.com
On 12/14/2011 08:09 AM, Albert Graef wrote:
> # sed -e 's,@bindir\@,/usr/local/bin,g' -e
> 's,@libdir\@,/usr/local/lib,g' ./etc/pure-mode.el.in > etc/pure-mode.el.tmp
> # mv etc/pure-mode.el.tmp etc/pure-mode.el
> # cd etc && /usr/bin/emacs -q --no-site-file -batch -eval "(add-to-list
> 'load-path \".\")" -eval "(setq byte-compile-warnings '(callargs
> free-vars noruntime redefine))" -f batch-byte-compile pure-mode.el

Obviously you can simplify this to:

# sed -e 's,@bindir\@,/usr/local/bin,g' -e

's,@libdir\@,/usr/local/lib,g' ./etc/pure-mode.el.in > etc/pure-mode.el


# cd etc && /usr/bin/emacs -q --no-site-file -batch -eval "(add-to-list
'load-path \".\")" -eval "(setq byte-compile-warnings '(callargs
free-vars noruntime redefine))" -f batch-byte-compile pure-mode.el

--

Ryan Schmidt

unread,
Dec 14, 2011, 7:48:08 PM12/14/11
to pure...@googlegroups.com
Thank you, Albert. Doing this now in MacPorts.


Reply all
Reply to author
Forward
0 new messages