summaryrefslogtreecommitdiff
path: root/net-libs/liboauth
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/liboauth')
-rw-r--r--net-libs/liboauth/Manifest6
-rw-r--r--net-libs/liboauth/files/liboauth-1.0.1-doxygen-out-of-tree.patch50
-rw-r--r--net-libs/liboauth/liboauth-1.0.3.ebuild69
-rw-r--r--net-libs/liboauth/metadata.xml24
4 files changed, 149 insertions, 0 deletions
diff --git a/net-libs/liboauth/Manifest b/net-libs/liboauth/Manifest
new file mode 100644
index 000000000000..867996a2587d
--- /dev/null
+++ b/net-libs/liboauth/Manifest
@@ -0,0 +1,6 @@
+AUX liboauth-1.0.1-doxygen-out-of-tree.patch 2231 SHA256 c91215e3799b9f2a53fd54b9f22f7365c23a9a080b106bc6923facc14b0f1c42 SHA512 c7ac48e30ededc7079a08504ae78f421b843100dec2c8658d75ff7a3101660087de962d73ac73bf1023286b0a89c1d1b3187ba36336d1caf051b03d445571dd6 WHIRLPOOL 599216ee5473e7f084010e913d3fe492b62a42c53cc97c9876d2943eadb65c66d526424c6ea887c75a7da2d91173c7367c262d9a206a6128a1d8f7443d4eabc1
+DIST liboauth-1.0.3.tar.gz 504950 SHA256 0df60157b052f0e774ade8a8bac59d6e8d4b464058cc55f9208d72e41156811f SHA512 5a13818dbb3e0df76f7a3fde451eff4f90c9bebfe2076a294921af0c07c2b0789f717f0f862ac6961562d4227e016dc198ddd7efb9c7ac599c3bfbcdb2ac33fa WHIRLPOOL 98d9771a5e8a42ed7781a9f8fbcbdf4dd8e04077028855c07f8722de230be829d66a142e56ff85f88e0db20791b92ece18169b5a49deb1c28f3350ef90a9219c
+EBUILD liboauth-1.0.3.ebuild 1445 SHA256 68318ae7e869a0e038da2b8905f6d8857a85e718c5261092865a088117225144 SHA512 a70d801add90aade10a12b5dd24446a1dbc36a9dfa28fbd3c90f3a7054b6a0a0c34830cda96565984b4b444295f557334b5fe149c99cf1e87b37a5af4b1b254f WHIRLPOOL f889aa0ef0d1798864151cffc7c9242d1396fce418870c767c479380937e220eba40dce91ad9440cf92311f9dda32741cd46ee2bf5fc5ef9ffc32b8f090dcc54
+MISC ChangeLog 3125 SHA256 7098e273360be9a5fbba63d135b84efb7f7f305483ba51894f3f812b13e3d2db SHA512 0b7123f1a8ad0965cb5102bc23c6d328000cbfee6d0a96b814e43f892027cc0365dcb1a3e04e862fb0189de74bc9ea1a0d15e24e5f629362fb9759c3b1fa4418 WHIRLPOOL 86a32e5f3ebcd96b0fc23e81583cbfcff90cab2bf56d42ffd6c46a7bacd5180a5006141a6584b4b392d4b1c6801198b89ac8df98434f876c0afa050eda40b76f
+MISC ChangeLog-2015 5422 SHA256 2c2a97c87ff1783af4d8717d07c94e1a0d97554c65475cebc8fd2608a5eedf31 SHA512 420e89d449bef2d942c8f278e88909270c7ef0bacf3d301f71176df40f6e3d927aba6d16a88af908b5c6d26bba3e925ae2a0f5352e1e42f5e6f39d7b794beebc WHIRLPOOL 9f81ea509e37e3e590b1eea9c0d17e3a2a8a86ac26c254486669a2c624304f9af8a875fba2be1e36ba0f9f641cdc560f07c0c95df4132d9b0f78d764dfe65215
+MISC metadata.xml 879 SHA256 40c583b31143dbf078fca883dba1dac96c1a4ff08fb4fe92899b5f445f3e4f4a SHA512 05625ec768286997f291d95e40e024c692bb8dd3be2d2eea1c3d7c90b452b9a98988a2ca43a5c6134a0e084e0a4ae40af4a00e809092edbcf3a0630781657a07 WHIRLPOOL 983c41ceb85f79971289e3a4707d1a019480780f8960d679bb6562fb0a54a08124faa3cd46e787ae14ade76285b176c11c4f7d6bf70669a17df04a565ae78778
diff --git a/net-libs/liboauth/files/liboauth-1.0.1-doxygen-out-of-tree.patch b/net-libs/liboauth/files/liboauth-1.0.1-doxygen-out-of-tree.patch
new file mode 100644
index 000000000000..3ed37ec266cc
--- /dev/null
+++ b/net-libs/liboauth/files/liboauth-1.0.1-doxygen-out-of-tree.patch
@@ -0,0 +1,50 @@
+diff -urp liboauth-1.0.1-orig/Doxyfile.in liboauth-1.0.1/Doxyfile.in
+--- liboauth-1.0.1-orig/Doxyfile.in 2012-11-01 04:34:49.000000000 +0000
++++ liboauth-1.0.1/Doxyfile.in 2013-03-14 14:25:11.000000000 +0000
+@@ -45,7 +45,7 @@ PROJECT_BRIEF =
+ # exceed 55 pixels and the maximum width should not exceed 200 pixels.
+ # Doxygen will copy the logo to the output directory.
+
+-PROJECT_LOGO = doc/libOAuth.png
++PROJECT_LOGO = @top_srcdir@/doc/libOAuth.png
+
+ # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
+ # base path where the generated documentation will be put.
+@@ -130,7 +130,7 @@ FULL_PATH_NAMES = YES
+ # relative paths, which will be relative from the directory where doxygen is
+ # started.
+
+-STRIP_FROM_PATH = src/
++STRIP_FROM_PATH = @top_srcdir@/src/
+
+ # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of
+ # the path mentioned in the documentation of a class, which tells
+@@ -661,8 +661,8 @@ WARN_LOGFILE =
+ # directories like "/usr/src/myproject". Separate the files or directories
+ # with spaces.
+
+-INPUT = src/oauth.h \
+- doc/mainpage.dox
++INPUT = @top_srcdir@/src/oauth.h \
++ @top_srcdir@/doc/mainpage.dox
+
+ # This tag can be used to specify the character encoding of the source files
+ # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
+@@ -722,7 +722,7 @@ EXCLUDE_SYMBOLS =
+ # directories that contain example code fragments that are included (see
+ # the \include command).
+
+-EXAMPLE_PATH = tests/
++EXAMPLE_PATH = @top_srcdir@/tests/
+
+ # If the value of the EXAMPLE_PATH tag contains directories, you can use the
+ # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp
+@@ -742,7 +742,7 @@ EXAMPLE_RECURSIVE = NO
+ # directories that contain image that are included in the documentation (see
+ # the \image command).
+
+-IMAGE_PATH = doc/
++IMAGE_PATH = @top_srcdir@/doc/
+
+ # The INPUT_FILTER tag can be used to specify a program that doxygen should
+ # invoke to filter for each input file. Doxygen will invoke the filter program
diff --git a/net-libs/liboauth/liboauth-1.0.3.ebuild b/net-libs/liboauth/liboauth-1.0.3.ebuild
new file mode 100644
index 000000000000..c854294a0240
--- /dev/null
+++ b/net-libs/liboauth/liboauth-1.0.3.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit autotools-utils
+
+DESCRIPTION="C library implementing the OAuth secure authentication protocol"
+HOMEPAGE="http://liboauth.sourceforge.net/"
+SRC_URI="mirror://sourceforge/project/${PN}/${P}.tar.gz"
+
+LICENSE="|| ( GPL-2 MIT )"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ppc ppc64 sparc x86 ~x64-macos"
+IUSE="curl doc bindist +nss"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.0.1-doxygen-out-of-tree.patch )
+REQUIRED_USE="bindist? ( nss )"
+
+CDEPEND="
+ nss? ( dev-libs/nss
+ curl? ( || ( net-misc/curl[ssl,curl_ssl_nss] net-misc/curl[-ssl] ) )
+ )
+
+ !nss? ( dev-libs/openssl:0=
+ curl? ( || ( net-misc/curl[ssl,curl_ssl_openssl] net-misc/curl[-ssl] ) )
+ )
+
+ net-misc/curl
+"
+
+RDEPEND="${CDEPEND}"
+
+DEPEND="${CDEPEND}
+ doc? (
+ app-doc/doxygen
+ media-gfx/graphviz
+ media-fonts/freefont
+ )
+ virtual/pkgconfig"
+
+src_configure() {
+ local myeconfargs=(
+ --disable-static
+ $(use_enable !curl curl)
+ $(use_enable curl libcurl)
+ $(use_enable nss)
+ )
+
+ autotools-utils_src_configure
+}
+
+src_compile() {
+ autotools-utils_src_compile
+
+ if use doc ; then
+ # make sure fonts are found
+ export DOTFONTPATH="${EPREFIX}"/usr/share/fonts/freefont-ttf
+ autotools-utils_src_compile dox
+ fi
+}
+
+DOCS=( AUTHORS ChangeLog LICENSE.OpenSSL README )
+
+src_install() {
+ use doc && HTML_DOCS=("${BUILD_DIR}"/doc/html/)
+
+ autotools-utils_src_install
+}
diff --git a/net-libs/liboauth/metadata.xml b/net-libs/liboauth/metadata.xml
new file mode 100644
index 000000000000..686c8f7ccb07
--- /dev/null
+++ b/net-libs/liboauth/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="nss">
+ Use Mozilla NSS (<pkg>dev-libs/nss</pkg>) as hash library; if
+ this is disabled, <pkg>dev-libs/openssl</pkg> is used instead.
+ </flag>
+ <flag name="bindist">
+ Alias for the nss USE flag, since there are license compliancy
+ trouble when using OpenSSL.
+ </flag>
+ <flag name="curl">
+ If enabled, <pkg>net-misc/curl</pkg> is used thorugh the libcurl
+ library; if it's not, the curl command is used instead. Some
+ features are only available when using the library, but using it
+ as library requires matching SSL implementations.
+ </flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">liboauth</remote-id>
+ </upstream>
+</pkgmetadata>