<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">something like,<div class=""><br class=""></div><div class=""><div class="">copy \</div><div class=""> {*}[glob ${srcdir}/*.c] \</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>{*}[glob ${srcdir}/*.h] \</div><div class=""> {*}[glob ${srcdir}/examples] \</div><div class=""> ${destroot}${prefix}/share/libreduce/src</div></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div class="">
<div class="">Mark Brethen</div><div class=""><a href="mailto:mark.brethen@gmail.com" class="">mark.brethen@gmail.com</a></div><div class=""><br class=""></div><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Oct 4, 2018, at 9:26 PM, Mark Brethen <<a href="mailto:mark.brethen@gmail.com" class="">mark.brethen@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Here is the contents of src, after build:<div class=""><br class=""></div><div class="">brethen-air:src marbre$ ls -al<br class="">total 496<br class="">drwxr-xr-x 22 macports admin 748 Oct 4 20:06 .<br class="">drwxr-xr-x 5 macports admin 170 Oct 4 20:06 ..<br class="">-rw-r--r-- 1 macports admin 3750 Feb 25 2016 Makefile.in<br class="">-rw-r--r-- 1 macports admin 7737 Mar 20 2013 RedAns.c<br class="">-rw-r--r-- 1 macports admin 2065 Feb 28 2009 RedAns.h<br class="">-rw-r--r-- 1 macports admin 2261 Feb 28 2009 RedMsg.c<br class="">-rw-r--r-- 1 macports admin 1757 Feb 28 2009 RedMsg.h<br class="">-rw-r--r-- 1 macports admin 7476 Jan 1 2010 RedProc.c<br class="">-rw-r--r-- 1 macports admin 2114 Feb 28 2009 RedProc.h<br class="">-rw-r--r-- 1 macports admin 2083 Feb 25 2016 RedPy.c<br class="">-rw-r--r-- 1 macports admin 3497 Jan 1 2010 StrBuf.c<br class="">-rw-r--r-- 1 macports admin 1960 Jan 1 2010 StrBuf.h<br class="">-rw-r--r-- 1 macports admin 9281 Jan 2 2010 ac_python_devel.m4<br class="">drwxr-xr-x 7 macports admin 238 Oct 4 20:06 autom4te.cache<br class="">lrwxr-xr-x 1 macports admin 21 Sep 20 04:46 config.guess -> ../../../config.guess<br class="">-rw-r--r-- 1 macports admin 2630 Oct 4 20:06 config.h.in<br class="">lrwxr-xr-x 1 macports admin 19 Sep 20 04:46 config.sub -> ../../../config.sub<br class="">-rwxr-xr-x 1 macports admin 159697 Oct 4 20:06 configure<br class="">-rw-r--r-- 1 macports admin 7254 Jan 2 2010 configure.ac<br class="">drwxr-xr-x 5 macports admin 170 Sep 20 04:46 examples<br class="">lrwxr-xr-x 1 macports admin 19 Sep 20 04:46 install-sh -> ../../../install-sh<br class="">-rw-r--r-- 1 macports admin 4225 Dec 2 2010 reduce.h</div><div class=""><br class=""></div><div class="">There is currently no written documentation yet. Instead, the developer suggests looking at “src/examples/lrtest.c” and "src/reduce.h”. I thought it would be good to copy the source into $destroot/$prefix/share/libreduce. Anything with today’s date isn’t necessary. Configure and makefile, as well as links aren’t necessary either.<br class=""><br class=""><div class=""><br class="webkit-block-placeholder"></div><div class=""><br class="webkit-block-placeholder"></div><div class="">
<div class="">Mark Brethen</div><div class=""><a href="mailto:mark.brethen@gmail.com" class="">mark.brethen@gmail.com</a></div><div class=""><br class=""></div><br class="Apple-interchange-newline">
</div>
<br class=""><div class=""><blockquote type="cite" class=""><div class="">On Oct 4, 2018, at 9:11 PM, Ryan Schmidt <<a href="mailto:ryandesign@macports.org" class="">ryandesign@macports.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">On Oct 4, 2018, at 21:07, Mark Brethen wrote:</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">This worked:<br class=""><br class=""> use_autoreconf yes<br class=""> autoreconf.dir ${worksrcpath}/generic/libreduce/src<br class=""><br class=""> pre-configure {<br class=""> set builddir [exec ${worksrcpath}/scripts/findhost.sh [exec ${worksrcpath}/config.guess]]<br class=""> set redbin ${prefix}/libexec/${name}/csl/reduce.app/Contents/MacOS/reduce<br class=""><br class=""> configure.dir ${worksrcpath}/generic/libreduce/${builddir}<br class=""> configure.cmd ${autoreconf.dir}/configure<br class=""> configure.args-append \<br class=""> --disable-universal \<br class=""> --with-reduce=${redbin}<br class=""><br class=""> xinstall -d ${configure.dir}<br class=""> }<br class=""><br class=""> pre-build {<br class=""> set builddir [exec ${worksrcpath}/scripts/findhost.sh [exec ${worksrcpath}/config.guess]]<br class=""> build.dir ${worksrcpath}/generic/libreduce/${builddir}<br class=""> }<br class=""><br class=""><br class="">Since the documentation is nonexistent, I’d like to copy the source to the share directory. Can you use the copy macro to copy directories to destroot, indicating individual files within to ignore?<br class=""></blockquote><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">copy installs everything you tell it to. copy doesn't have any feature for excluding items, so if you don't want to copy certain items, you'll have to somehow arrange to only call copy on the items you do want it to copy. For example, you could fs-traverse the source directory and examine the name (or other attributes) of each file to determine whether to copy it. If you tell me more about how you want to distinguish which files to copy and which files not to copy, maybe I can be more specific in my recommendation.</span></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>