From cba9c7336ccdbcd072e2d2e6009b34431f125be0 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 31 Dec 2010 09:12:47 +0000 Subject: main/pllua: moved from testing --- main/pllua/APKBUILD | 37 ++++++++++++++++++++++++++++++ main/pllua/pllua-01-0.3.1-include.patch | 14 +++++++++++ testing/pllua/APKBUILD | 37 ------------------------------ testing/pllua/pllua-01-0.3.1-include.patch | 14 ----------- 4 files changed, 51 insertions(+), 51 deletions(-) create mode 100644 main/pllua/APKBUILD create mode 100644 main/pllua/pllua-01-0.3.1-include.patch delete mode 100644 testing/pllua/APKBUILD delete mode 100644 testing/pllua/pllua-01-0.3.1-include.patch diff --git a/main/pllua/APKBUILD b/main/pllua/APKBUILD new file mode 100644 index 0000000000..913f99bbde --- /dev/null +++ b/main/pllua/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: Michael Mason +# Maintainer: Michael Mason +pkgname=pllua +pkgver=0.3.1 +pkgrel=0 +pkgdesc="Procedural language for PostgreSQL using Lua" +url="http://pgfoundry.org/projects/pllua" +arch="x86 x86_64" +license="GPL" +depends="postgresql" +makedepends="postgresql-dev lua-dev ccache" +install= +subpackages="" +source="http://pgfoundry.org/frs/download.php/1722/$pkgname-$pkgver.tar.gz + pllua-01-0.3.1-include.patch" + +# append extra dependencies to -dev subpackage +# remove if not used. +# depends_dev="somepackage-dev" + +build() { + cd "$srcdir"/$pkgname-$pkgver + for i in "$srcdir"/*.patch; do + msg "Applying ${i}" + patch -p1 -i $i || return 1 + done + + make || return 1 + make DESTDIR="$pkgdir" install + + # remove the 2 lines below (and this) if there is no init.d script + # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname +} + +md5sums="e57385bdf2d533ac73cd02401795cea8 pllua-0.3.1.tar.gz +a47387e64b7dba8d58237c7dad0e2d61 pllua-01-0.3.1-include.patch" diff --git a/main/pllua/pllua-01-0.3.1-include.patch b/main/pllua/pllua-01-0.3.1-include.patch new file mode 100644 index 0000000000..afbf8a9845 --- /dev/null +++ b/main/pllua/pllua-01-0.3.1-include.patch @@ -0,0 +1,14 @@ +#most of fix from here http://postgis.refractions.net/pipermail/postgis-devel/2009-February/004879.html +--- pllua-0.3.1/plluaapi.c.orig Thu Sep 17 15:34:07 2009 ++++ pllua-0.3.1/plluaapi.c Thu Sep 17 15:34:18 2009 +@@ -7,6 +7,10 @@ + + #include "pllua.h" + #include "rowstamp.h" ++#include "utils/guc.h" ++extern Datum textout (PG_FUNCTION_ARGS); ++extern Datum bpcharout(PG_FUNCTION_ARGS); ++extern Datum varcharout(PG_FUNCTION_ARGS); + + /* extended function info */ + typedef struct luaP_Info { diff --git a/testing/pllua/APKBUILD b/testing/pllua/APKBUILD deleted file mode 100644 index 913f99bbde..0000000000 --- a/testing/pllua/APKBUILD +++ /dev/null @@ -1,37 +0,0 @@ -# Contributor: Michael Mason -# Maintainer: Michael Mason -pkgname=pllua -pkgver=0.3.1 -pkgrel=0 -pkgdesc="Procedural language for PostgreSQL using Lua" -url="http://pgfoundry.org/projects/pllua" -arch="x86 x86_64" -license="GPL" -depends="postgresql" -makedepends="postgresql-dev lua-dev ccache" -install= -subpackages="" -source="http://pgfoundry.org/frs/download.php/1722/$pkgname-$pkgver.tar.gz - pllua-01-0.3.1-include.patch" - -# append extra dependencies to -dev subpackage -# remove if not used. -# depends_dev="somepackage-dev" - -build() { - cd "$srcdir"/$pkgname-$pkgver - for i in "$srcdir"/*.patch; do - msg "Applying ${i}" - patch -p1 -i $i || return 1 - done - - make || return 1 - make DESTDIR="$pkgdir" install - - # remove the 2 lines below (and this) if there is no init.d script - # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname - # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname -} - -md5sums="e57385bdf2d533ac73cd02401795cea8 pllua-0.3.1.tar.gz -a47387e64b7dba8d58237c7dad0e2d61 pllua-01-0.3.1-include.patch" diff --git a/testing/pllua/pllua-01-0.3.1-include.patch b/testing/pllua/pllua-01-0.3.1-include.patch deleted file mode 100644 index afbf8a9845..0000000000 --- a/testing/pllua/pllua-01-0.3.1-include.patch +++ /dev/null @@ -1,14 +0,0 @@ -#most of fix from here http://postgis.refractions.net/pipermail/postgis-devel/2009-February/004879.html ---- pllua-0.3.1/plluaapi.c.orig Thu Sep 17 15:34:07 2009 -+++ pllua-0.3.1/plluaapi.c Thu Sep 17 15:34:18 2009 -@@ -7,6 +7,10 @@ - - #include "pllua.h" - #include "rowstamp.h" -+#include "utils/guc.h" -+extern Datum textout (PG_FUNCTION_ARGS); -+extern Datum bpcharout(PG_FUNCTION_ARGS); -+extern Datum varcharout(PG_FUNCTION_ARGS); - - /* extended function info */ - typedef struct luaP_Info { -- cgit v1.2.3