diff options
-rw-r--r-- | net-libs/liboauth/ChangeLog | 10 | ||||
-rw-r--r-- | net-libs/liboauth/Manifest | 11 | ||||
-rw-r--r-- | net-libs/liboauth/files/liboauth-0.9.1-ldflags.patch | 13 | ||||
-rw-r--r-- | net-libs/liboauth/liboauth-0.9.1.ebuild | 94 |
4 files changed, 122 insertions, 6 deletions
diff --git a/net-libs/liboauth/ChangeLog b/net-libs/liboauth/ChangeLog index 37d8acc2e599..036347b9cdd6 100644 --- a/net-libs/liboauth/ChangeLog +++ b/net-libs/liboauth/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-libs/liboauth -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-libs/liboauth/ChangeLog,v 1.4 2010/09/10 12:31:22 flameeyes Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/liboauth/ChangeLog,v 1.5 2011/01/12 23:21:44 flameeyes Exp $ + +*liboauth-0.9.1 (12 Jan 2011) + + 12 Jan 2011; Diego E. Pettenò <flameeyes@gentoo.org> +liboauth-0.9.1.ebuild, + +files/liboauth-0.9.1-ldflags.patch: + Version bump; add patch to respect ldflags properly. *liboauth-0.9.0 (10 Sep 2010) diff --git a/net-libs/liboauth/Manifest b/net-libs/liboauth/Manifest index d1ec13939eaa..ab2632a2e777 100644 --- a/net-libs/liboauth/Manifest +++ b/net-libs/liboauth/Manifest @@ -1,14 +1,17 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 +AUX liboauth-0.9.1-ldflags.patch 464 RMD160 d18e66e10ee97372fe97caf3a26a52b685edf9b7 SHA1 1079eeb4fd7ab5b0ebf7a895d1c3f5230d06b1e2 SHA256 0ca2c2a4dbfd6ddc8c3f1b3565783e05973b2d1e3181312dbb15b5f473e4a35e DIST liboauth-0.9.0.tar.gz 458621 RMD160 8d51fa79dadab5d648e18bc499c5e4d34201d810 SHA1 ff669bd19edc8aabbde3d8fee712d876e3891267 SHA256 eacdb421b727cbc1fccfd95b44cb3af5d226f585344b3cccd0d8780c9d2835d0 +DIST liboauth-0.9.1.tar.gz 395025 RMD160 4b23665ebacd055e172c34e8a2773b599607a5e1 SHA1 f554a8f5e4edbabd64df7638cf4a2f9060ac5671 SHA256 7e2eb08cfb0771e5fb79b458ac749a2f7a87d3d7d732bff7548ad8834aee013b EBUILD liboauth-0.9.0.ebuild 1845 RMD160 a0cd296559dcc4846c1bbbd56370949bb1848409 SHA1 8eb0096c4745d33801c7dc61291a8a9f3e8cfad9 SHA256 11b544d24faac6cbe09f7c10f07cf2527ee1263296b0cddd01cd360d5e03bf0c -MISC ChangeLog 1391 RMD160 ed15a41d4c87c1b884c366f270c88280130c9bd4 SHA1 b18031f049576a339b9595ab6d1d54bf23488090 SHA256 1dfe3ef67b52948c87934a05028b751c9d5f1da9c532c3718cf446ef3116fba2 +EBUILD liboauth-0.9.1.ebuild 1944 RMD160 633cba62745e6710432423535ec971f9e1c7b488 SHA1 dc2aff0b0c9f5218360bbdd396d17b7ec1f7e296 SHA256 e04b8166fbd919bd31ef7a389d7715bf925fc39735155e3353798a5889e1edf7 +MISC ChangeLog 1597 RMD160 9d55ed3f425d789d5f23083d56efcdda9fe008fb SHA1 08b8ed00392ea4e44ac48c8fb3fb049d123dd282 SHA256 2328b7e4203ee126f2d8db18d4c15fe89cba2ec5e0b979e35705f942ae0bb62a MISC metadata.xml 865 RMD160 c4e532e4bdc093f1fd9f875d48e0087ff04e4620 SHA1 7a08aaf44bc5758aa9c917223896c025d338bbd7 SHA256 849bef3eb92d0c8df01f26a9eea1ce5e09259eceb6819d167a81b1605e76c640 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) -iEYEARECAAYFAkyKJS8ACgkQAiZjviIA2XhwKQCfVaLuBmmcqUzOmEl4HNsl/nZO -55EAnjK5nlgimEPPODYmhFxzGkFem1WO -=SIWr +iEYEARECAAYFAk0uN2EACgkQAiZjviIA2XhFrgCfROA2kuio/Z4zv7wHTKEcTxPD +iCMAoMtF7yxrfZBfzeeJT9Ki/MEfAbVW +=8mdp -----END PGP SIGNATURE----- diff --git a/net-libs/liboauth/files/liboauth-0.9.1-ldflags.patch b/net-libs/liboauth/files/liboauth-0.9.1-ldflags.patch new file mode 100644 index 000000000000..cff5d7887d61 --- /dev/null +++ b/net-libs/liboauth/files/liboauth-0.9.1-ldflags.patch @@ -0,0 +1,13 @@ +Index: liboauth-0.9.1/configure.ac +=================================================================== +--- liboauth-0.9.1.orig/configure.ac ++++ liboauth-0.9.1/configure.ac +@@ -81,7 +81,7 @@ LIBOAUTH_LDFLAGS="${LIBOAUTH_CFLAGS} -ex + #LIBOAUTH_CFLAGS="${LIBOAUTH_CFLAGS} -g -posix -std=c99 -pedantic" + + AC_MSG_CHECKING([if -Wl,--as-needed works]) +-LFDLAGS_save=$LDFLAGS ++LDFLAGS_save=$LDFLAGS + LDFLAGS="$LDFLAGS -Wl,--as-needed" + AC_TRY_LINK([], [], + [ diff --git a/net-libs/liboauth/liboauth-0.9.1.ebuild b/net-libs/liboauth/liboauth-0.9.1.ebuild new file mode 100644 index 000000000000..6a5e10315972 --- /dev/null +++ b/net-libs/liboauth/liboauth-0.9.1.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-libs/liboauth/liboauth-0.9.1.ebuild,v 1.1 2011/01/12 23:21:44 flameeyes Exp $ + +EAPI=2 + +inherit eutils autotools + +DESCRIPTION="C library implementing the OAuth secure authentication protocol" +HOMEPAGE="http://liboauth.sourceforge.net/" +SRC_URI="http://liboauth.sourceforge.net/pool/${P}.tar.gz" + +LICENSE="|| ( GPL-2 MIT )" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="curl doc bindist +nss" + +CDEPEND=" + nss? ( dev-libs/nss + curl? ( || ( net-misc/curl[ssl,nss,-gnutls] net-misc/curl[-ssl] ) ) + ) + + bindist? ( dev-libs/nss + curl? ( || ( net-misc/curl[ssl,nss,-gnutls] net-misc/curl[-ssl] ) ) + ) + + !bindist? ( + !nss? ( dev-libs/openssl + curl? ( || ( net-misc/curl[ssl,-nss,-gnutls] net-misc/curl[-ssl] ) ) + ) + ) + + net-misc/curl +" + +RDEPEND="${CDEPEND}" + +DEPEND="${CDEPEND} + doc? ( + app-doc/doxygen + media-gfx/graphviz + media-fonts/freefont-ttf + ) + dev-util/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}/${P}-ldflags.patch" + eautoreconf +} + +src_configure() { + local myconf= + + if use nss || use bindist; then + myconf="${myconf} --enable-nss" + else + myconf="${myconf} --disable-nss" + fi + + econf \ + --disable-dependency-tracking \ + --enable-fast-install \ + --disable-static \ + $(use_enable !curl curl) \ + $(use_enable curl libcurl) \ + ${myconf} +} + +src_compile() { + emake || die "emake failed" + + if use doc ; then + # make sure fonts are found + export DOTFONTPATH=/usr/share/fonts/freefont-ttf + emake dox || die "emake dox failed" + fi +} + +src_test() { + # explicitly allow parallel test build + emake check || die "emake check failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "install failed" + + find "${D}" -name '*.la' -delete || die + + dodoc AUTHORS ChangeLog LICENSE.OpenSSL NEWS README || die "dodoc failed" + + if use doc; then + dohtml -r doc/html/* || die "dohtml failed" + fi +} |