Gentoo Archives: gentoo-commits

From: Heather Cynede <cynede@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/dotnet:master commit in: dev-dotnet/notify-sharp/files/, dev-dotnet/notify-sharp/
Date: Mon, 30 Dec 2013 14:11:41
Message-Id: 1387975594.9b66745e562c84196421b54b8621daa53c8bb27d.cynede@gentoo
1 commit: 9b66745e562c84196421b54b8621daa53c8bb27d
2 Author: Heather <Heather <AT> live <DOT> ru>
3 AuthorDate: Wed Dec 25 12:46:34 2013 +0000
4 Commit: Heather Cynede <cynede <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 25 12:46:34 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/dotnet.git;a=commit;h=9b66745e
7
8 notify-sharp corrections
9
10 ---
11 ...tify-sharp-0.4.0_pre20080912-control-docs.patch | 28 ++++++++++
12 ...notify-sharp-0.4.0_pre20090305-dbus-sharp.patch | 60 ++++++++++++++++++++++
13 dev-dotnet/notify-sharp/metadata.xml | 5 ++
14 .../notify-sharp-0.4.0_pre20090305.ebuild | 36 +++++++++++++
15 4 files changed, 129 insertions(+)
16
17 diff --git a/dev-dotnet/notify-sharp/files/notify-sharp-0.4.0_pre20080912-control-docs.patch b/dev-dotnet/notify-sharp/files/notify-sharp-0.4.0_pre20080912-control-docs.patch
18 new file mode 100644
19 index 0000000..44ff058
20 --- /dev/null
21 +++ b/dev-dotnet/notify-sharp/files/notify-sharp-0.4.0_pre20080912-control-docs.patch
22 @@ -0,0 +1,28 @@
23 +diff -NrU5 notify-sharp-20080912.orig/configure.ac notify-sharp-20080912/configure.ac
24 +--- notify-sharp-20080912.orig/configure.ac 2008-11-26 21:56:02.000000000 +0100
25 ++++ notify-sharp-20080912/configure.ac 2008-11-26 22:01:08.000000000 +0100
26 +@@ -34,16 +34,21 @@
27 + if test "x$GACUTIL" = "xno"; then
28 + AC_MSG_ERROR([You need to install gacutil])
29 + fi
30 + AC_SUBST(GACUTIL)
31 +
32 +-AC_ARG_ENABLE(docs, AC_HELP_STRING([--disable-docs],
33 +- [Do not build documentation]), with_docs=no, with_docs=yes)
34 ++AC_ARG_ENABLE( [docs],
35 ++ [AC_HELP_STRING( [--enable/disable-docs],
36 ++ [Do (not) build documentation (default=yes)]
37 ++ )],
38 ++ [],
39 ++ [enable_docs=yes]
40 ++)
41 +
42 + MONODOC_REQ_VERSION=1.1.18
43 +
44 +-if test "x$with_docs" = "xyes"; then
45 ++if test "x$enable_docs" = "xyes"; then
46 + PKG_CHECK_MODULES(MONODOC, monodoc >= $MONODOC_REQ_VERSION,,
47 + [AC_MSG_ERROR([You need to install monodoc, or pass --disable-docs to configure to skip documentation installation])])
48 + AC_PATH_PROG(MONODOCER, monodocer, no)
49 + if test "x$MONODOCER" = "xno"; then
50 + AC_MSG_ERROR([You need to install monodoc, or pass --disable-docs to configure to skip documentation installation])
51
52 diff --git a/dev-dotnet/notify-sharp/files/notify-sharp-0.4.0_pre20090305-dbus-sharp.patch b/dev-dotnet/notify-sharp/files/notify-sharp-0.4.0_pre20090305-dbus-sharp.patch
53 new file mode 100644
54 index 0000000..28c6316
55 --- /dev/null
56 +++ b/dev-dotnet/notify-sharp/files/notify-sharp-0.4.0_pre20090305-dbus-sharp.patch
57 @@ -0,0 +1,60 @@
58 +diff --git a/configure.ac b/configure.ac
59 +index d2ff635..7200f06 100644
60 +--- a/configure.ac
61 ++++ b/configure.ac
62 +@@ -71,11 +71,11 @@ GTK_SHARP_REQ_VERSION=2.10.1
63 + PKG_CHECK_MODULES(GTK_SHARP, gtk-sharp-2.0 >= $GTK_SHARP_REQ_VERSION)
64 + AC_SUBST(GTK_SHARP_LIBS)
65 +
66 +-NDESK_DBUS_REQ_VERSION=0.4
67 +-NDESK_DBUS_GLIB_REQ_VERSION=0.3
68 +-PKG_CHECK_MODULES(NDESK_DBUS, ndesk-dbus-1.0 >= $NDESK_DBUS_REQ_VERSION \
69 +- ndesk-dbus-glib-1.0 >= $NDESK_DBUS_GLIB_REQ_VERSION)
70 +-AC_SUBST(NDESK_DBUS_LIBS)
71 ++DBUS_SHARP_REQ_VERSION=0.7
72 ++DBUS_SHARP_GLIB_REQ_VERSION=0.5
73 ++PKG_CHECK_MODULES(DBUS_SHARP, dbus-sharp-1.0 >= $DBUS_SHARP_REQ_VERSION \
74 ++ dbus-sharp-glib-1.0 >= $DBUS_SHARP_GLIB_REQ_VERSION)
75 ++AC_SUBST(DBUS_SHARP_LIBS)
76 +
77 + required_assemblies="Mono.Posix"
78 +
79 +diff --git a/src/Global.cs b/src/Global.cs
80 +index eedefbf..a0f80ed 100644
81 +--- a/src/Global.cs
82 ++++ b/src/Global.cs
83 +@@ -24,7 +24,7 @@ using System;
84 + using System.Reflection;
85 + using System.Collections.Generic;
86 +
87 +-using NDesk.DBus;
88 ++using DBus;
89 + using org.freedesktop;
90 + using org.freedesktop.DBus;
91 +
92 +diff --git a/src/Makefile.am b/src/Makefile.am
93 +index 3b39c23..50bbb39 100644
94 +--- a/src/Makefile.am
95 ++++ b/src/Makefile.am
96 +@@ -7,7 +7,7 @@ CSFLAGS = \
97 + LIBFLAGS = \
98 + -r:Mono.Posix \
99 + $(GTK_SHARP_LIBS) \
100 +- $(NDESK_DBUS_LIBS)
101 ++ $(DBUS_SHARP_LIBS)
102 +
103 + CSFILES = \
104 + $(srcdir)/Global.cs \
105 +diff --git a/src/Notification.cs b/src/Notification.cs
106 +index 09ef83e..e2ab72f 100644
107 +--- a/src/Notification.cs
108 ++++ b/src/Notification.cs
109 +@@ -28,7 +28,7 @@ using GLib;
110 + using Gdk;
111 + using Gtk;
112 +
113 +-using NDesk.DBus;
114 ++using DBus;
115 + using org.freedesktop;
116 + using org.freedesktop.DBus;
117 +
118
119 diff --git a/dev-dotnet/notify-sharp/metadata.xml b/dev-dotnet/notify-sharp/metadata.xml
120 new file mode 100644
121 index 0000000..e01adbb
122 --- /dev/null
123 +++ b/dev-dotnet/notify-sharp/metadata.xml
124 @@ -0,0 +1,5 @@
125 +<?xml version="1.0" encoding="UTF-8"?>
126 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
127 +<pkgmetadata>
128 + <herd>dotnet</herd>
129 +</pkgmetadata>
130
131 diff --git a/dev-dotnet/notify-sharp/notify-sharp-0.4.0_pre20090305.ebuild b/dev-dotnet/notify-sharp/notify-sharp-0.4.0_pre20090305.ebuild
132 new file mode 100644
133 index 0000000..8ce83e6
134 --- /dev/null
135 +++ b/dev-dotnet/notify-sharp/notify-sharp-0.4.0_pre20090305.ebuild
136 @@ -0,0 +1,36 @@
137 +# Copyright 1999-2013 Gentoo Foundation
138 +# Distributed under the terms of the GNU General Public License v2
139 +# $Header: $
140 +
141 +EAPI=5
142 +inherit autotools eutils dotnet
143 +
144 +MY_P=${PN}-${PV#*_pre}
145 +
146 +DESCRIPTION="a C# client implementation for Desktop Notifications"
147 +HOMEPAGE="http://www.ndesk.org/NotifySharp"
148 +SRC_URI="mirror://gentoo/${MY_P}.tar.bz2"
149 +
150 +LICENSE="MIT"
151 +SLOT="0"
152 +KEYWORDS="amd64 ppc x86"
153 +IUSE="doc"
154 +
155 +RDEPEND=">=dev-lang/mono-1.1.13
156 + >=dev-dotnet/gtk-sharp-2.10.1:2
157 + >=dev-dotnet/dbus-sharp-0.6
158 + >=dev-dotnet/dbus-sharp-glib-0.4
159 + >=x11-libs/libnotify-0.4.5"
160 +DEPEND="${RDEPEND}"
161 +
162 +S=${WORKDIR}/${MY_P}
163 +
164 +src_prepare() {
165 + epatch "${FILESDIR}/${PN}-0.4.0_pre20080912-control-docs.patch" \
166 + "${FILESDIR}/${P}-dbus-sharp.patch"
167 + eautoreconf
168 +}
169 +
170 +src_configure() {
171 + econf $(use_enable doc docs)
172 +}