From 525320c7589f0398bb65885ac88e980b081aee43 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 1 Feb 2012 17:35:34 -0500 Subject: [PATCH] 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 Tested-by: Mike Frysinger Commit-Ready: Mike Frysinger --- .../portage-stable/net-libs/serf/Manifest | 1 + .../serf-0.3.0-disable-unneeded-linking.patch | 11 +++++ .../net-libs/serf/serf-0.3.0.ebuild | 41 +++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/net-libs/serf/Manifest create mode 100644 sdk_container/src/third_party/portage-stable/net-libs/serf/files/serf-0.3.0-disable-unneeded-linking.patch create mode 100644 sdk_container/src/third_party/portage-stable/net-libs/serf/serf-0.3.0.ebuild diff --git a/sdk_container/src/third_party/portage-stable/net-libs/serf/Manifest b/sdk_container/src/third_party/portage-stable/net-libs/serf/Manifest new file mode 100644 index 0000000000..445943ba86 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/net-libs/serf/Manifest @@ -0,0 +1 @@ +DIST serf-0.3.0.tar.bz2 139893 RMD160 fdab06e71b459c2a616e5cd83ec40152c80493d8 SHA1 7f80479d262ae0012dcd0bc20d0ef09c945d58c5 SHA256 4eebd2a349e80a716a5f5aa4ee2e809f6be2c4b568390a0784cb30c2669a5c73 diff --git a/sdk_container/src/third_party/portage-stable/net-libs/serf/files/serf-0.3.0-disable-unneeded-linking.patch b/sdk_container/src/third_party/portage-stable/net-libs/serf/files/serf-0.3.0-disable-unneeded-linking.patch new file mode 100644 index 0000000000..c7235b035a --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/net-libs/serf/files/serf-0.3.0-disable-unneeded-linking.patch @@ -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) + diff --git a/sdk_container/src/third_party/portage-stable/net-libs/serf/serf-0.3.0.ebuild b/sdk_container/src/third_party/portage-stable/net-libs/serf/serf-0.3.0.ebuild new file mode 100644 index 0000000000..b3d939328d --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/net-libs/serf/serf-0.3.0.ebuild @@ -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 +}