diff --git a/databases/erl-epgsql/Makefile b/databases/erl-epgsql/Makefile new file mode 100644 index 00000000000..7af300bd0bc --- /dev/null +++ b/databases/erl-epgsql/Makefile @@ -0,0 +1,42 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2013/03/08 10:56:30 jasper Exp $ + +COMMENT= Erlang PostgreSQL client + +VERSION= 1.4.1 +DISTNAME= epgsql-${VERSION} +PKGNAME= erl-${DISTNAME} +CATEGORIES= databases lang/erlang + +HOMEPAGE= https://github.com/opscode/epgsql + +# BSD +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= http://distfiles.nl/ +TAR= ${LOCALBASE}/bin/gtar + +BUILD_DEPENDS= archivers/gtar \ + devel/rebar +RUN_DEPENDS= lang/erlang + +USE_GMAKE= Yes +MAKE_ENV+= VERSION=${VERSION} + +ALL_TARGET= #empty +FAKE_TARGET= app + +# Should actually have a 'dialyzer' target which creates the PLT on the fly. +NO_REGRESS= Yes + +SUBST_VARS+= VERSION + +# The 'app' target creates a nice directory for us to actually install. +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/lib/erlang/lib/ + cp -r ${WRKSRC}/${DISTNAME} ${PREFIX}/lib/erlang/lib/ + chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/lib/erlang/lib/ + +.include diff --git a/databases/erl-epgsql/distinfo b/databases/erl-epgsql/distinfo new file mode 100644 index 00000000000..1b5a840f66b --- /dev/null +++ b/databases/erl-epgsql/distinfo @@ -0,0 +1,2 @@ +SHA256 (epgsql-1.4.1.tar.gz) = bkdF8/SWevzYuaZyRKkE5OwpdYEZp+mi8z9ysjuUfPo= +SIZE (epgsql-1.4.1.tar.gz) = 124586 diff --git a/databases/erl-epgsql/patches/patch-Makefile b/databases/erl-epgsql/patches/patch-Makefile new file mode 100644 index 00000000000..6c75885e10f --- /dev/null +++ b/databases/erl-epgsql/patches/patch-Makefile @@ -0,0 +1,10 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2013/03/08 10:56:30 jasper Exp $ +--- Makefile.orig Mon Feb 25 09:54:57 2013 ++++ Makefile Mon Feb 25 09:55:03 2013 +@@ -1,5 +1,5 @@ + NAME := epgsql +-VERSION := $(shell git describe --always --tags) ++VERSION ?= $(shell git describe --always --tags) + + ERL := erl + ERLC := erlc diff --git a/databases/erl-epgsql/pkg/DESCR b/databases/erl-epgsql/pkg/DESCR new file mode 100644 index 00000000000..21ed94f7e0c --- /dev/null +++ b/databases/erl-epgsql/pkg/DESCR @@ -0,0 +1 @@ +epgsql is the Erlang PostgreSQL database client. diff --git a/databases/erl-epgsql/pkg/PLIST b/databases/erl-epgsql/pkg/PLIST new file mode 100644 index 00000000000..ac915c1d477 --- /dev/null +++ b/databases/erl-epgsql/pkg/PLIST @@ -0,0 +1,13 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2013/03/08 10:56:30 jasper Exp $ +lib/erlang/lib/epgsql-${VERSION}/ +lib/erlang/lib/epgsql-${VERSION}/ebin/ +lib/erlang/lib/epgsql-${VERSION}/ebin/epgsql.app +lib/erlang/lib/epgsql-${VERSION}/ebin/pgsql.beam +lib/erlang/lib/epgsql-${VERSION}/ebin/pgsql_binary.beam +lib/erlang/lib/epgsql-${VERSION}/ebin/pgsql_connection.beam +lib/erlang/lib/epgsql-${VERSION}/ebin/pgsql_fdatetime.beam +lib/erlang/lib/epgsql-${VERSION}/ebin/pgsql_idatetime.beam +lib/erlang/lib/epgsql-${VERSION}/ebin/pgsql_sock.beam +lib/erlang/lib/epgsql-${VERSION}/ebin/pgsql_types.beam +lib/erlang/lib/epgsql-${VERSION}/include/ +lib/erlang/lib/epgsql-${VERSION}/include/pgsql.hrl