aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authoraaron <aaron@FreeBSD.org>2006-06-06 04:06:06 +0800
committeraaron <aaron@FreeBSD.org>2006-06-06 04:06:06 +0800
commit701f2ee65328d4d88db27681058dac87655616c5 (patch)
treeef49e84b841f596993585e66bbf9a6365e076901 /databases
parent5b75276934875e50fb97c12ebdc3a7c96a31d778 (diff)
downloadfreebsd-ports-gnome-701f2ee65328d4d88db27681058dac87655616c5.tar.gz
freebsd-ports-gnome-701f2ee65328d4d88db27681058dac87655616c5.tar.zst
freebsd-ports-gnome-701f2ee65328d4d88db27681058dac87655616c5.zip
Add erlang-mysql 1.0, native MySQL driver for Erlang.
PR: ports/96803 Submitted by: Shaun Amott <shaun@inerd.com> Approved by: tobez
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/erlang-mysql/Makefile43
-rw-r--r--databases/erlang-mysql/distinfo2
-rw-r--r--databases/erlang-mysql/pkg-descr8
-rw-r--r--databases/erlang-mysql/pkg-plist13
5 files changed, 67 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index c60ceae5848a..e4e7af17a29c 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -38,6 +38,7 @@
SUBDIR += dbtool
SUBDIR += dbview
SUBDIR += edb
+ SUBDIR += erlang-mysql
SUBDIR += erserver
SUBDIR += evolution-data-server
SUBDIR += fastdb
diff --git a/databases/erlang-mysql/Makefile b/databases/erlang-mysql/Makefile
new file mode 100644
index 000000000000..84bdfc2472a1
--- /dev/null
+++ b/databases/erlang-mysql/Makefile
@@ -0,0 +1,43 @@
+# New ports collection makefile for: erlang-mysql
+# Date Created: 2006-05-04
+# Whom: Shaun Amott <shaun@inerd.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mysql
+PORTVERSION= 1.0
+CATEGORIES= databases
+MASTER_SITES= https://support.process-one.net/doc/download/attachments/415/ \
+ http://mirror.inerd.com/FreeBSD/distfiles/erlang-mysql/
+PKGNAMEPREFIX= erlang-
+DISTNAME= ${PORTNAME}
+
+MAINTAINER= shaun@inerd.com
+COMMENT= Native MySQL driver for Erlang
+
+BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+ERLC?= erlc
+ERLANGDIR?= ${PREFIX}/lib/erlang/lib
+
+PLIST_SUB= PORTNAME=${PORTNAME} PORTVERSION=${PORTVERSION} \
+ ERLANGDIR=${ERLANGDIR:S/^${PREFIX}\///}
+
+.include <bsd.port.pre.mk>
+
+do-build:
+ cd ${WRKSRC} && ${ERLC} *.erl
+
+do-install:
+ @${MKDIR} ${ERLANGDIR}/${PORTNAME}-${PORTVERSION}/src
+ @${MKDIR} ${ERLANGDIR}/${PORTNAME}-${PORTVERSION}/ebin
+ @${MKDIR} ${ERLANGDIR}/${PORTNAME}-${PORTVERSION}/include
+
+ cd ${WRKSRC} \
+ && ${INSTALL_DATA} *.erl ${ERLANGDIR}/${PORTNAME}-${PORTVERSION}/src \
+ && ${INSTALL_DATA} *.beam ${ERLANGDIR}/${PORTNAME}-${PORTVERSION}/ebin \
+ && ${INSTALL_DATA} *.hrl ${ERLANGDIR}/${PORTNAME}-${PORTVERSION}/include
+
+.include <bsd.port.post.mk>
diff --git a/databases/erlang-mysql/distinfo b/databases/erlang-mysql/distinfo
new file mode 100644
index 000000000000..ce28bf1d1fd9
--- /dev/null
+++ b/databases/erlang-mysql/distinfo
@@ -0,0 +1,2 @@
+MD5 (mysql.tar.gz) = 0dc724df6fdc8a5b1ce133c6f31091d4
+SIZE (mysql.tar.gz) = 13500
diff --git a/databases/erlang-mysql/pkg-descr b/databases/erlang-mysql/pkg-descr
new file mode 100644
index 000000000000..95f7a1d8bba7
--- /dev/null
+++ b/databases/erlang-mysql/pkg-descr
@@ -0,0 +1,8 @@
+This port provides a native (as opposed to ODBC) MySQL interface for
+Erlang applications. It has been extracted from the codebase of the
+Yxa SIP Software [1], and is provided by Process One [2].
+
+[1] http://www.stacken.kth.se/project/yxa/
+[2] http://www.process-one.net/
+
+WWW: http://support.process-one.net/doc/display/CONTRIBS/Yxa/
diff --git a/databases/erlang-mysql/pkg-plist b/databases/erlang-mysql/pkg-plist
new file mode 100644
index 000000000000..4ffbbc797583
--- /dev/null
+++ b/databases/erlang-mysql/pkg-plist
@@ -0,0 +1,13 @@
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/mysql.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/mysql_auth.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/mysql_conn.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src/mysql_recv.erl
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/mysql.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/mysql_auth.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/mysql_conn.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin/mysql_recv.beam
+%%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/include/mysql.hrl
+@dirrm %%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/src
+@dirrm %%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/ebin
+@dirrm %%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%/include
+@dirrm %%ERLANGDIR%%/%%PORTNAME%%-%%PORTVERSION%%