Changeset 98598
- Timestamp:
- Oct 9, 2012, 3:40:47 PM (12 years ago)
- Location:
- trunk/dports/textproc/irstlm
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/textproc/irstlm/Portfile
r98272 r98598 6 6 name irstlm 7 7 version 5.80.01 8 revision 18 revision 2 9 9 categories textproc math 10 10 maintainers hum openmaintainer … … 31 31 depends_build port:autoconf port:automake port:libtool 32 32 33 # binaries and scripts are installed at ${libexec_dir}. 34 set libexec_dir ${prefix}/libexec/${name} 35 36 # replace the value of the IRSTLM environmental variable with ${libexec_dir}. 37 patchfiles patch-scripts.diff 38 39 post-patch { 40 foreach f {build-lm-qsub.sh build-lm.sh lm-stat.pl split-ngt.sh} { 41 reinplace "s|@libexec_dir@|${libexec_dir}|g" ${worksrcpath}/scripts/${f} 42 } 43 } 44 33 45 universal_variant no 34 46 … … 39 51 # install include files at ${prefix}/include/${name} to avoid conflicts with other builds. 40 52 # e.g. mosesdecoder 41 configure.args --includedir=${prefix}/include/${name} 53 configure.args --includedir=${prefix}/include/${name} \ 54 --bindir=${libexec_dir} \ 55 --enable-caching 42 56 43 57 compiler.blacklist clang 44 58 45 59 post-destroot { 46 foreach f [glob -directory ${destroot}${prefix}/bin -type f *] { 60 # fix permissions of the binaries and scripts. 61 foreach f [glob -directory ${destroot}${libexec_dir} -type f *] { 47 62 file attributes ${f} -permissions 0755 48 63 } 64 # install additional documents. 65 set doc_dir ${prefix}/share/doc/${name} 66 xinstall -d ${destroot}${doc_dir} 67 xinstall -m 644 -W ${worksrcpath} \ 68 Copyright README RELEASE \ 69 ${destroot}${doc_dir} 49 70 } 50 71
Note: See TracChangeset
for help on using the changeset viewer.