summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorMasatomo Nakano <nakano@gentoo.org>2005-05-08 17:45:47 +0000
committerMasatomo Nakano <nakano@gentoo.org>2005-05-08 17:45:47 +0000
commit97ea0b3952abb787abda612b3046927ce25a5af5 (patch)
treef3ec4dabe741a4d01d29a175a984bbb71d8ab4ce /dev-db
parentbug 91820 (diff)
downloadhistorical-97ea0b3952abb787abda612b3046927ce25a5af5.tar.gz
historical-97ea0b3952abb787abda612b3046927ce25a5af5.tar.bz2
historical-97ea0b3952abb787abda612b3046927ce25a5af5.zip
initial import
Package-Manager: portage-2.0.51.21-r1
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/libpq/ChangeLog12
-rw-r--r--dev-db/libpq/Manifest8
-rw-r--r--dev-db/libpq/files/digest-libpq-3.21
-rw-r--r--dev-db/libpq/files/digest-libpq-4.01
-rw-r--r--dev-db/libpq/files/libpq-3.2-gentoo.patch43
-rw-r--r--dev-db/libpq/files/libpq-4.0-gentoo.patch43
-rw-r--r--dev-db/libpq/libpq-3.2.ebuild84
-rw-r--r--dev-db/libpq/libpq-4.0.ebuild84
-rw-r--r--dev-db/libpq/metadata.xml5
9 files changed, 281 insertions, 0 deletions
diff --git a/dev-db/libpq/ChangeLog b/dev-db/libpq/ChangeLog
new file mode 100644
index 000000000000..1e279048e3d7
--- /dev/null
+++ b/dev-db/libpq/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for dev-db/libpq
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/libpq/ChangeLog,v 1.1 2005/05/08 17:45:47 nakano Exp $
+
+*libpq-4.0 (08 May 2005)
+*libpq-3.2 (08 May 2005)
+
+ 08 May 2005; Masatomo Nakano <nakano@gentoo.org>
+ +files/libpq-3.2-gentoo.patch, +files/libpq-4.0-gentoo.patch,
+ +metadata.xml, +libpq-3.2.ebuild, +libpq-4.0.ebuild:
+ Initial import.
+
diff --git a/dev-db/libpq/Manifest b/dev-db/libpq/Manifest
new file mode 100644
index 000000000000..0b6d08af7e93
--- /dev/null
+++ b/dev-db/libpq/Manifest
@@ -0,0 +1,8 @@
+MD5 15755aa15d32ce0c6359c94b82218a2c libpq-3.2.ebuild 2491
+MD5 561378a5d3d62df12162fccf7bc80ecb libpq-4.0.ebuild 2491
+MD5 28c702e562d3f20e73d77d55a0f86629 ChangeLog 437
+MD5 f8d3d207746da2a3cd14dcaab8daab76 metadata.xml 163
+MD5 637716f510743dd4c21c51980eb76659 files/libpq-3.2-gentoo.patch 2300
+MD5 5f9040f91914a9aba8ebee9bff295909 files/libpq-4.0-gentoo.patch 2300
+MD5 0540e6c42fdd652b981e236ea835c524 files/digest-libpq-3.2 75
+MD5 ed4897962e8062c29d0a6a2256597034 files/digest-libpq-4.0 75
diff --git a/dev-db/libpq/files/digest-libpq-3.2 b/dev-db/libpq/files/digest-libpq-3.2
new file mode 100644
index 000000000000..175762bb8eb2
--- /dev/null
+++ b/dev-db/libpq/files/digest-libpq-3.2
@@ -0,0 +1 @@
+MD5 b8f8edce5b29bcf785251693c6225885 postgresql-base-8.0.1.tar.bz2 7798118
diff --git a/dev-db/libpq/files/digest-libpq-4.0 b/dev-db/libpq/files/digest-libpq-4.0
new file mode 100644
index 000000000000..62297c01d688
--- /dev/null
+++ b/dev-db/libpq/files/digest-libpq-4.0
@@ -0,0 +1 @@
+MD5 39ef5bfca3d573b356c755b5429aea8b postgresql-base-8.0.2.tar.bz2 7806083
diff --git a/dev-db/libpq/files/libpq-3.2-gentoo.patch b/dev-db/libpq/files/libpq-3.2-gentoo.patch
new file mode 100644
index 000000000000..cff0aa8e4049
--- /dev/null
+++ b/dev-db/libpq/files/libpq-3.2-gentoo.patch
@@ -0,0 +1,43 @@
+diff -Naru postgresql-8.0.1.org/src/interfaces/libpq/Makefile postgresql-8.0.1/src/interfaces/libpq/Makefile
+--- postgresql-8.0.1.org/src/interfaces/libpq/Makefile 2005-03-25 00:35:19.000000000 +0000
++++ postgresql-8.0.1/src/interfaces/libpq/Makefile 2005-05-04 10:26:38.000000000 +0100
+@@ -20,6 +20,8 @@
+ SO_MINOR_VERSION= 0
+ DLTYPE= library
+
++NAME_STATIC_LIB= pq-$(SO_MAJOR_VERSION)
++
+ override CPPFLAGS := -DFRONTEND -I$(srcdir) $(CPPFLAGS) -I$(top_builddir)/src/port
+ override CFLAGS += $(PTHREAD_CFLAGS)
+
+@@ -136,7 +138,7 @@
+ $(INSTALL_DATA) $(srcdir)/libpq-fe.h $(DESTDIR)$(includedir)
+ $(INSTALL_DATA) $(srcdir)/libpq-int.h $(DESTDIR)$(includedir_internal)
+ $(INSTALL_DATA) $(srcdir)/pqexpbuffer.h $(DESTDIR)$(includedir_internal)
+- $(INSTALL_DATA) $(srcdir)/pg_service.conf.sample $(DESTDIR)$(datadir)/pg_service.conf.sample
++ $(INSTALL_DATA) $(srcdir)/pg_service.conf.sample $(DESTDIR)$(datadir)/pg_service-${SO_MAJOR_VERSION}.conf.sample
+
+ installdirs:
+ $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) $(DESTDIR)$(includedir_internal)
+diff -Naru postgresql-8.0.1.org/src/interfaces/libpq/nls.mk postgresql-8.0.1/src/interfaces/libpq/nls.mk
+--- postgresql-8.0.1.org/src/interfaces/libpq/nls.mk 2005-01-14 08:57:06.000000000 +0000
++++ postgresql-8.0.1/src/interfaces/libpq/nls.mk 2005-05-04 10:57:47.000000000 +0100
+@@ -1,5 +1,5 @@
+ # $PostgreSQL: pgsql/src/interfaces/libpq/nls.mk,v 1.20 2005/01/14 08:57:06 petere Exp $
+-CATALOG_NAME := libpq
++CATALOG_NAME := libpq-3
+ AVAIL_LANGUAGES := af cs de es fr hr it ko nb pl pt_BR ru sk sl sv tr zh_CN zh_TW
+ GETTEXT_FILES := fe-auth.c fe-connect.c fe-exec.c fe-lobj.c fe-misc.c fe-protocol2.c fe-protocol3.c fe-secure.c
+ GETTEXT_TRIGGERS:= libpq_gettext pqInternalNotice:2
+diff -Naru postgresql-8.0.1.org/src/Makefile.shlib postgresql-8.0.1/src/Makefile.shlib
+--- postgresql-8.0.1.org/src/Makefile.shlib 2004-11-20 21:13:04.000000000 +0000
++++ postgresql-8.0.1/src/Makefile.shlib 2005-05-04 10:27:51.000000000 +0100
+@@ -355,7 +355,7 @@
+ install-lib: install-lib-static install-lib-shared
+
+ install-lib-static: lib$(NAME).a
+- $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME).a
++ $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME_STATIC_LIB).a
+ ifeq ($(PORTNAME), darwin)
+ cd $(DESTDIR)$(libdir) && \
+ ranlib lib$(NAME).a
diff --git a/dev-db/libpq/files/libpq-4.0-gentoo.patch b/dev-db/libpq/files/libpq-4.0-gentoo.patch
new file mode 100644
index 000000000000..88f97d5d16fa
--- /dev/null
+++ b/dev-db/libpq/files/libpq-4.0-gentoo.patch
@@ -0,0 +1,43 @@
+diff -Naru postgresql-8.0.2.org/src/interfaces/libpq/Makefile postgresql-8.0.2/src/interfaces/libpq/Makefile
+--- postgresql-8.0.2.org/src/interfaces/libpq/Makefile 2005-03-25 00:35:19.000000000 +0000
++++ postgresql-8.0.2/src/interfaces/libpq/Makefile 2005-05-04 10:26:38.000000000 +0100
+@@ -20,6 +20,8 @@
+ SO_MINOR_VERSION= 0
+ DLTYPE= library
+
++NAME_STATIC_LIB= pq-$(SO_MAJOR_VERSION)
++
+ override CPPFLAGS := -DFRONTEND -I$(srcdir) $(CPPFLAGS) -I$(top_builddir)/src/port
+ override CFLAGS += $(PTHREAD_CFLAGS)
+
+@@ -136,7 +138,7 @@
+ $(INSTALL_DATA) $(srcdir)/libpq-fe.h $(DESTDIR)$(includedir)
+ $(INSTALL_DATA) $(srcdir)/libpq-int.h $(DESTDIR)$(includedir_internal)
+ $(INSTALL_DATA) $(srcdir)/pqexpbuffer.h $(DESTDIR)$(includedir_internal)
+- $(INSTALL_DATA) $(srcdir)/pg_service.conf.sample $(DESTDIR)$(datadir)/pg_service.conf.sample
++ $(INSTALL_DATA) $(srcdir)/pg_service.conf.sample $(DESTDIR)$(datadir)/pg_service-${SO_MAJOR_VERSION}.conf.sample
+
+ installdirs:
+ $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) $(DESTDIR)$(includedir_internal)
+diff -Naru postgresql-8.0.2.org/src/interfaces/libpq/nls.mk postgresql-8.0.2/src/interfaces/libpq/nls.mk
+--- postgresql-8.0.2.org/src/interfaces/libpq/nls.mk 2005-01-14 08:57:06.000000000 +0000
++++ postgresql-8.0.2/src/interfaces/libpq/nls.mk 2005-05-04 10:57:47.000000000 +0100
+@@ -1,5 +1,5 @@
+ # $PostgreSQL: pgsql/src/interfaces/libpq/nls.mk,v 1.20 2005/01/14 08:57:06 petere Exp $
+-CATALOG_NAME := libpq
++CATALOG_NAME := libpq-4
+ AVAIL_LANGUAGES := af cs de es fr hr it ko nb pl pt_BR ru sk sl sv tr zh_CN zh_TW
+ GETTEXT_FILES := fe-auth.c fe-connect.c fe-exec.c fe-lobj.c fe-misc.c fe-protocol2.c fe-protocol3.c fe-secure.c
+ GETTEXT_TRIGGERS:= libpq_gettext pqInternalNotice:2
+diff -Naru postgresql-8.0.2.org/src/Makefile.shlib postgresql-8.0.2/src/Makefile.shlib
+--- postgresql-8.0.2.org/src/Makefile.shlib 2004-11-20 21:13:04.000000000 +0000
++++ postgresql-8.0.2/src/Makefile.shlib 2005-05-04 10:27:51.000000000 +0100
+@@ -355,7 +355,7 @@
+ install-lib: install-lib-static install-lib-shared
+
+ install-lib-static: lib$(NAME).a
+- $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME).a
++ $(INSTALL_STLIB) $< $(DESTDIR)$(libdir)/lib$(NAME_STATIC_LIB).a
+ ifeq ($(PORTNAME), darwin)
+ cd $(DESTDIR)$(libdir) && \
+ ranlib lib$(NAME).a
diff --git a/dev-db/libpq/libpq-3.2.ebuild b/dev-db/libpq/libpq-3.2.ebuild
new file mode 100644
index 000000000000..756fff2e09df
--- /dev/null
+++ b/dev-db/libpq/libpq-3.2.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/libpq/libpq-3.2.ebuild,v 1.1 2005/05/08 17:45:47 nakano Exp $
+
+inherit eutils gnuconfig flag-o-matic multilib toolchain-funcs
+
+DESCRIPTION="Libraries of postgresql"
+HOMEPAGE="http://www.postgresql.org/"
+MY_PV=${PV/_/}
+POSTGRESQL_VER="8.0.1"
+MY_P="postgresql"-${POSTGRESQL_VER}
+SRC_URI="mirror://postgresql/source/v${POSTGRESQL_VER}/postgresql-base-${POSTGRESQL_VER}.tar.bz2"
+
+LICENSE="POSTGRESQL"
+SLOT="3"
+KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~amd64 ~ia64 ~s390 ~ppc64"
+IUSE="ssl nls pam readline zlib kerberos"
+#pg-hier"
+
+S=${WORKDIR}/${MY_P}
+DEPEND="virtual/libc
+ sys-devel/autoconf
+ >=sys-libs/ncurses-5.2
+ >=sys-devel/bison-1.875
+ zlib? ( >=sys-libs/zlib-1.1.3 )
+ readline? ( >=sys-libs/readline-4.1 )
+ ssl? ( >=dev-libs/openssl-0.9.6-r1 )
+ nls? ( sys-devel/gettext )
+ kerberos? ( virtual/krb5 )"
+RDEPEND="virtual/libc
+ zlib? ( >=sys-libs/zlib-1.1.3 )
+ ssl? ( >=dev-libs/openssl-0.9.6-r1 )
+ kerberos? ( virtual/krb5 )"
+
+src_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/${P}-gentoo.patch
+}
+
+src_compile() {
+ filter-flags -ffast-math -feliminate-dwarf2-dups
+
+ local myconf
+ use ssl && myconf="$myconf --with-openssl"
+ use nls && myconf="$myconf --enable-nls"
+ use pam && myconf="$myconf --with-pam"
+ use readline || myconf="$myconf --without-readline"
+ use zlib || myconf="$myconf --without-zlib"
+ use kerberos && myconf="$myconf --with-krb5"
+
+ # these are the only working CFLAGS I could get on ppc, so locking them
+ # down, anything more aggressive fails (i.e. -mcpu or -Ox)
+ # Gerk - Nov 26, 2002
+ use ppc && CFLAGS="-pipe -fsigned-char"
+
+ # Detect mips systems properly
+ gnuconfig_update
+
+ ./configure --prefix=/usr \
+ --include=/usr/include/postgresql/libpq-${SLOT} \
+ --mandir=/usr/share/man \
+ --host=${CHOST} \
+ --with-docdir=/usr/share/doc/${PF} \
+ --libdir=/usr/$(get_libdir) \
+ --enable-depend \
+ --with-gnu-ld \
+ $myconf || die
+
+ cd ${S}/src/interfaces/libpq
+ make LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die
+}
+
+src_install() {
+ cd ${S}/src/interfaces/libpq
+ make DESTDIR=${D} LIBDIR=${D}/usr/lib install || die
+
+ cd ${S}
+ dodoc README HISTORY COPYRIGHT INSTALL
+
+ dosym /usr/lib/${P}.a /usr/lib/libpq.a
+ dodir /usr/include/postgresql/internal/
+ dosym /usr/include/postgresql/libpq-${SLOT}/libpq-fe.h /usr/include/
+ dosym /usr/include/postgresql/libpq-${SLOT}/internal/*.h /usr/include/postgresql/internal/
+}
diff --git a/dev-db/libpq/libpq-4.0.ebuild b/dev-db/libpq/libpq-4.0.ebuild
new file mode 100644
index 000000000000..acbb9ade492d
--- /dev/null
+++ b/dev-db/libpq/libpq-4.0.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-db/libpq/libpq-4.0.ebuild,v 1.1 2005/05/08 17:45:47 nakano Exp $
+
+inherit eutils gnuconfig flag-o-matic multilib toolchain-funcs
+
+DESCRIPTION="Libraries of postgresql"
+HOMEPAGE="http://www.postgresql.org/"
+MY_PV=${PV/_/}
+POSTGRESQL_VER="8.0.2"
+MY_P="postgresql"-${POSTGRESQL_VER}
+SRC_URI="mirror://postgresql/source/v${POSTGRESQL_VER}/postgresql-base-${POSTGRESQL_VER}.tar.bz2"
+
+LICENSE="POSTGRESQL"
+SLOT="3"
+KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~arm ~hppa ~amd64 ~ia64 ~s390 ~ppc64"
+IUSE="ssl nls pam readline zlib kerberos"
+#pg-hier"
+
+S=${WORKDIR}/${MY_P}
+DEPEND="virtual/libc
+ sys-devel/autoconf
+ >=sys-libs/ncurses-5.2
+ >=sys-devel/bison-1.875
+ zlib? ( >=sys-libs/zlib-1.1.3 )
+ readline? ( >=sys-libs/readline-4.1 )
+ ssl? ( >=dev-libs/openssl-0.9.6-r1 )
+ nls? ( sys-devel/gettext )
+ kerberos? ( virtual/krb5 )"
+RDEPEND="virtual/libc
+ zlib? ( >=sys-libs/zlib-1.1.3 )
+ ssl? ( >=dev-libs/openssl-0.9.6-r1 )
+ kerberos? ( virtual/krb5 )"
+
+src_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/${P}-gentoo.patch
+}
+
+src_compile() {
+ filter-flags -ffast-math -feliminate-dwarf2-dups
+
+ local myconf
+ use ssl && myconf="$myconf --with-openssl"
+ use nls && myconf="$myconf --enable-nls"
+ use pam && myconf="$myconf --with-pam"
+ use readline || myconf="$myconf --without-readline"
+ use zlib || myconf="$myconf --without-zlib"
+ use kerberos && myconf="$myconf --with-krb5"
+
+ # these are the only working CFLAGS I could get on ppc, so locking them
+ # down, anything more aggressive fails (i.e. -mcpu or -Ox)
+ # Gerk - Nov 26, 2002
+ use ppc && CFLAGS="-pipe -fsigned-char"
+
+ # Detect mips systems properly
+ gnuconfig_update
+
+ ./configure --prefix=/usr \
+ --include=/usr/include/postgresql/libpq-${SLOT} \
+ --mandir=/usr/share/man \
+ --host=${CHOST} \
+ --with-docdir=/usr/share/doc/${PF} \
+ --libdir=/usr/$(get_libdir) \
+ --enable-depend \
+ --with-gnu-ld \
+ $myconf || die
+
+ cd ${S}/src/interfaces/libpq
+ make LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die
+}
+
+src_install() {
+ cd ${S}/src/interfaces/libpq
+ make DESTDIR=${D} LIBDIR=${D}/usr/lib install || die
+
+ cd ${S}
+ dodoc README HISTORY COPYRIGHT INSTALL
+
+ dosym /usr/lib/${P}.a /usr/lib/libpq.a
+ dodir /usr/include/postgresql/internal/
+ dosym /usr/include/postgresql/libpq-${SLOT}/libpq-fe.h /usr/include/
+ dosym /usr/include/postgresql/libpq-${SLOT}/internal/*.h /usr/include/postgresql/internal/
+}
diff --git a/dev-db/libpq/metadata.xml b/dev-db/libpq/metadata.xml
new file mode 100644
index 000000000000..309b51e9a965
--- /dev/null
+++ b/dev-db/libpq/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>postgresql</herd>
+</pkgmetadata>