From df06769c782686f35df7b23d0d37f9a3260343de Mon Sep 17 00:00:00 2001 From: pgollucci Date: Tue, 18 Aug 2015 20:00:28 +0000 Subject: databases/tora: use OPTIONS helpers - Use OPTIONS helpers where possible. - Drop qt4-linguist dependency - the port does not use it (and it already contains prebuilt translations). - Regenerate patches. PR: 201724 Submitted by: s3erios@gmail.com --- databases/tora/Makefile | 33 ++++++++-------------- databases/tora/files/patch-config_m4_oracle.m4 | 6 ++-- databases/tora/files/patch-configure | 6 ++-- databases/tora/files/patch-configure.ac | 6 ++-- databases/tora/files/patch-doc_Makefile.am | 6 ++-- databases/tora/files/patch-doc_help_tora.texi | 6 ++-- databases/tora/files/patch-src_Makefile.am | 8 +++--- databases/tora/files/patch-src_toextract.cpp | 2 +- databases/tora/files/patch-src_toextract.h | 10 ++++--- .../tora/files/patch-src_tooracleconnection.cpp | 6 ++-- databases/tora/files/patch-src_topiechart.h | 4 +-- databases/tora/files/patch-src_toreport.cpp | 2 +- 12 files changed, 44 insertions(+), 51 deletions(-) diff --git a/databases/tora/Makefile b/databases/tora/Makefile index 057ff5dcfe14..bb6b263acaf1 100644 --- a/databases/tora/Makefile +++ b/databases/tora/Makefile @@ -3,7 +3,7 @@ PORTNAME= tora PORTVERSION= 2.1.3 -PORTREVISION= 9 +PORTREVISION= 10 PORTEPOCH= 1 CATEGORIES= databases MASTER_SITES= SF @@ -21,7 +21,7 @@ OPTIONS_DEFINE= PGSQL MYSQL DOCS OPTIONS_DEFINE_i386= ORACLE OPTIONS_DEFAULT= PGSQL MYSQL -USE_QT4= gui corelib sql xml network linguist moc_build uic_build rcc_build +USE_QT4= corelib gui sql xml network moc_build uic_build rcc_build USES= autoreconf gmake libtool makeinfo GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-pcre=${LOCALBASE} @@ -30,29 +30,20 @@ INSTALL_TARGET= install-strip PREFIX2FIX= doc/help/preferences.texi doc/help/preferences.html -.include - -.if ${PORT_OPTIONS:MDOCS} -USES+= makeinfo -INFO= tora -.endif - -.if ${PORT_OPTIONS:MMYSQL} -RUN_DEPENDS+= ${QT_PLUGINDIR}/sqldrivers/libqsqlmysql.so:${PORTSDIR}/databases/qt4-mysql-plugin -.endif +DOCS_USES= makeinfo +DOCS_INFO= tora -.if ${PORT_OPTIONS:MPGSQL} -RUN_DEPENDS+= ${QT_PLUGINDIR}/sqldrivers/libqsqlpsql.so:${PORTSDIR}/databases/qt4-pgsql-plugin -.endif - -.if ${PORT_OPTIONS:MORACLE} -BUILD_DEPENDS+= ${ORACLE_HOME}/lib/libclntsh.a:${PORTSDIR}/databases/oracle8-client -RUN_DEPENDS+= ${ORACLE_HOME}/network/admin/tnsnames.ora:${PORTSDIR}/databases/oracle8-client +MYSQL_RUN_DEPENDS= ${QT_PLUGINDIR}/sqldrivers/libqsqlmysql.so:${PORTSDIR}/databases/qt4-mysql-plugin +PGSQL_RUN_DEPENDS= ${QT_PLUGINDIR}/sqldrivers/libqsqlpsql.so:${PORTSDIR}/databases/qt4-pgsql-plugin ORACLE_HOME?= ${LOCALBASE}/oracle8-client ORACLE_VER= 8i # Client version -CONFIGURE_ARGS+= --with-oracle=${ORACLE_HOME} --with-oci-version=${ORACLE_VER:tu} -.endif + +ORACLE_BUILD_DEPENDS= ${ORACLE_HOME}/lib/libclntsh.a:${PORTSDIR}/databases/oracle8-client +ORACLE_RUN_DEPENDS= ${ORACLE_HOME}/network/admin/tnsnames.ora:${PORTSDIR}/databases/oracle8-client +ORACLE_CONFIGURE_ON= --with-oracle=${ORACLE_HOME} --with-oci-version=${ORACLE_VER:tu} + +.include post-patch: .if ${PORT_OPTIONS:MDOCS} diff --git a/databases/tora/files/patch-config_m4_oracle.m4 b/databases/tora/files/patch-config_m4_oracle.m4 index 7264b7f6ad3b..e092d415367f 100644 --- a/databases/tora/files/patch-config_m4_oracle.m4 +++ b/databases/tora/files/patch-config_m4_oracle.m4 @@ -1,6 +1,6 @@ ---- config/m4/oracle.m4.orig 2008-05-14 19:07:34.000000000 +0200 -+++ config/m4/oracle.m4 2009-05-07 19:15:56.463399933 +0200 -@@ -113,6 +113,11 @@ +--- config/m4/oracle.m4.orig 2009-10-23 16:19:57 UTC ++++ config/m4/oracle.m4 +@@ -113,6 +113,11 @@ Please install the instant client sdk pa ora_cflags="$ora_cflags -I$dir" echo "adding -I$dir" >&AS_MESSAGE_LOG_FD() fi diff --git a/databases/tora/files/patch-configure b/databases/tora/files/patch-configure index cb13f9ef0938..72c7cafde466 100644 --- a/databases/tora/files/patch-configure +++ b/databases/tora/files/patch-configure @@ -1,6 +1,6 @@ ---- configure.orig 2008-11-03 21:33:32.000000000 +0100 -+++ configure 2009-05-07 19:58:09.238375523 +0200 -@@ -25140,6 +25140,11 @@ +--- configure.orig 2010-09-19 17:15:52 UTC ++++ configure +@@ -17436,6 +17436,11 @@ Please install the instant client sdk pa ora_cflags="$ora_cflags -I$dir" echo "adding -I$dir" >&5 fi diff --git a/databases/tora/files/patch-configure.ac b/databases/tora/files/patch-configure.ac index a535ca377e21..b6bcd800128e 100644 --- a/databases/tora/files/patch-configure.ac +++ b/databases/tora/files/patch-configure.ac @@ -1,6 +1,6 @@ ---- configure.ac.orig 2008-09-14 23:54:41.000000000 +0200 -+++ configure.ac 2009-05-07 19:16:01.329388208 +0200 -@@ -54,6 +54,9 @@ +--- configure.ac.orig 2010-06-06 19:50:46 UTC ++++ configure.ac +@@ -57,6 +57,9 @@ TORA_CHECK_QSCINTILLA AX_PATH_LIB_PCRE AM_PATH_CPPUNIT([1.10.2], found_cppunit=yes) AM_CONDITIONAL([CPPUNIT], [test "x$found_cppunit" = "xyes"]) diff --git a/databases/tora/files/patch-doc_Makefile.am b/databases/tora/files/patch-doc_Makefile.am index c9a22de3f3e6..f115e3847aa8 100644 --- a/databases/tora/files/patch-doc_Makefile.am +++ b/databases/tora/files/patch-doc_Makefile.am @@ -1,6 +1,6 @@ ---- doc/Makefile.am.orig 2008-07-30 15:50:50.000000000 +0200 -+++ doc/Makefile.am 2009-05-10 18:04:15.478423171 +0200 -@@ -3,19 +3,20 @@ +--- doc/Makefile.am.orig 2009-10-23 16:19:55 UTC ++++ doc/Makefile.am +@@ -3,19 +3,20 @@ EXTRA_DIST = help dist-hook: rm -rf `find $(distdir) -name .svn` diff --git a/databases/tora/files/patch-doc_help_tora.texi b/databases/tora/files/patch-doc_help_tora.texi index 2822f16a42b2..7d70d4860855 100644 --- a/databases/tora/files/patch-doc_help_tora.texi +++ b/databases/tora/files/patch-doc_help_tora.texi @@ -1,5 +1,5 @@ ---- doc/help/tora.texi.orig 2008-09-14 23:54:41.000000000 +0200 -+++ doc/help/tora.texi 2009-05-07 21:36:32.058998814 +0200 +--- doc/help/tora.texi.orig 2010-07-18 10:48:45 UTC ++++ doc/help/tora.texi @@ -7,6 +7,10 @@ @c @image{images/tora_manual} @c %**end of header @@ -9,5 +9,5 @@ +@end direntry + @copying - This manual is for TOra, version 1.4.0. + This manual is for TOra, version 2.1.3+. @end copying diff --git a/databases/tora/files/patch-src_Makefile.am b/databases/tora/files/patch-src_Makefile.am index 7076bdce42a5..1e590020cfe9 100644 --- a/databases/tora/files/patch-src_Makefile.am +++ b/databases/tora/files/patch-src_Makefile.am @@ -1,6 +1,6 @@ ---- src/Makefile.am.orig 2010-09-19 20:07:44.000000000 +0200 -+++ src/Makefile.am 2010-11-01 23:01:57.000000000 +0100 -@@ -37,7 +37,7 @@ +--- src/Makefile.am.orig 2010-09-19 18:07:44 UTC ++++ src/Makefile.am +@@ -37,7 +37,7 @@ AM_LDFLAGS = $(PCRE_LIBS) \ # fix for annoying automake naming problems. tora_CXXFLAGS = $(AM_CXXFLAGS) @@ -9,7 +9,7 @@ if HAVE_ORACLE EXTRA_ORACLE_MONO_SOURCE = tooracleconnection.cpp tooraclesetting.h \ -@@ -439,6 +439,7 @@ +@@ -439,6 +439,7 @@ BUILT_SOURCES = \ moc_tobrowserdblinkswidget.cpp \ moc_tobrowserdirectorieswidget.cpp \ moc_toresultgrants.cpp \ diff --git a/databases/tora/files/patch-src_toextract.cpp b/databases/tora/files/patch-src_toextract.cpp index 0a82005e59ab..f04073f1c2fe 100644 --- a/databases/tora/files/patch-src_toextract.cpp +++ b/databases/tora/files/patch-src_toextract.cpp @@ -1,4 +1,4 @@ ---- src/toextract.cpp.orig 2010-02-02 18:25:43.000000000 +0000 +--- src/toextract.cpp.orig 2010-02-02 18:25:43 UTC +++ src/toextract.cpp @@ -39,6 +39,7 @@ * diff --git a/databases/tora/files/patch-src_toextract.h b/databases/tora/files/patch-src_toextract.h index 1c4d9d6068cc..8f99c16c3e95 100644 --- a/databases/tora/files/patch-src_toextract.h +++ b/databases/tora/files/patch-src_toextract.h @@ -1,16 +1,18 @@ ---- src/toextract.h 2010-02-02 13:25:43.000000000 -0500 -+++ src/toextract.h 2015-03-08 20:14:45.000000000 -0400 -@@ -783,5 +783,5 @@ +--- src/toextract.h.orig 2010-02-02 18:25:43 UTC ++++ src/toextract.h +@@ -782,13 +782,13 @@ public: + } /** Implement sort order based only on Order field. */ - bool operator <(const columnInfo &inf) + bool operator <(const columnInfo &inf) const { return Order < inf.Order; -@@ -789,5 +789,5 @@ + } /** Implement sort order based only on Order field. */ - bool operator ==(const columnInfo &inf) + bool operator ==(const columnInfo &inf) const { return Order == inf.Order; + } diff --git a/databases/tora/files/patch-src_tooracleconnection.cpp b/databases/tora/files/patch-src_tooracleconnection.cpp index 35b2808ff8f4..19e9168d3ca6 100644 --- a/databases/tora/files/patch-src_tooracleconnection.cpp +++ b/databases/tora/files/patch-src_tooracleconnection.cpp @@ -1,6 +1,6 @@ ---- src/tooracleconnection.cpp.orig 2008-10-29 16:59:11.000000000 +0100 -+++ src/tooracleconnection.cpp 2009-05-07 19:16:09.390371657 +0200 -@@ -57,7 +57,6 @@ +--- src/tooracleconnection.cpp.orig 2010-09-19 09:27:38 UTC ++++ src/tooracleconnection.cpp +@@ -58,7 +58,6 @@ #define OTL_STL #define OTL_EXCEPTION_ENABLE_ERROR_OFFSET diff --git a/databases/tora/files/patch-src_topiechart.h b/databases/tora/files/patch-src_topiechart.h index 31a384d9647a..52d2b2477bef 100644 --- a/databases/tora/files/patch-src_topiechart.h +++ b/databases/tora/files/patch-src_topiechart.h @@ -1,5 +1,5 @@ ---- ./src/topiechart.h.orig 2009-10-23 18:19:33.000000000 +0200 -+++ ./src/topiechart.h 2014-07-21 19:25:58.000000000 +0200 +--- src/topiechart.h.orig 2009-10-23 16:19:33 UTC ++++ src/topiechart.h @@ -44,6 +44,7 @@ #include "config.h" diff --git a/databases/tora/files/patch-src_toreport.cpp b/databases/tora/files/patch-src_toreport.cpp index 71f91c04ab39..9b9e4b323646 100644 --- a/databases/tora/files/patch-src_toreport.cpp +++ b/databases/tora/files/patch-src_toreport.cpp @@ -1,4 +1,4 @@ ---- src/toreport.cpp.orig 2010-01-14 16:39:02.000000000 +0000 +--- src/toreport.cpp.orig 2010-01-14 16:39:02 UTC +++ src/toreport.cpp @@ -39,6 +39,7 @@ * -- cgit