mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Split out postgresql-python port on to bunch of PostgreSQL version-dependent ones,
so the packages can be built with different versions of PostgreSQL. The patch is from crees@ with couple additions from me. It has some problems that prevents the build with python3, but it was decided that it's better to add this as starting point. Maintainership of this port also was passed to pgsql@ team. PR: 166999 PR: 174152 Reported by: many Approved by: pgsql (crees)
This commit is contained in:
parent
7e017606d5
commit
6059d46a04
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=310678
1
MOVED
1
MOVED
@ -4015,3 +4015,4 @@ devel/lbpp||2013-01-13|Has expired: Dead upstream since 2001
|
||||
devel/titano||2013-01-13|Has expired: Dead upstream since 2001
|
||||
games/py-anki|games/anki|2013-01-16|Project was merged
|
||||
mail/claws-mail-synce||2013-01-16|Has expired: No longer supported by Claws Mail team
|
||||
databases/postgresql-plpython|databases/postgresql90-python|2013-01-20|This port was splitted out to several versioned ports
|
||||
|
@ -635,7 +635,6 @@
|
||||
SUBDIR += postgresql-odbc
|
||||
SUBDIR += postgresql-pllua
|
||||
SUBDIR += postgresql-plproxy
|
||||
SUBDIR += postgresql-plpython
|
||||
SUBDIR += postgresql-plruby
|
||||
SUBDIR += postgresql-relay
|
||||
SUBDIR += postgresql-repmgr
|
||||
@ -643,12 +642,14 @@
|
||||
SUBDIR += postgresql83-contrib
|
||||
SUBDIR += postgresql83-docs
|
||||
SUBDIR += postgresql83-plperl
|
||||
SUBDIR += postgresql83-plpython
|
||||
SUBDIR += postgresql83-pltcl
|
||||
SUBDIR += postgresql83-server
|
||||
SUBDIR += postgresql84-client
|
||||
SUBDIR += postgresql84-contrib
|
||||
SUBDIR += postgresql84-docs
|
||||
SUBDIR += postgresql84-plperl
|
||||
SUBDIR += postgresql84-plpython
|
||||
SUBDIR += postgresql84-pltcl
|
||||
SUBDIR += postgresql84-server
|
||||
SUBDIR += postgresql90-client
|
||||
@ -656,6 +657,7 @@
|
||||
SUBDIR += postgresql90-docs
|
||||
SUBDIR += postgresql90-pgtcl
|
||||
SUBDIR += postgresql90-plperl
|
||||
SUBDIR += postgresql90-plpython
|
||||
SUBDIR += postgresql90-pltcl
|
||||
SUBDIR += postgresql90-server
|
||||
SUBDIR += postgresql91-client
|
||||
@ -663,6 +665,7 @@
|
||||
SUBDIR += postgresql91-docs
|
||||
SUBDIR += postgresql91-pgtcl
|
||||
SUBDIR += postgresql91-plperl
|
||||
SUBDIR += postgresql91-plpython
|
||||
SUBDIR += postgresql91-pltcl
|
||||
SUBDIR += postgresql91-server
|
||||
SUBDIR += postgresql92-client
|
||||
@ -670,6 +673,7 @@
|
||||
SUBDIR += postgresql92-docs
|
||||
SUBDIR += postgresql92-pgtcl
|
||||
SUBDIR += postgresql92-plperl
|
||||
SUBDIR += postgresql92-plpython
|
||||
SUBDIR += postgresql92-pltcl
|
||||
SUBDIR += postgresql92-server
|
||||
SUBDIR += postgresql_autodoc
|
||||
|
@ -1,45 +0,0 @@
|
||||
# New ports collection makefile for: PostgreSQL PL/Python
|
||||
# Date created: March 4, 2004
|
||||
# Whom: Dima Dorfman <dd@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= postgresql
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= databases python
|
||||
PKGNAMESUFFIX= -plpython
|
||||
|
||||
MAINTAINER= rm@FreeBSD.org
|
||||
COMMENT= A module for using Python to write SQL functions
|
||||
|
||||
RUN_DEPENDS= postgres:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../postgresql${PGSQL_VER}-server
|
||||
|
||||
DEFAULT_PGSQL_VER?=90
|
||||
|
||||
# can't include <bsd.port.pre.mk> in a slave port
|
||||
# so set these instead:
|
||||
LOCALBASE?= /usr/local
|
||||
SED?= /usr/bin/sed
|
||||
|
||||
# Setting/finding PostgreSQL version we want.
|
||||
.if exists(${LOCALBASE}/bin/postmaster)
|
||||
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | ${SED} -n 's/.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
||||
.elif exists(${LOCALBASE}/bin/pg_config)
|
||||
PGSQL_VER!= ${LOCALBASE}/bin/pg_config --version | ${SED} -n 's/PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
||||
.else
|
||||
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
||||
.endif
|
||||
|
||||
USE_PYTHON= yes
|
||||
CONFIGURE_ARGS= --with-python
|
||||
|
||||
BUILD_DIRS= src/pl/plpython
|
||||
SLAVE_ONLY= yes
|
||||
|
||||
POSTGRESQL_PORT= databases/postgresql${PGSQL_VER}-server
|
||||
PLIST_SUB= PYTHON_MAJOR_VER=${PYTHON_VER:R}
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
6
databases/postgresql83-plpython/Makefile
Normal file
6
databases/postgresql83-plpython/Makefile
Normal file
@ -0,0 +1,6 @@
|
||||
# $FreeBSD$
|
||||
|
||||
USE_PYTHON= -2.7
|
||||
WANT_PGSQL_VER= 83
|
||||
|
||||
.include "${.CURDIR}/../postgresql90-plpython/Makefile"
|
6
databases/postgresql84-plpython/Makefile
Normal file
6
databases/postgresql84-plpython/Makefile
Normal file
@ -0,0 +1,6 @@
|
||||
# $FreeBSD$
|
||||
|
||||
USE_PYTHON= -2.7
|
||||
WANT_PGSQL_VER= 84
|
||||
|
||||
.include "${.CURDIR}/../postgresql90-plpython/Makefile"
|
31
databases/postgresql90-plpython/Makefile
Normal file
31
databases/postgresql90-plpython/Makefile
Normal file
@ -0,0 +1,31 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= postgresql
|
||||
CATEGORIES= databases python
|
||||
PKGNAMESUFFIX= ${WANT_PGSQL_VER}-plpython
|
||||
|
||||
MAINTAINER= pgsql@FreeBSD.org
|
||||
COMMENT= Module for using Python to write SQL functions
|
||||
|
||||
USE_PGSQL= server
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../postgresql${WANT_PGSQL_VER}-server
|
||||
|
||||
WANT_PGSQL_VER?= 90
|
||||
|
||||
USE_PYTHON?= yes
|
||||
PYTHON_MAJOR_VER= ${PYTHON_VER:R}
|
||||
CONFIGURE_ARGS= --with-python
|
||||
PLIST_SUB= PYTHON_MAJOR_VER=${PYTHON_MAJOR_VER}
|
||||
|
||||
.if ${PYTHON_MAJOR_VER} == 3
|
||||
PLIST_SUB+= PYTHON3=""
|
||||
.else
|
||||
PLIST_SUB+= PYTHON3="@comment "
|
||||
.endif
|
||||
|
||||
BUILD_DIRS= src/backend src/pl/plpython
|
||||
INSTALL_DIRS= src/pl/plpython
|
||||
SLAVE_ONLY= yes
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
@ -3,4 +3,4 @@ procedures in Python (http://www.python.org/).
|
||||
|
||||
This software is part of the standard PostgreSQL distribution.
|
||||
|
||||
WWW: http://www.postgresql.org/
|
||||
WWW: http://www.postgresql.org/
|
5
databases/postgresql91-plpython/Makefile
Normal file
5
databases/postgresql91-plpython/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
# $FreeBSD$
|
||||
|
||||
WANT_PGSQL_VER= 91
|
||||
|
||||
.include "${.CURDIR}/../postgresql90-plpython/Makefile"
|
5
databases/postgresql92-plpython/Makefile
Normal file
5
databases/postgresql92-plpython/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
# $FreeBSD$
|
||||
|
||||
WANT_PGSQL_VER= 92
|
||||
|
||||
.include "${.CURDIR}/../postgresql90-plpython/Makefile"
|
Loading…
Reference in New Issue
Block a user