Ticket #8288: Portfile.diff

File Portfile.diff, 1.6 KB (added by rsky0711@…, 18 years ago)

a patch for textproc/hyperestraier/Portfile

  • Portfile

    old new  
    3131depends_build   bin:pkg-config:pkgconfig
    3232depends_lib             port:qdbm port:libiconv port:zlib
    3333master_sites    http://hyperestraier.sourceforge.net/
    34 checksums                md5 a688ebda299a033f61321f0d70adad84 \
    35                 sha1 3c0e2e3d46b1301e6bf1dc0c5d75a6474c925e54 \
    36                 rmd160 6812098c80463f4eb548de8e248d6c71c8030dce
     34checksums       md5 91e2c859510a9e30fad8b49f6affe6f1 \
     35                sha1 e1aad3d5c1bdd758c2f118fa54450e8eccfa6129 \
     36                rmd160 2a157a685b1df8e4e8d1c9f093c447e3a188951c
    3737
    3838configure.args  --mandir=${prefix}/share/man --datadir=${prefix}/share/doc
    3939
    4040post-extract {
     41    # configure
    4142    reinplace "s|\$HOME|${prefix}|g" \
    4243        ${worksrcpath}/configure
     44    # Makefile.in
    4345    reinplace "s|\$(HOME)|${prefix}|g" \
    4446        ${worksrcpath}/Makefile.in
    4547    reinplace "s|install_name libestraier.\$(LIBVER).dylib|install_name \$(MYLIBDIR)/libestraier.\$(LIBVER).dylib|g" \
    4648        ${worksrcpath}/Makefile.in
     49    # myconf.h
     50    reinplace "s|lzo/|lzo2/|g" \
     51        ${worksrcpath}/myconf.h
    4752}
    4853
    4954test.run         yes
     
    5762    depends_lib-append      port:mecab
    5863    configure.args-append   --enable-mecab
    5964}
     65variant no-zlib {
     66    depends_lib-delete      lib:libz:zlib
     67    configure.args-append   --disable-zlib
     68}
     69variant lzo {
     70    depends_lib-append      lib:liblzo2:lzo2
     71    configure.args-append   --enable-lzo
     72}
     73variant bzip2 {
     74    depends_lib-append      lib:libbz2:bzip2
     75    configure.args-append   --enable-bzip
     76}