1 |
eras 11/05/11 10:47:57 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: c-client-2007e-r2.ebuild |
5 |
Log: |
6 |
Symlink shared library - bug #255118. Drop kolab |
7 |
USE flag. QA fixes. |
8 |
|
9 |
(Portage version: 2.1.9.48/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.66 net-libs/c-client/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/c-client/ChangeLog?rev=1.66&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/c-client/ChangeLog?rev=1.66&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/c-client/ChangeLog?r1=1.65&r2=1.66 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-libs/c-client/ChangeLog,v |
21 |
retrieving revision 1.65 |
22 |
retrieving revision 1.66 |
23 |
diff -u -r1.65 -r1.66 |
24 |
--- ChangeLog 16 Mar 2011 13:48:15 -0000 1.65 |
25 |
+++ ChangeLog 11 May 2011 10:47:57 -0000 1.66 |
26 |
@@ -1,6 +1,11 @@ |
27 |
# ChangeLog for net-libs/c-client |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-libs/c-client/ChangeLog,v 1.65 2011/03/16 13:48:15 eras Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-libs/c-client/ChangeLog,v 1.66 2011/05/11 10:47:57 eras Exp $ |
31 |
+ |
32 |
+*c-client-2007e-r2 (11 May 2011) |
33 |
+ |
34 |
+ 11 May 2011; Eray Aslan <eras@g.o> +c-client-2007e-r2.ebuild: |
35 |
+ Symlink shared library - bug #255118. Drop kolab USE flag. |
36 |
|
37 |
16 Mar 2011; Eray Aslan <eras@g.o> c-client-2007e.ebuild, |
38 |
c-client-2007e-r1.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 net-libs/c-client/c-client-2007e-r2.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/c-client/c-client-2007e-r2.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/c-client/c-client-2007e-r2.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: c-client-2007e-r2.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/c-client/c-client-2007e-r2.ebuild,v 1.1 2011/05/11 10:47:57 eras Exp $ |
52 |
|
53 |
EAPI="2" |
54 |
|
55 |
inherit flag-o-matic eutils libtool toolchain-funcs |
56 |
|
57 |
MY_PN=imap |
58 |
MY_P="${MY_PN}-${PV}" |
59 |
S=${WORKDIR}/${MY_P} |
60 |
|
61 |
DESCRIPTION="UW IMAP c-client library" |
62 |
HOMEPAGE="http://www.washington.edu/imap/" |
63 |
SRC_URI="ftp://ftp.cac.washington.edu/imap/${MY_P}.tar.Z" |
64 |
|
65 |
LICENSE="as-is" |
66 |
SLOT="0" |
67 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
68 |
IUSE="doc kernel_linux kernel_FreeBSD pam ssl" |
69 |
|
70 |
RDEPEND="ssl? ( dev-libs/openssl ) |
71 |
!net-mail/uw-imap" |
72 |
DEPEND="${RDEPEND} |
73 |
kernel_linux? ( pam? ( >=sys-libs/pam-0.72 ) )" |
74 |
|
75 |
src_prepare() { |
76 |
# Tarball packed with bad file perms |
77 |
chmod -R u+rwX,go-w . |
78 |
|
79 |
# lots of things need -fPIC, including various platforms, and this library |
80 |
# generally should be built with it anyway. |
81 |
append-flags -fPIC |
82 |
|
83 |
# Modifications so we can build it optimally and correctly |
84 |
sed \ |
85 |
-e "s:BASECFLAGS=\".*\":BASECFLAGS=:g" \ |
86 |
-e 's:SSLDIR=/usr/local/ssl:SSLDIR=/usr:g' \ |
87 |
-e 's:SSLCERTS=$(SSLDIR)/certs:SSLCERTS=/etc/ssl/certs:g' \ |
88 |
-i src/osdep/unix/Makefile || die "Makefile sed fixing failed" |
89 |
|
90 |
# Targets should use the Gentoo (ie linux) fs |
91 |
sed -e '/^bsf:/,/^$/ s:ACTIVEFILE=.*:ACTIVEFILE=/var/lib/news/active:g' \ |
92 |
-i src/osdep/unix/Makefile || die "Makefile sex fixing failed for FreeBSD" |
93 |
|
94 |
# Apply a patch to only build the stuff we need for c-client |
95 |
epatch "${FILESDIR}"/${PN}-2006k_GENTOO_Makefile.patch || die "epatch failed" |
96 |
|
97 |
# Apply patch to add the compilation of a .so for PHP |
98 |
# This was previously conditional, but is more widely useful. |
99 |
epatch "${FILESDIR}"/${PN}-2006k_GENTOO_amd64-so-fix.patch |
100 |
|
101 |
# Remove the pesky checks about SSL stuff |
102 |
sed -e '/read.*exit/d' -i Makefile |
103 |
|
104 |
# Respect LDFLAGS |
105 |
epatch "${FILESDIR}"/${P}-ldflags.patch |
106 |
sed -e "s/CC=cc/CC=$(tc-getCC)/" \ |
107 |
-e "s/ARRC=ar/ARRC=$(tc-getAR)/" \ |
108 |
-e "s/RANLIB=ranlib/RANLIB=$(tc-getRANLIB)/" \ |
109 |
-i src/osdep/unix/Makefile || die "Respecting build flags" |
110 |
|
111 |
elibtoolize |
112 |
} |
113 |
|
114 |
src_compile() { |
115 |
local ssltype target |
116 |
use ssl && ssltype="unix" || ssltype="none" |
117 |
if use kernel_linux ; then |
118 |
use pam && target=lnp || target=lnx |
119 |
elif use kernel_FreeBSD ; then |
120 |
target=bsf |
121 |
fi |
122 |
# no parallel builds supported! |
123 |
emake -j1 SSLTYPE=${ssltype} $target EXTRACFLAGS="${CFLAGS}" EXTRALDFLAGS="${LDFLAGS}" || die "make failed" |
124 |
} |
125 |
|
126 |
src_install() { |
127 |
# Library binary |
128 |
dolib.a c-client/c-client.a || die |
129 |
dosym c-client.a /usr/$(get_libdir)/libc-client.a |
130 |
|
131 |
# Now the shared library |
132 |
dolib.so c-client/libc-client.so.1.0.0 || die |
133 |
|
134 |
cd "${D}"/usr/$(get_libdir) |
135 |
ln -s libc-client.so.1.0.0 libc-client.so.1 |
136 |
ln -s libc-client.so.1.0.0 libc-client.so |
137 |
cd "${S}" |
138 |
|
139 |
# Headers |
140 |
insinto /usr/include/imap |
141 |
doins c-client/*.h |
142 |
doins c-client/linkage.c |
143 |
#exclude these dupes (can't do it before now due to symlink hell) |
144 |
rm "${D}"/usr/include/imap/os_*.h |
145 |
|
146 |
# Docs |
147 |
dodoc README docs/*.txt docs/BUILD docs/CONFIG docs/RELNOTES docs/SSLBUILD |
148 |
if use doc; then |
149 |
docinto rfc |
150 |
dodoc docs/rfc/*.txt |
151 |
docinto draft |
152 |
dodoc docs/draft/* |
153 |
fi |
154 |
} |