net-libs/serf: import from portage

Just copying the ebuilds from portage/ so hopefully no functional changes.

BUG=chromium-os:26016
TEST=`cbuildbot arm-generic-full` works
TEST=build_packages+build_image for x86-alex boots

Change-Id: I1dcd252ebed1d89b61d976f8e56caca90352b344
Reviewed-on: https://gerrit.chromium.org/gerrit/15433
Reviewed-by: Matt Tennant <mtennant@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Ready: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
Mike Frysinger 2012-02-01 17:35:34 -05:00 committed by Gerrit
parent 0d7b3ae1fa
commit 525320c758
3 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST serf-0.3.0.tar.bz2 139893 RMD160 fdab06e71b459c2a616e5cd83ec40152c80493d8 SHA1 7f80479d262ae0012dcd0bc20d0ef09c945d58c5 SHA256 4eebd2a349e80a716a5f5aa4ee2e809f6be2c4b568390a0784cb30c2669a5c73

View File

@ -0,0 +1,11 @@
--- configure.in
+++ configure.in
@@ -171,7 +171,7 @@
dnl CuTest requires libm on Solaris
AC_SEARCH_LIBS(fabs, m)
-libs="`$apu_config --link-libtool --libs` `$apr_config --link-libtool --libs` $LIBS"
+libs="`$apu_config --link-ld` `$apr_config --link-ld` $LIBS"
APR_ADDTO(SERF_LIBS, [$libs])
AC_SUBST(SERF_LIBS)

View File

@ -0,0 +1,41 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/serf/serf-0.3.0.ebuild,v 1.6 2009/04/28 14:56:32 armin76 Exp $
inherit autotools eutils
DESCRIPTION="HTTP client library"
HOMEPAGE="http://code.google.com/p/serf/"
SRC_URI="http://serf.googlecode.com/files/${P}.tar.bz2"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
IUSE=""
DEPEND="dev-libs/apr
dev-libs/apr-util
dev-libs/openssl
sys-libs/zlib"
RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-disable-unneeded-linking.patch
eautoreconf
}
src_compile() {
econf \
--with-apr=/usr/bin/apr-1-config \
--with-apr-util=/usr/bin/apu-1-config \
--with-openssl=/usr
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc CHANGES README
}