Ticket #8773: qdbm-update-1.8.52.diff

File qdbm-update-1.8.52.diff, 2.8 KB (added by pelopor@…, 18 years ago)

qdbm-1.8.52

  • Portfile

    old new  
    1 # $Id: Portfile,v 1.5 2006/04/10 15:02:38 takanori Exp $
     1# $Id: $
    22
    33PortSystem              1.0
    44name                    qdbm
    5 version                 1.8.48
    6 categories              textproc
    7 maintainers             pelopor@nifty.com
     5version         1.8.52
     6categories      databases
     7maintainers     rsky0711@gmail.com pelopor@nifty.com
     8platforms       darwin
    89description             QDBM is a library of routines for managing a database.
    910long_description        \
    1011        QDBM is a library of routines for managing a database. The database is a\
     
    1314        data and character string can be used as a key and a value. There is neither\
    1415        concept of data tables nor data types. Records are organized in hash table\
    1516        or B+ tree.
    16 
    1717homepage                http://qdbm.sourceforge.net/
    18 platforms               darwin
    19 master_sites    http://qdbm.sourceforge.net/
    20 checksums                       md5 ac59de1fd23478edcb906612fe48f3b8 \
    21                                         sha1 fd5aea55ff7620c6c6947d4a3d3d576ec3c779a7 \
    22                                         rmd160 d9ae92666efe7b3c24bebde6d07ee39d4cf7bf50
     18master_sites    ${homepage}
     19checksums       md5    b8cfb79688c8cf5c4a25489e4740ec72 \
     20                sha1   7186830e38dc943a7e6fa051cc9e64591dea1c1a \
     21                rmd160 69d3f3c196038dc25b23a9b186d17b37c8e0b0c1
     22#patchfiles             patch-qdbm_def.diff
     23
    2324depends_lib             port:libiconv port:zlib
    2425
     26configure.args  --mandir=${prefix}/share/man \
     27                --datadir=${prefix}/share/doc \
     28                --enable-pthread \
     29                --enable-zlib --enable-iconv
     30
    2531post-extract    {
    2632                                #configure
    2733                                reinplace "s|\$HOME|\${prefix}|g" \
    2834                                        ${worksrcpath}/configure
    29                                 reinplace "s|/usr/local|\${prefix}|g" \
    30                                         ${worksrcpath}/configure
    3135                                # Makefile.in
    3236                                reinplace "s|\$(HOME)|\$(prefix)|g" \
    3337                                        ${worksrcpath}/Makefile.in
    34                                 reinplace "s|/usr/local/include -I/usr|\$(prefix)|g" \
    35                                         ${worksrcpath}/Makefile.in
    36                                 reinplace "s|/usr/local|\$(prefix)|g" \
    37                                         ${worksrcpath}/Makefile.in
    38                                 reinplace "s|install_name libqdbm.\$(LIBVER).dylib|install_name \$(MYLIBDIR)/libqdbm.\$(LIBVER).dylib|g" \
    39                                         ${worksrcpath}/Makefile.in
    40                                 reinplace "s|lzo/|lzo2/|g" ${worksrcpath}/myconf.c
     38    # myconf.c
     39    reinplace "s|lzo/|lzo2/|g" \
     40        ${worksrcpath}/myconf.c
    4141                                }
    4242
    43 configure.args  --mandir=${prefix}/share/man \
    44                                         --datadir=${prefix}/share/doc \
    45                                         --enable-pthread \
    46                                         --enable-zlib --enable-icon --enable-iconv
    47 
    4843test.run yes
    4944
    5045platform macosx   {
     
    5348                                destroot.target install-mac
    5449}
    5550
    56 platform darwin 8 {
    57                 configure.env CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
    58 }
    59 
    6051variant debug {
    6152                configure.args-append   --enable-debug
    6253}
     54
    6355variant bzip2 {
    6456                depends_lib-append      port:bzip2
    6557                configure.args-append   --enable-bzip
    6658}
     59
    6760variant lzo {
    6861                depends_lib-append      port:lzo2
    6962                configure.args-append   --enable-lzo