Gentoo Archives: gentoo-commits

From: Johannes Huber <johu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libsignon-glib/files/, net-libs/libsignon-glib/
Date: Thu, 27 Aug 2015 12:25:16
Message-Id: 1440678288.b25ff8de385a6a27c23237fa8ec1880b461af68e.johu@gentoo
1 commit: b25ff8de385a6a27c23237fa8ec1880b461af68e
2 Author: Johannes Huber <johu <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 27 12:24:48 2015 +0000
4 Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 27 12:24:48 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b25ff8de
7
8 net-libs/libsignon-glib: New package
9
10 Initial ebuild by Igor Poboiko <igor.poboiko <AT> gmail.com>. Updates by me.
11
12 Gentoo-Bug: 557546
13 Reported-by: David E. Narváez <david.narvaez <AT> computer.org>
14
15 Package-Manager: portage-2.2.20.1
16
17 net-libs/libsignon-glib/Manifest | 1 +
18 .../files/libsignon-glib-1.12-doc-disable.patch | 25 +++++++
19 net-libs/libsignon-glib/libsignon-glib-1.12.ebuild | 76 ++++++++++++++++++++++
20 net-libs/libsignon-glib/metadata.xml | 5 ++
21 4 files changed, 107 insertions(+)
22
23 diff --git a/net-libs/libsignon-glib/Manifest b/net-libs/libsignon-glib/Manifest
24 new file mode 100644
25 index 0000000..48c9856
26 --- /dev/null
27 +++ b/net-libs/libsignon-glib/Manifest
28 @@ -0,0 +1 @@
29 +DIST libsignon-glib-1.12.tar.xz 42384 SHA256 bd7e3be291e3173f20dda5376e1387be5d1705b12a00885e93f2cc900a9b4463 SHA512 5d5a3918898dce9d8b10597ac95428bef4753a1c626b6e7fef54e9024327b0849ddb628b25801504c336cf6fe2ebc16e5264bb576ecab16457ccf17918f042cf WHIRLPOOL 5766ad1fe50a6637d2f8e5fe6b092599112c9b6fb56dd44502568d41d61d3208d8d5a00ce1c698848f3fbeb0eb0a1ee82bcbebaff74428a97f634589e56d9def
30
31 diff --git a/net-libs/libsignon-glib/files/libsignon-glib-1.12-doc-disable.patch b/net-libs/libsignon-glib/files/libsignon-glib-1.12-doc-disable.patch
32 new file mode 100644
33 index 0000000..1ef64e6
34 --- /dev/null
35 +++ b/net-libs/libsignon-glib/files/libsignon-glib-1.12-doc-disable.patch
36 @@ -0,0 +1,25 @@
37 +diff -Naur libsignon-glib-1.12.old/configure.ac libsignon-glib-1.12/configure.ac
38 +--- libsignon-glib-1.12.old/configure.ac 2014-12-09 11:52:37.000000000 +0300
39 ++++ libsignon-glib-1.12/configure.ac 2015-08-27 13:00:54.501123031 +0300
40 +@@ -100,9 +100,6 @@
41 + Makefile
42 + libsignon-glib/Makefile
43 + libsignon-glib.pc
44 +- docs/Makefile
45 +- docs/reference/Makefile
46 +- docs/reference/version.xml
47 + tests/Makefile
48 + pygobject/Makefile
49 + ])
50 +diff -Naur libsignon-glib-1.12.old/Makefile.am libsignon-glib-1.12/Makefile.am
51 +--- libsignon-glib-1.12.old/Makefile.am 2014-12-09 11:52:37.000000000 +0300
52 ++++ libsignon-glib-1.12/Makefile.am 2015-08-27 13:00:42.101237854 +0300
53 +@@ -2,7 +2,7 @@
54 + DISTCHECK_CONFIGURE_FLAGS = \
55 + --enable-gtk-doc \
56 + --enable-introspection=yes
57 +-SUBDIRS = libsignon-glib docs
58 ++SUBDIRS = libsignon-glib
59 +
60 + if ENABLE_PYTHON
61 + SUBDIRS += pygobject
62
63 diff --git a/net-libs/libsignon-glib/libsignon-glib-1.12.ebuild b/net-libs/libsignon-glib/libsignon-glib-1.12.ebuild
64 new file mode 100644
65 index 0000000..c5f085e
66 --- /dev/null
67 +++ b/net-libs/libsignon-glib/libsignon-glib-1.12.ebuild
68 @@ -0,0 +1,76 @@
69 +# Copyright 1999-2015 Gentoo Foundation
70 +# Distributed under the terms of the GNU General Public License v2
71 +# $Id$
72 +
73 +EAPI=5
74 +
75 +PYTHON_COMPAT=( python{2_7,3_3,3_4} )
76 +inherit autotools python-r1
77 +
78 +DESCRIPTION="GLib binding for the D-Bus API provided by signond"
79 +HOMEPAGE="https://01.org/gsso/"
80 +SRC_URI="http://dev.gentoo.org/~johu/distfiles/${P}.tar.xz"
81 +
82 +SLOT="0"
83 +LICENSE="LGPL-2.1"
84 +KEYWORDS="~amd64 ~x86"
85 +IUSE="debug doc python test"
86 +
87 +RDEPEND="
88 + dev-libs/glib:2
89 + net-libs/signond
90 +"
91 +DEPEND="${RDEPEND}
92 + dev-libs/check
93 + python? ( ${PYTHON_DEPS} )
94 + doc? ( dev-util/gtk-doc )
95 +"
96 +
97 +DOCS=( AUTHORS NEWS README )
98 +
99 +# needs more love
100 +RESTRICT="test"
101 +
102 +src_prepare() {
103 + if ! use doc; then
104 + epatch "${FILESDIR}/${P}-doc-disable.patch"
105 + fi
106 +
107 + eautoreconf
108 +}
109 +
110 +src_configure() {
111 + myconfigure() {
112 + local myeconfargs=(
113 + $(use_enable debug)
114 + $(use_enable doc gtk-doc)
115 + $(use_enable python)
116 + $(use_enable test tests)
117 + )
118 +
119 + econf "${myeconfargs[@]}"
120 + }
121 +
122 + if use python; then
123 + python_copy_sources
124 + python_foreach_impl run_in_build_dir myconfigure
125 + else
126 + myconfigure
127 + fi
128 +}
129 +
130 +src_compile() {
131 + # fails to compile with more than one thread
132 + MAKEOPTS="${MAKEOPTS} -j1"
133 + default
134 + if use python; then
135 + python_foreach_impl run_in_build_dir default
136 + fi
137 +}
138 +
139 +src_install() {
140 + default
141 + if use python; then
142 + python_foreach_impl run_in_build_dir default
143 + fi
144 +}
145
146 diff --git a/net-libs/libsignon-glib/metadata.xml b/net-libs/libsignon-glib/metadata.xml
147 new file mode 100644
148 index 0000000..a23f444
149 --- /dev/null
150 +++ b/net-libs/libsignon-glib/metadata.xml
151 @@ -0,0 +1,5 @@
152 +<?xml version="1.0" encoding="UTF-8"?>
153 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
154 +<pkgmetadata>
155 + <herd>kde</herd>
156 +</pkgmetadata>