# $Id: Portfile 65814 2010-04-01 09:20:55Z ryandesign@macports.org $ PortSystem 1.0 name eblook set ver_main 1.6.1 set ver_media 20080116 version ${ver_main}-media-${ver_media} categories textproc japanese maintainers nomaintainer description Interactive EB interface command for searching words in CD-ROM books. long_description \ Eblook supports to access CD-ROM books of EB, EBG, EBXA and EPWING \ formats which are popular in Japan. Including the media patch. platforms darwin homepage http://green.ribbon.to/~ikazuhiro/lookup/lookup.html#EBLOOK distfiles ${name}-${ver_main}${extract.suffix}:main \ ${name}-${ver_main}+media-${ver_media}.patch.gz:media master_sites http://openlab.jp/edict/eblook/dist/:main \ http://green.ribbon.to/~ikazuhiro/lookup/files/:media patchfiles patch-configure.diff checksums ${name}-${ver_main}${extract.suffix} rmd160 32c37963d2627642a5799dd2a4222c511143b8d6 \ ${name}-${ver_main}+media-${ver_media}.patch.gz rmd160 bd4d0c42b2a62bd10dd34c03ee4a5be892b691d2 depends_lib port:eb \ port:gettext \ port:libiconv \ port:ncurses \ port:readline \ port:zlib extract.only ${name}-${ver_main}${extract.suffix} worksrcdir ${name}-${ver_main} post-extract { system "cd ${worksrcpath} && gzip -dc ${distpath}/${name}-${ver_main}+media-${ver_media}.patch.gz | patch -p0" } configure.args --infodir=${prefix}/share/info \ --with-readline \ --with-pager #use_parallel_build yes #test.run yes #test.target check post-destroot { xinstall -d -m 755 ${destroot}/${prefix}/share/doc/${name} set docs {AUTHORS COPYING ChangeLog INSTALL NEWS README VERSION} foreach f ${docs} { xinstall -m 644 ${worksrcpath}/${f} ${destroot}/${prefix}/share/doc/${name} } delete ${destroot}${prefix}/share/info/dir } universal_variant no livecheck.type regex livecheck.version ${ver_main}+media-${ver_media} livecheck.regex "${name}-(\[0-9.a-z\+\-\]+).patch.gz"