Ignore:
Timestamp:
Jun 10, 2012, 5:36:22 PM (8 years ago)
Author:
jmr@…
Message:

boxes: put emacs variant code inside the variant itself, and add a description

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/boxes/Portfile

    r94151 r94152  
    2424use_configure           no
    2525
    26 variant emacs           {}
     26variant emacs description {Install boxes.el for running inside emacs} {
     27        post-destroot {
     28                xinstall -m 755 -d ${destroot}${prefix}/share/emacs/site-lisp/${name}
     29                xinstall -m 644 ${worksrcpath}/doc/boxes.el ${destroot}${prefix}/share/emacs/site-lisp/${name}/
     30        }
     31}
    2732
    2833post-patch              { reinplace "s|GLOBALCONF = /usr/share/boxes|GLOBALCONF = ${prefix}/share/boxes|" "${worksrcpath}/Makefile" }
     
    3742                        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    3843                        xinstall -m 644 -W ${worksrcpath} COPYING README README.Win32.txt boxes-config ${destroot}${prefix}/share/doc/${name}
    39 
    40                         if { [variant_isset emacs] } {
    41                                 xinstall -m 755 -d ${destroot}${prefix}/share/emacs/site-lisp/${name}
    42                                 xinstall -m 644 ${worksrcpath}/doc/boxes.el ${destroot}${prefix}/share/emacs/site-lisp/${name}/
    43                         }
    4444}
Note: See TracChangeset for help on using the changeset viewer.