Ticket #36260: TOra.diff

File TOra.diff, 2.5 KB (added by ryandesign (Ryan Carsten Schmidt), 12 years ago)

proposed patch

  • Portfile

     
    66
    77name                    TOra
    88version                 2.1.3
    9 revision                2
     9revision                3
    1010description             GUI tool for Oracle, PostgreSQL, and MySQL
    1111long_description        Database developer/DBA frontend for various DB servers.
    1212maintainers             scribus.info:petr
     
    2525# WARNING: postgresql83 is there due to qt4-mac's dependency on it.
    2626# It's dangerous to mix library versions in one binary. It's required
    2727# to spot qt4-mac's dependencies' version bumps.
    28 depends_lib             port:qscintilla \
    29                         port:oracle-instantclient
     28depends_lib             port:qscintilla
    3029
    3130patchfiles              patch-osx_tools-Info.plist.in.diff
    3231
     
    3736                        -DCMAKE_INCLUDE_PATH=${prefix}/include \
    3837                        -DUSE_PCH=0 \
    3938                        -Dmacports_prefix=${prefix} \
    40                         -DORACLE_PATH_INCLUDES=${prefix}/lib/oracle/sdk/include \
    41                         -DORACLE_PATH_LIB=${prefix}/lib/oracle \
    4239                        -DWANT_BUNDLE=1 \
    4340                        -DWANT_BUNDLE_STANDALONE=0 \
    4441                        -DWANT_RPM=0 \
    4542                        -DWANT_INTERNAL_QSCINTILLA=0 \
    4643                        -DENABLE_DB2=0 \
     44                        -DENABLE_ORACLE=0 \
    4745                        ${qt_cmake_defines} .
    4846
    4947
     
    8583
    8684#
    8785# Oracle
    88 variant no_oracle description {Disable support for Oracle} {
    89     depends_lib-delete          port:oracle-instantclient
    90     configure.pre_args-append   -DENABLE_ORACLE=0
     86variant no_oracle conflicts oracle description {Legacy compatibility variant} {}
     87variant oracle conflicts no_oracle description {Enable support for Oracle} {
     88    depends_lib-append          port:oracle-instantclient
     89    configure.args-delete       -DENABLE_ORACLE=0
     90    configure.args-append       -DENABLE_ORACLE=1 \
     91                                -DORACLE_PATH_INCLUDES=${prefix}/lib/oracle/sdk/include \
     92                                -DORACLE_PATH_LIB=${prefix}/lib/oracle \
    9193}
     94if {[variant_isset no_oracle]} {
     95    default_variants -oracle
     96} else {
     97    default_variants +oracle
     98}
     99if {[variant_isset oracle] && ${os.platform} == "darwin" && ${os.major} > 10} {
     100    # oracle-instantclient 10.2.0.4.0 crashes in 64-bit mode on Lion and up.
     101    supported_archs i386
     102}
    92103
    93104#
    94105# Debug