diff options
author | Aaron Dalton <aaron@FreeBSD.org> | 2006-06-05 20:06:06 +0000 |
---|---|---|
committer | Aaron Dalton <aaron@FreeBSD.org> | 2006-06-05 20:06:06 +0000 |
commit | 7274ae2aaface80ab8bc44b546694265d46f7f0b (patch) | |
tree | 69510290ae709c0d12969887487da7e54e08f2a6 | |
parent | Remove FORBIDDEN now that the port has been updated. (diff) |
Add erlang-mysql 1.0, native MySQL driver for Erlang.
PR: ports/96803
Submitted by: Shaun Amott <shaun@inerd.com>
Approved by: tobez
Notes
Notes:
svn path=/head/; revision=164501
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/erlang-mysql/Makefile | 43 | ||||
-rw-r--r-- | databases/erlang-mysql/distinfo | 2 | ||||
-rw-r--r-- | databases/erlang-mysql/pkg-descr | 8 | ||||
-rw-r--r-- | databases/erlang-mysql/pkg-plist | 13 |
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%% |