[94152] trunk/dports/textproc/boxes/Portfile
jmr at macports.org
jmr at macports.org
Sun Jun 10 10:36:23 PDT 2012
Revision: 94152
https://trac.macports.org/changeset/94152
Author: jmr at macports.org
Date: 2012-06-10 10:36:22 -0700 (Sun, 10 Jun 2012)
Log Message:
-----------
boxes: put emacs variant code inside the variant itself, and add a description
Modified Paths:
--------------
trunk/dports/textproc/boxes/Portfile
Modified: trunk/dports/textproc/boxes/Portfile
===================================================================
--- trunk/dports/textproc/boxes/Portfile 2012-06-10 17:30:58 UTC (rev 94151)
+++ trunk/dports/textproc/boxes/Portfile 2012-06-10 17:36:22 UTC (rev 94152)
@@ -23,7 +23,12 @@
use_configure no
-variant emacs {}
+variant emacs description {Install boxes.el for running inside emacs} {
+ post-destroot {
+ xinstall -m 755 -d ${destroot}${prefix}/share/emacs/site-lisp/${name}
+ xinstall -m 644 ${worksrcpath}/doc/boxes.el ${destroot}${prefix}/share/emacs/site-lisp/${name}/
+ }
+}
post-patch { reinplace "s|GLOBALCONF = /usr/share/boxes|GLOBALCONF = ${prefix}/share/boxes|" "${worksrcpath}/Makefile" }
build.target
@@ -36,9 +41,4 @@
xinstall ${worksrcpath}/doc/boxes.1 ${destroot}${prefix}/share/man/man1/
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} COPYING README README.Win32.txt boxes-config ${destroot}${prefix}/share/doc/${name}
-
- if { [variant_isset emacs] } {
- xinstall -m 755 -d ${destroot}${prefix}/share/emacs/site-lisp/${name}
- xinstall -m 644 ${worksrcpath}/doc/boxes.el ${destroot}${prefix}/share/emacs/site-lisp/${name}/
- }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120610/2af99b41/attachment.html>
More information about the macports-changes
mailing list