aboutsummaryrefslogtreecommitdiff
path: root/databases/tora
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2006-03-22 20:48:37 +0000
committerThierry Thomas <thierry@FreeBSD.org>2006-03-22 20:48:37 +0000
commit78ccd3a2b97f2055b44f2b0680a46fe9fd98792a (patch)
tree2fbcc21b2e94d8206794baa0ccfb4266b948e6a8 /databases/tora
parent0646064ee1b422e06cfa5fbbc65336f7a11a2f11 (diff)
downloadports-78ccd3a2b97f2055b44f2b0680a46fe9fd98792a.tar.gz
ports-78ccd3a2b97f2055b44f2b0680a46fe9fd98792a.zip
Notes
Diffstat (limited to 'databases/tora')
-rw-r--r--databases/tora/Makefile63
-rw-r--r--databases/tora/distinfo3
-rw-r--r--databases/tora/files/patch-Makefile.in11
-rw-r--r--databases/tora/files/patch-configure141
-rw-r--r--databases/tora/files/patch-totool.cpp18
-rw-r--r--databases/tora/pkg-descr5
-rw-r--r--databases/tora/pkg-plist94
7 files changed, 335 insertions, 0 deletions
diff --git a/databases/tora/Makefile b/databases/tora/Makefile
new file mode 100644
index 000000000000..e5c21049bc65
--- /dev/null
+++ b/databases/tora/Makefile
@@ -0,0 +1,63 @@
+# New ports collection makefile for: tora
+# Date created: 03 January 2002
+# Whom: anders
+#
+# $FreeBSD$
+#
+
+PORTNAME= tora
+PORTVERSION= 1.3.21
+CATEGORIES= databases
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= thierry@FreeBSD.org
+COMMENT= Toolkit for Oracle
+
+BUILD_DEPENDS= ${ORACLE_HOME}/lib/libclntsh.a:${PORTSDIR}/databases/oracle8-client
+LIB_DEPENDS= qscintilla.6:${PORTSDIR}/x11-toolkits/qscintilla
+RUN_DEPENDS= ${ORACLE_HOME}/network/admin/tnsnames.ora:${PORTSDIR}/databases/oracle8-client
+
+.if !defined(WITHOUT_MYSQL)
+BUILD_DEPENDS+= ${X11BASE}/lib/plugins/sqldrivers/libqsqlmysql.so:${PORTSDIR}/databases/qt-mysql-plugin
+RUN_DEPENDS+= ${X11BASE}/lib/plugins/sqldrivers/libqsqlmysql.so:${PORTSDIR}/databases/qt-mysql-plugin
+.endif
+
+.if !defined(WITHOUT_PGSQL)
+BUILD_DEPENDS+= ${X11BASE}/lib/plugins/sqldrivers/libqsqlpsql.so:${PORTSDIR}/databases/qt-pgsql-plugin
+RUN_DEPENDS+= ${X11BASE}/lib/plugins/sqldrivers/libqsqlpsql.so:${PORTSDIR}/databases/qt-pgsql-plugin
+.endif
+
+ORACLE_HOME?= ${LOCALBASE}/oracle8-client
+ORACLE_VER= 8i # Client version
+
+USE_QT_VER= 3
+USE_PERL5_BUILD=yes
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+CONFIGURE_ARGS= --with-oracle=${ORACLE_HOME} --with-oci-version=${ORACLE_VER:U}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+INSTALLS_SHLIB= yes
+
+.if defined(WITHOUT_KDE)
+CONFIGURE_ARGS+= --without-kde
+.else
+USE_KDELIBS_VER=3
+.endif
+
+PORTDOCS= AUTHORS BUGS ChangeLog INSTALL NEWS README README.CODESTYLE README.LICENSE TODO
+
+PREFIX2FIX= help/preferences.html totool.cpp
+
+pre-configure:
+ ${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
+ ${REINPLACE_CMD} -e 's|/etc/torarc|${PREFIX}/etc/torarc|' ${PREFIX2FIX:S|^|${WRKSRC}/|}
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/templates/* ${PREFIX}/lib/
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/databases/tora/distinfo b/databases/tora/distinfo
new file mode 100644
index 000000000000..3b2302eac79b
--- /dev/null
+++ b/databases/tora/distinfo
@@ -0,0 +1,3 @@
+MD5 (tora-1.3.21.tar.gz) = 10e3c9944ffaca50de046e2c3e02eee4
+SHA256 (tora-1.3.21.tar.gz) = 135405accdd96a0cb52ca3797401173aec8bc1138934d52d9ceaa3984f7c7a2e
+SIZE (tora-1.3.21.tar.gz) = 3139444
diff --git a/databases/tora/files/patch-Makefile.in b/databases/tora/files/patch-Makefile.in
new file mode 100644
index 000000000000..089508aa8b6c
--- /dev/null
+++ b/databases/tora/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig Fri Feb 24 00:20:06 2006
++++ Makefile.in Wed Mar 1 22:32:40 2006
+@@ -786,7 +786,7 @@
+
+ # fix for annoying automake naming problems.
+ tora_CXXFLAGS = $(AM_CXXFLAGS)
+-tora_LDADD = $(ORACLE_LIBS) $(@TORA_LINK_OTHERS@)
++tora_LDADD = $(ORACLE_LIBS) $(@TORA_LINK_OTHERS@) $(LIBCOMPAT)
+ @HAVE_ORACLE_TRUE@EXTRA_ORACLE_MONO_SOURCE = tooracleconnection.cpp \
+ @HAVE_ORACLE_TRUE@ tooracleextract.cpp \
+ @HAVE_ORACLE_TRUE@ tooraclesettingui.cpp tooraclesettingui.h
diff --git a/databases/tora/files/patch-configure b/databases/tora/files/patch-configure
new file mode 100644
index 000000000000..a9d2b9d9a03b
--- /dev/null
+++ b/databases/tora/files/patch-configure
@@ -0,0 +1,141 @@
+--- configure.orig Mon Feb 20 19:17:43 2006
++++ configure Mon Mar 6 21:56:08 2006
+@@ -24315,39 +24315,13 @@
+ fi
+
+
+-
+- echo "$as_me:$LINENO: checking have kde" >&5
+-echo $ECHO_N "checking have kde... $ECHO_C" >&6
+- have_kde=yes
+-
+-# Check whether --with-kde or --without-kde was given.
+-if test "${with_kde+set}" = set; then
+- withval="$with_kde"
+-
+- have_kde=$withval
+-
+-fi;
+-
+- echo "$as_me:$LINENO: result: $have_kde" >&5
+-echo "${ECHO_T}$have_kde" >&6
+- if test $have_kde != yes; then
+- kde_qtver=0
+- else
+-
+-
+- ac_ext=c
+-ac_cpp='$CPP $CPPFLAGS'
+-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
+-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
+-ac_compiler_gnu=$ac_cv_c_compiler_gnu
+-
+- echo "$as_me:$LINENO: checking for main in -lutil" >&5
+-echo $ECHO_N "checking for main in -lutil... $ECHO_C" >&6
+-if test "${ac_cv_lib_util_main+set}" = set; then
++ echo "$as_me:$LINENO: checking for main in -lcompat" >&5
++echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
++if test "${ac_cv_lib_compat_main+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lutil $LIBS"
++LIBS="-lcompat $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
+@@ -24386,30 +24360,56 @@
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+- ac_cv_lib_util_main=yes
++ ac_cv_lib_compat_main=yes
+ else
+ echo "$as_me: failed program was:" >&5
+ sed 's/^/| /' conftest.$ac_ext >&5
+
+-ac_cv_lib_util_main=no
++ac_cv_lib_compat_main=no
+ fi
+ rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ LIBS=$ac_check_lib_save_LIBS
+ fi
+-echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5
+-echo "${ECHO_T}$ac_cv_lib_util_main" >&6
+-if test $ac_cv_lib_util_main = yes; then
+- LIBUTIL="-lutil"
++echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
++echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
++if test $ac_cv_lib_compat_main = yes; then
++ LIBCOMPAT="-lcompat"
+ fi
+
+- echo "$as_me:$LINENO: checking for main in -lcompat" >&5
+-echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6
+-if test "${ac_cv_lib_compat_main+set}" = set; then
++
++ echo "$as_me:$LINENO: checking have kde" >&5
++echo $ECHO_N "checking have kde... $ECHO_C" >&6
++ have_kde=yes
++
++# Check whether --with-kde or --without-kde was given.
++if test "${with_kde+set}" = set; then
++ withval="$with_kde"
++
++ have_kde=$withval
++
++fi;
++
++ echo "$as_me:$LINENO: result: $have_kde" >&5
++echo "${ECHO_T}$have_kde" >&6
++ if test $have_kde != yes; then
++ kde_qtver=0
++ else
++
++
++ ac_ext=c
++ac_cpp='$CPP $CPPFLAGS'
++ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
++ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
++ac_compiler_gnu=$ac_cv_c_compiler_gnu
++
++ echo "$as_me:$LINENO: checking for main in -lutil" >&5
++echo $ECHO_N "checking for main in -lutil... $ECHO_C" >&6
++if test "${ac_cv_lib_util_main+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lcompat $LIBS"
++LIBS="-lutil $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ /* confdefs.h. */
+ _ACEOF
+@@ -24448,21 +24448,21 @@
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+- ac_cv_lib_compat_main=yes
++ ac_cv_lib_util_main=yes
+ else
+ echo "$as_me: failed program was:" >&5
+ sed 's/^/| /' conftest.$ac_ext >&5
+
+-ac_cv_lib_compat_main=no
++ac_cv_lib_util_main=no
+ fi
+ rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ LIBS=$ac_check_lib_save_LIBS
+ fi
+-echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
+-echo "${ECHO_T}$ac_cv_lib_compat_main" >&6
+-if test $ac_cv_lib_compat_main = yes; then
+- LIBCOMPAT="-lcompat"
++echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5
++echo "${ECHO_T}$ac_cv_lib_util_main" >&6
++if test $ac_cv_lib_util_main = yes; then
++ LIBUTIL="-lutil"
+ fi
+
+ kde_have_crypt=
diff --git a/databases/tora/files/patch-totool.cpp b/databases/tora/files/patch-totool.cpp
new file mode 100644
index 000000000000..83b64b7a6103
--- /dev/null
+++ b/databases/tora/files/patch-totool.cpp
@@ -0,0 +1,18 @@
+--- totool.cpp.orig Thu Feb 9 02:21:37 2006
++++ totool.cpp Fri Mar 17 00:06:08 2006
+@@ -442,6 +442,15 @@
+ conf = QString::fromLatin1(getenv("HOME"));
+ }
+ conf.append(QString::fromLatin1(CONFIG_FILE));
++
++# ifdef __FreeBSD__
++// Create the $HOME/.torarc if not exists
++ QString configfile = toExpandFile(conf);
++ QFile cffile(configfile);
++ cffile.open(IO_ReadWrite);
++ cffile.close();
++# endif
++
+ try
+ {
+ loadMap(conf, *Configuration);
diff --git a/databases/tora/pkg-descr b/databases/tora/pkg-descr
new file mode 100644
index 000000000000..2779d51dcdb5
--- /dev/null
+++ b/databases/tora/pkg-descr
@@ -0,0 +1,5 @@
+TOra is a Toolkit for Oracle which aims to help the DBA or developer of
+database application. Features PL/SQL debugger, SQL worksheet with syntax
+highlighting, DB browser and a comprehensive set of DBA tools.
+
+WWW: http://tora.sourceforge.net/
diff --git a/databases/tora/pkg-plist b/databases/tora/pkg-plist
new file mode 100644
index 000000000000..dd870eccc438
--- /dev/null
+++ b/databases/tora/pkg-plist
@@ -0,0 +1,94 @@
+bin/tora
+lib/hints.tpl
+lib/libtoalert.a
+lib/libtoalert.la
+lib/libtoalert.so
+lib/libtoanalyze.a
+lib/libtoanalyze.la
+lib/libtoanalyze.so
+lib/libtobackup.a
+lib/libtobackup.la
+lib/libtobackup.so
+lib/libtobrowser.a
+lib/libtobrowser.la
+lib/libtobrowser.so
+lib/libtochart.a
+lib/libtochart.la
+lib/libtochart.so
+lib/libtocurrent.a
+lib/libtocurrent.la
+lib/libtocurrent.so
+lib/libtodebug.a
+lib/libtodebug.la
+lib/libtodebug.so
+lib/libtoeditextensions.a
+lib/libtoeditextensions.la
+lib/libtoeditextensions.so
+lib/libtoextract.a
+lib/libtoextract.la
+lib/libtoextract.so
+lib/libtoinvalid.a
+lib/libtoinvalid.la
+lib/libtoinvalid.so
+lib/libtooracleconnection.a
+lib/libtooracleconnection.la
+lib/libtooracleconnection.so
+lib/libtooutput.a
+lib/libtooutput.la
+lib/libtooutput.so
+lib/libtopassword.a
+lib/libtopassword.la
+lib/libtopassword.so
+lib/libtoprofiler.a
+lib/libtoprofiler.la
+lib/libtoprofiler.so
+lib/libtoproject.a
+lib/libtoproject.la
+lib/libtoproject.so
+lib/libtoqsqlconnection.a
+lib/libtoqsqlconnection.la
+lib/libtoqsqlconnection.so
+lib/libtoresult.a
+lib/libtoresult.la
+lib/libtoresult.so
+lib/libtorollback.a
+lib/libtorollback.la
+lib/libtorollback.so
+lib/libtoscript.a
+lib/libtoscript.la
+lib/libtoscript.so
+lib/libtosecurity.a
+lib/libtosecurity.la
+lib/libtosecurity.so
+lib/libtosession.a
+lib/libtosession.la
+lib/libtosession.so
+lib/libtosgatrace.a
+lib/libtosgatrace.la
+lib/libtosgatrace.so
+lib/libtosqledit.a
+lib/libtosqledit.la
+lib/libtosqledit.so
+lib/libtostorage.a
+lib/libtostorage.la
+lib/libtostorage.so
+lib/libtostoragedefinition.a
+lib/libtostoragedefinition.la
+lib/libtostoragedefinition.so
+lib/libtotemplate.a
+lib/libtotemplate.la
+lib/libtotemplate.so
+lib/libtotemporary.a
+lib/libtotemporary.la
+lib/libtotemporary.so
+lib/libtotuning.a
+lib/libtotuning.la
+lib/libtotuning.so
+lib/libtowidget.a
+lib/libtowidget.la
+lib/libtowidget.so
+lib/libtoworksheet.a
+lib/libtoworksheet.la
+lib/libtoworksheet.so
+lib/log4plsql.tpl
+lib/sqlfunctions.tpl