From 2ac25f167accded862d3d31924b672fb7ed133dc Mon Sep 17 00:00:00 2001 From: wiz Date: Tue, 30 Dec 2014 15:42:24 +0000 Subject: Import qore-mysql-module-2.0.1nb4 as databases/qore-mysql-module, packaged for wip by nros. MySQL driver for Qores DBI system that allows Qore programs to MySQL Databases through the Datasource, DatasourcePool and SQLStatement classes. --- databases/qore-mysql-module/DESCR | 3 ++ databases/qore-mysql-module/Makefile | 32 ++++++++++++++ databases/qore-mysql-module/PLIST | 50 ++++++++++++++++++++++ databases/qore-mysql-module/buildlink3.mk | 15 +++++++ databases/qore-mysql-module/distinfo | 7 +++ databases/qore-mysql-module/options.mk | 12 ++++++ .../qore-mysql-module/patches/patch-configure | 21 +++++++++ .../patches/patch-src_Makefile.in | 13 ++++++ 8 files changed, 153 insertions(+) create mode 100644 databases/qore-mysql-module/DESCR create mode 100644 databases/qore-mysql-module/Makefile create mode 100644 databases/qore-mysql-module/PLIST create mode 100644 databases/qore-mysql-module/buildlink3.mk create mode 100644 databases/qore-mysql-module/distinfo create mode 100644 databases/qore-mysql-module/options.mk create mode 100644 databases/qore-mysql-module/patches/patch-configure create mode 100644 databases/qore-mysql-module/patches/patch-src_Makefile.in (limited to 'databases/qore-mysql-module') diff --git a/databases/qore-mysql-module/DESCR b/databases/qore-mysql-module/DESCR new file mode 100644 index 00000000000..c21f7608fc7 --- /dev/null +++ b/databases/qore-mysql-module/DESCR @@ -0,0 +1,3 @@ +MySQL driver for Qores DBI system that allows Qore programs to MySQL +Databases through the Datasource, DatasourcePool and SQLStatement +classes. diff --git a/databases/qore-mysql-module/Makefile b/databases/qore-mysql-module/Makefile new file mode 100644 index 00000000000..5ce2360fc7b --- /dev/null +++ b/databases/qore-mysql-module/Makefile @@ -0,0 +1,32 @@ +# $NetBSD: Makefile,v 1.1 2014/12/30 15:42:24 wiz Exp $ + +DISTNAME= qore-mysql-module-2.0.1 +PKGREVISION= 4 +CATEGORIES= databases +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=qore/} +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= nros@users.sourceforge.net +HOMEPAGE= http://www.qore.org/ +COMMENT= MySQL DB driver for Qore +LICENSE= gnu-gpl-v2 + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_LANGUAGES= c c++ +USE_TOOLS+= gmake pax +PTHREAD_OPTS+= native + +#install docs +INSTALLATION_DIRS+= share/doc/${PKGBASE} +post-install: + cd ${WRKSRC}/docs/mysql && ${PAX} -wr * \ + ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} + +.include "options.mk" + +.include "../../mk/mysql.buildlink3.mk" +.include "../../mk/pthread.buildlink3.mk" +.include "../../lang/qore/buildlink3.mk" +.include "../../lang/qore/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/databases/qore-mysql-module/PLIST b/databases/qore-mysql-module/PLIST new file mode 100644 index 00000000000..61e7ece52a6 --- /dev/null +++ b/databases/qore-mysql-module/PLIST @@ -0,0 +1,50 @@ +@comment $NetBSD: PLIST,v 1.1 2014/12/30 15:42:24 wiz Exp $ +${QORE_MODULE_DIR}/mysql-api-${QORE_LATEST_MODULE_API}.qmod +share/doc/qore-mysql-module/html/bc_s.png +share/doc/qore-mysql-module/html/bdwn.png +share/doc/qore-mysql-module/html/closed.png +share/doc/qore-mysql-module/html/doxygen.css +share/doc/qore-mysql-module/html/doxygen.png +share/doc/qore-mysql-module/html/dynsections.js +share/doc/qore-mysql-module/html/ftv2blank.png +share/doc/qore-mysql-module/html/ftv2cl.png +share/doc/qore-mysql-module/html/ftv2doc.png +share/doc/qore-mysql-module/html/ftv2folderclosed.png +share/doc/qore-mysql-module/html/ftv2folderopen.png +share/doc/qore-mysql-module/html/ftv2lastnode.png +share/doc/qore-mysql-module/html/ftv2link.png +share/doc/qore-mysql-module/html/ftv2mlastnode.png +share/doc/qore-mysql-module/html/ftv2mnode.png +share/doc/qore-mysql-module/html/ftv2mo.png +share/doc/qore-mysql-module/html/ftv2node.png +share/doc/qore-mysql-module/html/ftv2ns.png +share/doc/qore-mysql-module/html/ftv2plastnode.png +share/doc/qore-mysql-module/html/ftv2pnode.png +share/doc/qore-mysql-module/html/ftv2splitbar.png +share/doc/qore-mysql-module/html/ftv2vertline.png +share/doc/qore-mysql-module/html/graph_legend.html +share/doc/qore-mysql-module/html/graph_legend.md5 +share/doc/qore-mysql-module/html/graph_legend.png +share/doc/qore-mysql-module/html/index.html +share/doc/qore-mysql-module/html/jquery.js +share/doc/qore-mysql-module/html/nav_f.png +share/doc/qore-mysql-module/html/nav_g.png +share/doc/qore-mysql-module/html/nav_h.png +share/doc/qore-mysql-module/html/navtree.css +share/doc/qore-mysql-module/html/navtree.js +share/doc/qore-mysql-module/html/navtreeindex0.js +share/doc/qore-mysql-module/html/open.png +share/doc/qore-mysql-module/html/resize.js +share/doc/qore-mysql-module/html/search/close.png +share/doc/qore-mysql-module/html/search/mag_sel.png +share/doc/qore-mysql-module/html/search/nomatches.html +share/doc/qore-mysql-module/html/search/search.css +share/doc/qore-mysql-module/html/search/search.js +share/doc/qore-mysql-module/html/search/search_l.png +share/doc/qore-mysql-module/html/search/search_m.png +share/doc/qore-mysql-module/html/search/search_r.png +share/doc/qore-mysql-module/html/tab_a.png +share/doc/qore-mysql-module/html/tab_b.png +share/doc/qore-mysql-module/html/tab_h.png +share/doc/qore-mysql-module/html/tab_s.png +share/doc/qore-mysql-module/html/tabs.css diff --git a/databases/qore-mysql-module/buildlink3.mk b/databases/qore-mysql-module/buildlink3.mk new file mode 100644 index 00000000000..601ce9eeca0 --- /dev/null +++ b/databases/qore-mysql-module/buildlink3.mk @@ -0,0 +1,15 @@ +# $NetBSD: buildlink3.mk,v 1.1 2014/12/30 15:42:24 wiz Exp $ +# + +BUILDLINK_TREE+= qore-mysql-module + +.if !defined(QORE_MYSQL_MODULE_BUILDLINK3_MK) +QORE_MYSQL_MODULE_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.qore-mysql-module+= qore-mysql-module>=2.0.1 +BUILDLINK_PKGSRCDIR.qore-mysql-module?= ../../databases/qore-mysql-module + +.include "../../lang/qore/buildlink3.mk" +.endif # QORE_MYSQL_MODULE_BUILDLINK3_MK + +BUILDLINK_TREE+= -qore-mysql-module diff --git a/databases/qore-mysql-module/distinfo b/databases/qore-mysql-module/distinfo new file mode 100644 index 00000000000..ca05e03c8e4 --- /dev/null +++ b/databases/qore-mysql-module/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2014/12/30 15:42:24 wiz Exp $ + +SHA1 (qore-mysql-module-2.0.1.tar.bz2) = 4c219ce39d2fc0c025e1dc46fe7a6a8bff5f0020 +RMD160 (qore-mysql-module-2.0.1.tar.bz2) = 172c9f9ebee4b638e470e096e1537d6decff3af3 +Size (qore-mysql-module-2.0.1.tar.bz2) = 386434 bytes +SHA1 (patch-configure) = 0cf87eaf70ce4dc6e70f43040054e7f3c33eafb1 +SHA1 (patch-src_Makefile.in) = 18f0d6b08e2a836eac69ada17f7919e142acaedf diff --git a/databases/qore-mysql-module/options.mk b/databases/qore-mysql-module/options.mk new file mode 100644 index 00000000000..d8c0818192b --- /dev/null +++ b/databases/qore-mysql-module/options.mk @@ -0,0 +1,12 @@ +# $NetBSD: options.mk,v 1.1 2014/12/30 15:42:24 wiz Exp $ +# + +PKG_OPTIONS_VAR= PKG_OPTIONS.qore-mysql-module +PKG_SUPPORTED_OPTIONS= debug +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mdebug) +CONFIGURE_ARGS+= --enable-debug +.else +CONFIGURE_ARGS+= --disable-debug +.endif diff --git a/databases/qore-mysql-module/patches/patch-configure b/databases/qore-mysql-module/patches/patch-configure new file mode 100644 index 00000000000..52db61f3d5d --- /dev/null +++ b/databases/qore-mysql-module/patches/patch-configure @@ -0,0 +1,21 @@ +$NetBSD: patch-configure,v 1.1 2014/12/30 15:42:25 wiz Exp $ +pkgsrc doesn't use lib64 so don't set it. +fixes build on linux. +http://sf.net/p/qore/code/6817/ +--- configure.orig 2014-10-31 21:39:07.454693733 +0000 ++++ configure +@@ -15331,14 +15331,6 @@ if test "$enable_64bit" = "yes"; then + *linux*) if test "$GXX" = "yes"; then + CXXFLAGS="$CXXFLAGS -m64" + fi +- # only set LIBSUFFIX=64 if /usr/lib64 exists +- if test -d /usr/lib64; then +- LIBSUFFIX=64 +- fi +- target="${host_cpu}-${host_os}" +- if test -d /usr/lib/$target; then +- LIBSUFFIX=/$target +- fi + + ;; + *hpux*) if test "$host_cpu" = "ia64"; then diff --git a/databases/qore-mysql-module/patches/patch-src_Makefile.in b/databases/qore-mysql-module/patches/patch-src_Makefile.in new file mode 100644 index 00000000000..cb6ad71ebe3 --- /dev/null +++ b/databases/qore-mysql-module/patches/patch-src_Makefile.in @@ -0,0 +1,13 @@ +$NetBSD: patch-src_Makefile.in,v 1.1 2014/12/30 15:42:25 wiz Exp $ +* delete the .a file as well as the .la file +--- src/Makefile.in.orig 2012-11-18 16:27:36.000000000 +0000 ++++ src/Makefile.in +@@ -596,7 +596,7 @@ uninstall-am: uninstall-libLTLIBRARIES + + install-exec-hook: + mv $(DESTDIR)$(libdir)/$(MNAME).$(MODULE_SUFFIX) $(DESTDIR)$(libdir)/$(MNAME)-api-$(MODULE_API).qmod +- rm -f $(DESTDIR)$(libdir)/$(MNAME).la $(RM_OTHER) ++ rm -f $(DESTDIR)$(libdir)/$(MNAME).la $(RM_OTHER) $(DESTDIR)$(libdir)/$(MNAME).a + + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. -- cgit v1.2.3