pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lua-sql-postgres: Revamp package for Makefile.common



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sat Oct 8 14:07:17 2016 +0200
Changeset:	c49e5ad0036b594f93f926313cb19dcd6c1e6c88

Modified Files:
	lua-sql-postgres/Makefile

Log Message:
lua-sql-postgres: Revamp package for Makefile.common

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c49e5ad0036b594f93f926313cb19dcd6c1e6c88

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 lua-sql-postgres/Makefile | 21 +++++----------------
 1 file changed, 5 insertions(+), 16 deletions(-)

diffs:
diff --git a/lua-sql-postgres/Makefile b/lua-sql-postgres/Makefile
index eaaa027..d21a37d 100644
--- a/lua-sql-postgres/Makefile
+++ b/lua-sql-postgres/Makefile
@@ -1,27 +1,16 @@
 # $NetBSD: Makefile,v 1.9 2012/11/25 23:32:27 othyro Exp $
 
-GITHUB_PROJECT=	luasql
-DISTNAME=	luasql-2.3.2
-PKGNAME=	${LUA_PKGPREFIX}-${DISTNAME:S/luasql/sql-postgres/}
-CATEGORIES=	databases lua
-MASTER_SITES=	${MASTER_SITE_GITHUB:=keplerproject/}
-GITHUB_TAG=	v${PKGVERSION_NOREV}
+.include "../../wip/lua-sql-mysql/Makefile.common"
 
-#https://github.com/keplerproject/luasql/archive/v2.3.2.zip
+PKGNAME=	${LUA_PKGPREFIX}-${DISTNAME:S/luasql/sql-postgres/}
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=	http://www.keplerproject.org/luasql/
 COMMENT=	PostgreSQL bindings for Lua
 
-USE_TOOLS=		gmake
-BUILD_TARGET=		postgres
+BUILD_TARGET=	postgres
 
-INSTALLATION_DIRS=	lib
-MAKE_FLAGS+=		DRIVER_LIBS_postgres="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.${PGSQL_TYPE}}/lib -L${BUILDLINK_PREFIX.${PGSQL_TYPE}}/lib -lpq"
-MAKE_FLAGS+=		DRIVER_INCS_postgres=-I${BUILDLINK_PREFIX.${PGSQL_TYPE}}/include
-INSTALL_MAKE_FLAGS+=	PREFIX=${DESTDIR}${PREFIX}
-INSTALL_MAKE_FLAGS+=	LUA_LIBDIR=${DESTDIR}${PREFIX}/${LUA_CDIR}
+MAKE_FLAGS+=	DRIVER_LIBS_postgres="${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.${PGSQL_TYPE}}/lib -L${BUILDLINK_PREFIX.${PGSQL_TYPE}}/lib -lpq"
+MAKE_FLAGS+=	DRIVER_INCS_postgres=-I${BUILDLINK_PREFIX.${PGSQL_TYPE}}/include
 
-.include "../../lang/lua/module.mk"
 .include "../../mk/pgsql.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index