diff options
author | Masatomo Nakano <nakano@gentoo.org> | 2004-07-21 19:11:10 +0000 |
---|---|---|
committer | Masatomo Nakano <nakano@gentoo.org> | 2004-07-21 19:11:10 +0000 |
commit | fc50c1b1b9bbcd2453a1fdc56212eea5f30171ee (patch) | |
tree | 67fd3af93ae707eb139a134c6bf814a1d72ca823 /dev-db/postgresql | |
parent | version bump + DEPEND fix (diff) | |
download | historical-fc50c1b1b9bbcd2453a1fdc56212eea5f30171ee.tar.gz historical-fc50c1b1b9bbcd2453a1fdc56212eea5f30171ee.tar.bz2 historical-fc50c1b1b9bbcd2453a1fdc56212eea5f30171ee.zip |
Fixed header path. (#56091)
Diffstat (limited to 'dev-db/postgresql')
-rw-r--r-- | dev-db/postgresql/ChangeLog | 6 | ||||
-rw-r--r-- | dev-db/postgresql/Manifest | 6 | ||||
-rw-r--r-- | dev-db/postgresql/postgresql-7.3.6-r2.ebuild | 34 | ||||
-rw-r--r-- | dev-db/postgresql/postgresql-7.4.3-r1.ebuild | 16 |
4 files changed, 38 insertions, 24 deletions
diff --git a/dev-db/postgresql/ChangeLog b/dev-db/postgresql/ChangeLog index 4ff9131be46e..4e116c35ac3d 100644 --- a/dev-db/postgresql/ChangeLog +++ b/dev-db/postgresql/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-db/postgresql # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/ChangeLog,v 1.111 2004/07/18 08:42:36 nakano Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/ChangeLog,v 1.112 2004/07/21 19:11:10 nakano Exp $ + + 21 Jul 2004; Masatomo Nakano <nakano@gentoo.org> postgresql-7.3.6-r2.ebuild, + postgresql-7.4.3-r1.ebuild: + Fixed header path. (#56091) *postgresql-7.3.6-r2 (18 Jul 2004) diff --git a/dev-db/postgresql/Manifest b/dev-db/postgresql/Manifest index 87a2a4e3f617..14fc6d40bb09 100644 --- a/dev-db/postgresql/Manifest +++ b/dev-db/postgresql/Manifest @@ -1,8 +1,8 @@ MD5 52a786d752a82349212155903662c276 postgresql-7.3.6-r1.ebuild 7488 -MD5 ec293cd72bc9c1c31b75dc9067c1f61e postgresql-7.4.3-r1.ebuild 9732 +MD5 740dfbe9329643b15db2ccff0d8db16b postgresql-7.4.3-r1.ebuild 10004 MD5 0cfe4ea1b66826088bff446a34518c0c postgresql-7.4.3.ebuild 9736 -MD5 86f733648867f5c57f32287d2d2fe1c0 postgresql-7.3.6-r2.ebuild 7479 -MD5 87d065b32cba9b45f4c92fcf7b8ea03b ChangeLog 20509 +MD5 af789ce84297f7afdd7c028c8f384537 postgresql-7.3.6-r2.ebuild 7870 +MD5 5f8ec741211a0db03761c4edfb7517fc ChangeLog 20649 MD5 f8d3d207746da2a3cd14dcaab8daab76 metadata.xml 163 MD5 fe8563fd37bfee794b28728f0842b888 files/postgresql.init-7.3.6 1281 MD5 b54624cb385431b9b3d4b167c2a9aca4 files/postgresql.init-7.4.3 1281 diff --git a/dev-db/postgresql/postgresql-7.3.6-r2.ebuild b/dev-db/postgresql/postgresql-7.3.6-r2.ebuild index 79277b12121f..1912271136bb 100644 --- a/dev-db/postgresql/postgresql-7.3.6-r2.ebuild +++ b/dev-db/postgresql/postgresql-7.3.6-r2.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.3.6-r2.ebuild,v 1.1 2004/07/18 08:42:36 nakano Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.3.6-r2.ebuild,v 1.2 2004/07/21 19:11:10 nakano Exp $ -inherit flag-o-matic +inherit gnuconfig flag-o-matic DESCRIPTION="sophisticated Object-Relational DBMS" @@ -50,14 +50,14 @@ pkg_setup() { eerror "pg_restore to import them when you have upgraded completely." eerror "You must remove your entire database directory to continue." eerror "(database directory = ${PG_DIR})." - die + exit 1 fi fi } check_java_config() { JDKHOME="`java-config --jdk-home`" - if [[ -z ${JDKHOME} || ! -d ${JDKHOME} ]]; then + if [[ -z "${JDKHOME}" || ! -d "${JDKHOME}" ]]; then NOJDKERROR="You need to use java-config to set your JVM to a JDK!" eerror "${NOJDKERROR}" die "${NOJDKERROR}" @@ -93,11 +93,15 @@ src_compile() { # Gerk - Nov 26, 2002 use ppc && CFLAGS="-pipe -fsigned-char" + # Detect mips systems properly + gnuconfig_update + ./configure --prefix=/usr \ --mandir=/usr/share/man \ --host=${CHOST} \ - --docdir=/usr/share/doc/${P} \ + --docdir=/usr/share/doc/${PF} \ --libdir=/usr/lib \ + --includedir=/usr/include/postgresql/pgsql \ --enable-depend \ --with-gnu-ld \ --with-maxbackends=1024 \ @@ -109,10 +113,7 @@ src_compile() { } src_install() { - addwrite "/usr/share/man/man3/Pg.3pm" - - if use perl - then + if use perl; then mv ${S}/src/pl/plperl/Makefile ${S}/src/pl/plperl/Makefile_orig sed -e "s:(INST_DYNAMIC) /usr/lib:(INST_DYNAMIC) ${D}/usr/lib:" \ ${S}/src/pl/plperl/Makefile_orig > ${S}/src/pl/plperl/Makefile @@ -121,8 +122,8 @@ src_install() { ${S}/src/pl/plperl/GNUmakefile_orig > ${S}/src/pl/plperl/GNUmakefile fi - make DESTDIR=${D} LIBDIR=${D}/usr/lib install || die - make DESTDIR=${D} install-all-headers || die + make DESTDIR=${D} includedir_server=/usr/include/postgresql/server includedir_internal=/usr/include/postgresql/internal LIBDIR=${D}/usr/lib install || die + make DESTDIR=${D} includedir_server=/usr/include/postgresql/server includedir_internal=/usr/include/postgresql/internal install-all-headers || die cd ${S}/contrib make DESTDIR=${D} LIBDIR=${D}/usr/lib install || die cd ${S} @@ -130,12 +131,17 @@ src_install() { dodoc contrib/adddepend/* if use java; then + # we need to remove jar file after dojar; otherwise two same jar + # file are installed. dojar ${D}/usr/share/postgresql/java/postgresql.jar rm ${D}/usr/share/postgresql/java/postgresql.jar fi - dodir /usr/include/postgresql/pgsql - cp ${D}/usr/include/*.h ${D}/usr/include/postgresql/pgsql + # backward compatibility + for i in ${D}/usr/include/postgresql/pgsql/* + do + ln -s ${i} ${D}/usr/include/ + done cd ${S}/doc dodoc FAQ* README.* TODO bug.template @@ -183,7 +189,7 @@ pkg_config() { eerror "Postgres ${PV} cannot upgrade your existing databases." eerror "You must remove your entire database directory to continue." eerror "(database directory = ${PG_DIR})." - die + exit 1 else einfon "A postgres data directory already exists from version "; cat ${PG_DIR}/data/PG_VERSION einfo "Read the documentation to check how to upgrade to version ${PV}." diff --git a/dev-db/postgresql/postgresql-7.4.3-r1.ebuild b/dev-db/postgresql/postgresql-7.4.3-r1.ebuild index ea4406935e71..c3143d9f25fe 100644 --- a/dev-db/postgresql/postgresql-7.4.3-r1.ebuild +++ b/dev-db/postgresql/postgresql-7.4.3-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.4.3-r1.ebuild,v 1.1 2004/07/18 08:42:36 nakano Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/postgresql/postgresql-7.4.3-r1.ebuild,v 1.2 2004/07/21 19:11:10 nakano Exp $ inherit eutils gnuconfig flag-o-matic @@ -60,7 +60,7 @@ pkg_setup() { check_java_config() { JDKHOME="`java-config --jdk-home`" - if [[ -z ${JDKHOME} && ! -d ${JDKHOME} ]]; then + if [[ -z "${JDKHOME}" || ! -d "${JDKHOME}" ]]; then NOJDKERROR="You need to use java-config to set your JVM to a JDK!" eerror "${NOJDKERROR}" die "${NOJDKERROR}" @@ -120,6 +120,7 @@ src_compile() { --host=${CHOST} \ --docdir=/usr/share/doc/${PF} \ --libdir=/usr/lib \ + --includedir=/usr/include/postgresql/pgsql \ --enable-depend \ --with-gnu-ld \ --with-maxbackends=${MAX_CONNECTIONS} \ @@ -140,8 +141,8 @@ src_install() { ${S}/src/pl/plperl/GNUmakefile_orig > ${S}/src/pl/plperl/GNUmakefile fi - make DESTDIR=${D} LIBDIR=${D}/usr/lib install || die - make DESTDIR=${D} install-all-headers || die + make DESTDIR=${D} includedir_server=/usr/include/postgresql/server includedir_internal=/usr/include/postgresql/internal LIBDIR=${D}/usr/lib install || die + make DESTDIR=${D} includedir_server=/usr/include/postgresql/server includedir_internal=/usr/include/postgresql/internal install-all-headers || die cd ${S}/contrib make DESTDIR=${D} LIBDIR=${D}/usr/lib install || die cd ${S} @@ -162,8 +163,11 @@ src_install() { rm ${D}/usr/share/postgresql/java/postgresql-examples.jar fi - dodir /usr/include/postgresql/pgsql - cp ${D}/usr/include/*.h ${D}/usr/include/postgresql/pgsql + # backward compatibility + for i in ${D}/usr/include/postgresql/pgsql/* + do + ln -s ${i} ${D}/usr/include/ + done cd ${S}/doc dodoc FAQ* README.* TODO bug.template |