Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 70133 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/net-libs/c-client/c-client-2004a.ebuild (-2 / +16 lines)
Lines 33-39 Link Here
33
	# generally should be built with it anyway.
33
	# generally should be built with it anyway.
34
	append-flags -fPIC
34
	append-flags -fPIC
35
35
36
	# Modifications so we can build it optimially and correctly
36
	# Modifications so we can build it optimally and correctly
37
	sed \
37
	sed \
38
		-e "s:BASECFLAGS=\".*\":BASECFLAGS=\"${CFLAGS}\":g" \
38
		-e "s:BASECFLAGS=\".*\":BASECFLAGS=\"${CFLAGS}\":g" \
39
		-e 's:SSLDIR=/usr/local/ssl:SSLDIR=/usr:g' \
39
		-e 's:SSLDIR=/usr/local/ssl:SSLDIR=/usr:g' \
Lines 44-49 Link Here
44
	EPATCH_OPTS="${EPATCH_OPTS} -d ${S}" \
44
	EPATCH_OPTS="${EPATCH_OPTS} -d ${S}" \
45
	epatch ${FILESDIR}/2002d-Makefile.patch || die "epatch failed"
45
	epatch ${FILESDIR}/2002d-Makefile.patch || die "epatch failed"
46
46
47
	# Apply this patch conditionally - it adds the compilation of a .so for PHP
48
	# on the amd64 platform.
49
	use amd64 && epatch ${FILESDIR}/${P}-amd64-so-fix.patch
50
47
	# Remove the pesky checks about SSL stuff
51
	# Remove the pesky checks about SSL stuff
48
	sed -e '/read.*exit/d' -i ${S}/Makefile
52
	sed -e '/read.*exit/d' -i ${S}/Makefile
49
	elibtoolize
53
	elibtoolize
Lines 66-73 Link Here
66
70
67
	# Library binary
71
	# Library binary
68
	dolib.a c-client/c-client.a
72
	dolib.a c-client/c-client.a
69
	dosym /usr/lib/c-client.a /usr/lib/libc-client.a
73
	dosym /usr/$(get_libdir)/c-client.a /usr/$(get_libdir)/libc-client.a
74
75
	# Now the shared library created for amd64
76
	if use amd64; then
77
		dolib c-client/libc-client.so*
78
		cd ${D}/usr/$(get_libdir)
79
		ln -s libc-client.so.1.0.0 libc-client.so.1
80
		ln -s libc-client.so.1 libc-client.so
81
	fi
70
82
83
	cd ${S}
84
	
71
	# Headers
85
	# Headers
72
	insinto /usr/include/imap
86
	insinto /usr/include/imap
73
	doins c-client/*.h
87
	doins c-client/*.h

Return to bug 70133