[87962] trunk/dports/lang/pure/Portfile
ryandesign at macports.org
ryandesign at macports.org
Wed Dec 14 00:31:22 PST 2011
Revision: 87962
http://trac.macports.org/changeset/87962
Author: ryandesign at macports.org
Date: 2011-12-14 00:31:21 -0800 (Wed, 14 Dec 2011)
Log Message:
-----------
pure-mode.el: eliminate unnecessary dependencies by building it ourselves in the Portfile; see http://groups.google.com/group/pure-lang/browse_thread/thread/8704addfbe31b809
Modified Paths:
--------------
trunk/dports/lang/pure/Portfile
Modified: trunk/dports/lang/pure/Portfile
===================================================================
--- trunk/dports/lang/pure/Portfile 2011-12-14 07:36:51 UTC (rev 87961)
+++ trunk/dports/lang/pure/Portfile 2011-12-14 08:31:21 UTC (rev 87962)
@@ -104,18 +104,27 @@
long_description ${subport} is an ${description}.
- depends_build port:gmp \
- port:llvm-${llvm_version} \
- port:mpfr \
- port:readline
-
depends_lib port:emacs
- build {}
+ extract.post_args-append ${worksrcdir}/etc
- destroot.target install-el install-elc
+ build.dir ${worksrcpath}/etc
- post-destroot {
+ post-extract {
+ copy ${build.dir}/pure-mode.el.in ${build.dir}/pure-mode.el
+ }
+
+ use_configure no
+
+ build {
+ reinplace "s|@bindir@|${prefix}/bin|g" ${build.dir}/pure-mode.el
+ reinplace "s|@libdir@|${prefix}/lib|g" ${build.dir}/pure-mode.el
+ system -W ${build.dir} "${prefix}/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"
+ }
+
+ destroot {
+ set lispdir ${destroot}${prefix}/share/emacs/site-lisp
+ xinstall -m 644 -W ${destroot.dir} pure-mode.el pure-mode.elc ${lispdir}
set docdir ${destroot}${prefix}/share/doc/${subport}
xinstall -d ${docdir}
xinstall -m 644 ${worksrcpath}/COPYING ${docdir}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111214/25a560f5/attachment.html>
More information about the macports-changes
mailing list