Remove -pgsql subpackage to avoid an endless loop as the next version of

postgresql will provide native uuid support, which depends on uuid.

Except a few function names your databases will need no changes.

For the list of new functions look at the postgresql-docs package or
http://www.postgresql.org/docs/8.3/static/uuid-ossp.html.

tests & ok mbalmer@
This commit is contained in:
simon 2008-03-24 17:25:49 +00:00
parent d7a7ffd969
commit 1ae079219e
4 changed files with 3 additions and 71 deletions

View File

@ -1,16 +1,14 @@
# $OpenBSD: Makefile,v 1.29 2007/09/16 02:53:14 merdely Exp $
# $OpenBSD: Makefile,v 1.30 2008/03/24 17:25:49 simon Exp $
SHARED_ONLY= Yes
COMMENT-main= ISO-C API and CLI for generating UUIDs
COMMENT-perl= UUID modules for Perl
COMMENT-pgsql= UUID extension for PostgreSQL
VERSION= 1.6.0
DISTNAME= uuid-${VERSION}
FULLPKGNAME-main= uuid-${VERSION}
FULLPKGNAME-perl= p5-UUID-${VERSION}p0
FULLPKGNAME-pgsql= postgresql-uuid-${VERSION}
CATEGORIES= devel
SHARED_LIBS= uuid 13.22 \
uuid++ 14.21
@ -26,7 +24,7 @@ PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MULTI_PACKAGES= -main -perl -pgsql
MULTI_PACKAGES= -main -perl
WANTLIB-main= c
@ -34,19 +32,10 @@ CATEGORIES-perl= devel perl5
WANTLIB-perl=
LIB_DEPENDS-perl= uuid.>=12::devel/uuid
CATEGORIES-pgsql= devel databases
WANTLIB-pgsql= c
LIB_DEPENDS-pgsql= uuid.>=12::devel/uuid
RUN_DEPENDS-pgsql= :postgresql-server-*:databases/postgresql,-server
BUILD_DEPENDS+= ${RUN_DEPENDS-pgsql}
USE_LIBTOOL= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --with-perl --with-cxx \
--without-php --with-pgsql
pre-build:
@cp ${FILESDIR}/Makefile ${WRKSRC}/pgsql
--without-php --without-pgsql
.include <bsd.port.mk>

View File

@ -1,48 +0,0 @@
LIB= uuid
PG_CONFIG?= pg_config
PG_CFLAGS!= ${PG_CONFIG} --cflags
PG_CPPFLAGS!= ${PG_CONFIG} --cppflags
PG_INCDIR!= ${PG_CONFIG} --pkgincludedir
PG_LIBDIR!= ${PG_CONFIG} --pkglibdir
PG_SHAREDIR!= ${PG_CONFIG} --sharedir
PG_DOCDIR!= ${PG_CONFIG} --docdir
CFLAGS= ${PG_CFLAGS}
CPPFLAGS= ${PG_CPPFLAGS} -I.. -I${PG_INCDIR}/server -I${PG_INCDIR}/internal
LDFLAGS= -L../.libs -L${PG_LIBDIR}
LDADD= -luuid -lc
.SUFFIXES: .sql .sql.in .c .o .so
all: ${LIB:=.sql} ${LIB:=.so}
.sql.in.sql:
sed -e 's,MODULE_PATHNAME,$$libdir/$*,g' $< >$@
.c.o:
${COMPILE.c} ${PICFLAG} -DPIC ${.IMPSRC} -o ${.TARGET}
.o.so:
${AR} cr ${LIB}.a uuid.o
${RANLIB} ${LIB}.a
${CC} ${CFLAGS} ${PICFLAG} -DPIC -shared -Wl,-x ${.IMPSRC} \
${LDFLAGS} ${LDADD} -o ${.TARGET}
install: all
${INSTALL} -d ${DESTDIR}${PG_LIBDIR}
${INSTALL} ${LIB:=.so} ${DESTDIR}${PG_LIBDIR}/${LIB:=.so}
${INSTALL} -d ${DESTDIR}${PG_SHAREDIR}
${INSTALL} uuid.sql ${DESTDIR}${PG_SHAREDIR}/uuid.sql
${INSTALL} -d ${DESTDIR}${PG_DOCDIR}
${INSTALL} uuid.txt ${DESTDIR}${PG_DOCDIR}/uuid.txt
clean:
rm -f a.out [Ee]rrs mklog core *.core
rm -f ${LIB:=.sql} ${LIB}*.{a,o,so}
.PHONY: clean
.include <bsd.own.mk>

View File

@ -1,2 +0,0 @@
This is the OSSP uuid binding for the PostgreSQL RDBMS, providing
native UUID data type support.

View File

@ -1,7 +0,0 @@
@comment $OpenBSD: PLIST-pgsql,v 1.1 2007/06/19 16:09:12 simon Exp $
lib/postgresql/
lib/postgresql/uuid.so
share/doc/postgresql/
share/doc/postgresql/uuid.txt
share/postgresql/
share/postgresql/uuid.sql