1 |
caleb 08/03/26 14:02:49 |
2 |
|
3 |
Added: libpq-8.3.1.ebuild |
4 |
Log: |
5 |
Add libpq from 206725 |
6 |
(Portage version: 2.1.4.4) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 dev-db/libpq/libpq-8.3.1.ebuild |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libpq/libpq-8.3.1.ebuild?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-db/libpq/libpq-8.3.1.ebuild?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: libpq-8.3.1.ebuild |
15 |
=================================================================== |
16 |
# Copyright 1999-2008 Gentoo Foundation |
17 |
# Distributed under the terms of the GNU General Public License v2 |
18 |
# $Header: /var/cvsroot/gentoo-x86/dev-db/libpq/libpq-8.3.1.ebuild,v 1.1 2008/03/26 14:02:49 caleb Exp $ |
19 |
|
20 |
inherit eutils flag-o-matic toolchain-funcs |
21 |
|
22 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" |
23 |
|
24 |
DESCRIPTION="PostgreSQL libraries." |
25 |
HOMEPAGE="http://www.postgresql.org/" |
26 |
SRC_URI="mirror://postgresql/source/v${PV}/postgresql-${PV}.tar.bz2" |
27 |
LICENSE="POSTGRESQL" |
28 |
SLOT="4" |
29 |
IUSE="kerberos nls pam pg-intdatetime readline ssl threads zlib" |
30 |
|
31 |
RDEPEND="!<=dev-db/postgresql-8.1.4 |
32 |
kerberos? ( virtual/krb5 ) |
33 |
pam? ( virtual/pam ) |
34 |
readline? ( >=sys-libs/readline-4.1 ) |
35 |
ssl? ( >=dev-libs/openssl-0.9.6-r1 ) |
36 |
zlib? ( >=sys-libs/zlib-1.1.3 )" |
37 |
DEPEND="${RDEPEND} |
38 |
sys-devel/autoconf |
39 |
>=sys-devel/bison-1.875 |
40 |
nls? ( sys-devel/gettext )" |
41 |
|
42 |
S="${WORKDIR}/postgresql-${PV}" |
43 |
|
44 |
pkg_preinst() { |
45 |
# Removing wrong symlink created by previous ebuild |
46 |
if [[ -L "${ROOT}/usr/include/libpq" ]] ; then |
47 |
rm -f "${ROOT}/usr/include/libpq" |
48 |
fi |
49 |
} |
50 |
|
51 |
src_unpack() { |
52 |
unpack ${A} |
53 |
cd "${S}" |
54 |
|
55 |
epatch "${FILESDIR}/${PN}-${PV}-gentoo.patch" |
56 |
} |
57 |
|
58 |
src_compile() { |
59 |
filter-flags -ffast-math -feliminate-dwarf2-dups |
60 |
|
61 |
econf --prefix=/usr \ |
62 |
--includedir=/usr/include/postgresql/libpq-${SLOT} \ |
63 |
--sysconfdir=/etc/postgresql \ |
64 |
--mandir=/usr/share/man \ |
65 |
--host=${CHOST} \ |
66 |
--with-docdir=/usr/share/doc/${PF} \ |
67 |
--libdir=/usr/$(get_libdir) \ |
68 |
--enable-depend \ |
69 |
$(use_with kerberos krb5) \ |
70 |
$(use_enable nls ) \ |
71 |
$(use_with pam) \ |
72 |
--without-perl \ |
73 |
$(use_enable pg-intdatetime integer-datetimes ) \ |
74 |
--without-python \ |
75 |
$(use_with readline) \ |
76 |
$(use_with ssl openssl) \ |
77 |
--without-tcl \ |
78 |
$(use_enable threads thread-safety ) \ |
79 |
$(use_with zlib) \ |
80 |
|| die "configure failed" |
81 |
|
82 |
cd "${S}/src/interfaces/libpq" |
83 |
emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake libpq failed" |
84 |
|
85 |
cd "${S}/src/bin/pg_config" |
86 |
emake -j1 LD="$(tc-getLD) $(get_abi_LDFLAGS)" || die "emake pg_config failed" |
87 |
} |
88 |
|
89 |
src_install() { |
90 |
cd "${S}/src/interfaces/libpq" |
91 |
emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || die "emake install libpq failed" |
92 |
|
93 |
cd "${S}/src/include" |
94 |
emake DESTDIR="${D}" install || die "emake install headers failed" |
95 |
|
96 |
cd "${S}/src/bin/pg_config" |
97 |
emake DESTDIR="${D}" install || die "emake install pg_config failed" |
98 |
|
99 |
cd "${S}" |
100 |
dodoc README HISTORY |
101 |
|
102 |
dosym libpq-${SLOT}.a /usr/$(get_libdir)/libpq.a |
103 |
|
104 |
for f in $(ls -1 "${D}"/usr/include/postgresql/libpq-${SLOT}/*.h) ; do |
105 |
dosym postgresql/libpq-${SLOT}/$(basename ${f}) /usr/include/ |
106 |
done |
107 |
|
108 |
dodir /usr/include/libpq |
109 |
for f in $(ls -1 "${D}"/usr/include/postgresql/libpq-${SLOT}/libpq/*.h) ; do |
110 |
dosym ../postgresql/libpq-${SLOT}/libpq/$(basename ${f}) /usr/include/libpq/ |
111 |
done |
112 |
|
113 |
cd "${D}/usr/include/postgresql/libpq-${SLOT}" |
114 |
for f in $(find * -name '*.h' -print) ; do |
115 |
destdir=$(dirname ${f}) |
116 |
if [[ ! -d "${D}/usr/include/postgresql/${destdir}" ]] ; then |
117 |
dodir "/usr/include/postgresql/${destdir}" |
118 |
fi |
119 |
dosym /usr/include/postgresql/libpq-${SLOT}/${f} "/usr/include/postgresql/${destdir}/" |
120 |
done |
121 |
} |
122 |
|
123 |
src_test() { |
124 |
einfo "No tests available for libpq." |
125 |
} |
126 |
|
127 |
|
128 |
|
129 |
-- |
130 |
gentoo-commits@l.g.o mailing list |