diff options
author | Maxim Koltsov <maksbotan@gentoo.org> | 2010-05-14 19:06:29 +0000 |
---|---|---|
committer | Maxim Koltsov <maksbotan@gentoo.org> | 2010-05-14 19:06:29 +0000 |
commit | 454f297723462109643753336eddc958d60d861f (patch) | |
tree | aac9e8015e553ab839e2bd6878a66f89d532f978 /x11-libs | |
parent | dev-perl/perl-xyne-arch: Bump to perl-xyn-arch-2010.05.13.1. (diff) | |
download | sunrise-reviewed-454f297723462109643753336eddc958d60d861f.tar.gz sunrise-reviewed-454f297723462109643753336eddc958d60d861f.tar.bz2 sunrise-reviewed-454f297723462109643753336eddc958d60d861f.zip |
x11-libs/libubuntuone: New Ebuild for bug 319063
svn path=/sunrise/; revision=10555
Diffstat (limited to 'x11-libs')
-rw-r--r-- | x11-libs/libubuntuone/ChangeLog | 9 | ||||
-rw-r--r-- | x11-libs/libubuntuone/Manifest | 6 | ||||
-rw-r--r-- | x11-libs/libubuntuone/files/libubuntuone-optional-bindings.patch | 141 | ||||
-rw-r--r-- | x11-libs/libubuntuone/files/u1-syncdaemon | 13 | ||||
-rw-r--r-- | x11-libs/libubuntuone/libubuntuone-0.3.1.ebuild | 78 | ||||
-rw-r--r-- | x11-libs/libubuntuone/metadata.xml | 6 |
6 files changed, 253 insertions, 0 deletions
diff --git a/x11-libs/libubuntuone/ChangeLog b/x11-libs/libubuntuone/ChangeLog new file mode 100644 index 000000000..f5b8bff4b --- /dev/null +++ b/x11-libs/libubuntuone/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for x11-libs/libubuntuone +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 14 May 2010; Maxim (maksbotan) <kolmax94@gmail.com> +files/u1-syncdaemon, + +libubuntuone-0.3.1.ebuild, +files/libubuntuone-optional-bindings.patch, + +metadata.xml: + New Ebuild for bug 319063 + diff --git a/x11-libs/libubuntuone/Manifest b/x11-libs/libubuntuone/Manifest new file mode 100644 index 000000000..9679a355d --- /dev/null +++ b/x11-libs/libubuntuone/Manifest @@ -0,0 +1,6 @@ +AUX libubuntuone-optional-bindings.patch 4323 RMD160 f4efcf6a1df8294dc0dfba09c884831e05c238e3 SHA1 1c9d69be949307fa1149c1ab4acb006df48257ec SHA256 1a1369e4a53278fca12f1cf71998d4bee5dd7b54211d8876e7953fa63fa025f2 +AUX u1-syncdaemon 307 RMD160 5a4813cdc7ac868221431a503596759e2c14d11d SHA1 965d53b8c00b1c0923e2fb943e5ff950fbbd96e2 SHA256 ffff10195df059c9b0bbfe0aba1494728b0516563ff4623e049a7be743dbaf51 +DIST libubuntuone-0.3.1.tar.gz 415951 RMD160 8c86fbe0668176dd232d0e2cd9c2d6b1eb46f6c0 SHA1 03a41af7a34c02b9b2e6a98d14b8d2a1035a6a6b SHA256 7161055b6c2f203018d63a539df234ff280594603a176dbb431ad84e29606dd1 +EBUILD libubuntuone-0.3.1.ebuild 1618 RMD160 178f7d6e1e94d645a7367878699530f67fe5dee1 SHA1 d13861b7bda6c073961c49e226b7cd9dd1086d26 SHA256 19ad2ca04256a3cf31962353a64dc850573221f78dd97fbf15dbff41c1a6c7c6 +MISC ChangeLog 319 RMD160 28b5b02816004a187951f6abb0baa49cbd827bb9 SHA1 22a6da3d179e10690d6ab28ea3eb461c6aa9bf60 SHA256 72441ecd54565c680a2f8e8bab3d60d11dec114d91d6697e0344e3939788562c +MISC metadata.xml 229 RMD160 f0f6417bec31ce8baba6d476664f7210c8c84c98 SHA1 e5f94f5caadc6f843fc90bb7959570cd503676fd SHA256 3b08fca3c878bdfc4e7639f477dd542d55a4ab5dce39a475e82633071d13eb3f diff --git a/x11-libs/libubuntuone/files/libubuntuone-optional-bindings.patch b/x11-libs/libubuntuone/files/libubuntuone-optional-bindings.patch new file mode 100644 index 000000000..84f90a340 --- /dev/null +++ b/x11-libs/libubuntuone/files/libubuntuone-optional-bindings.patch @@ -0,0 +1,141 @@ +diff -urN libuo-test/libubuntuone-0.3.1/bindings/mono/Makefile.am libubuntuone-0.3.1/bindings/mono/Makefile.am +--- libuo-test/libubuntuone-0.3.1/bindings/mono/Makefile.am 2010-05-11 22:10:09.000000000 +0400 ++++ libubuntuone-0.3.1/bindings/mono/Makefile.am 2010-05-11 22:09:09.000000000 +0400 +@@ -12,6 +12,8 @@ + + EXTRA_DIST = ubuntuone.sources ubuntuone-api.metadata mono.snk AssemblyInfo.cs + ++if ENABLE_MONO_BINDING ++ + ubuntuonesharpdir = $(libdir)/mono/ubuntuone-sharp-1.0 + ubuntuonesharp_DATA = ubuntuone-sharp.dll ubuntuone-sharp.dll.config + +@@ -24,3 +26,5 @@ + ubuntuone-api.xml: ubuntuone.sources + $(MONO_GAPI_PARSER) $< + $(MONO_GAPI_FIXUP) --api=ubuntuone-api.xml --metadata=ubuntuone-api.metadata ++ ++endif +diff -urN libuo-test/libubuntuone-0.3.1/bindings/python/Makefile.am libubuntuone-0.3.1/bindings/python/Makefile.am +--- libuo-test/libubuntuone-0.3.1/bindings/python/Makefile.am 2010-04-08 12:27:29.000000000 +0400 ++++ libubuntuone-0.3.1/bindings/python/Makefile.am 2010-05-11 22:09:25.000000000 +0400 +@@ -1,3 +1,5 @@ ++if ENABLE_PYTHON_BINDING ++ + INCLUDES = \ + -I$(top_srcdir)/libubuntuone \ + $(LIBUBUNTUONE_CFLAGS) \ +@@ -34,3 +36,5 @@ + CLEANFILES = ubuntuone.c + + EXTRA_DIST = ubuntuone.defs ubuntuone.override ++ ++endif +diff -urN libuo-test/libubuntuone-0.3.1/configure.ac libubuntuone-0.3.1/configure.ac +--- libuo-test/libubuntuone-0.3.1/configure.ac 2010-04-15 18:32:52.000000000 +0400 ++++ libubuntuone-0.3.1/configure.ac 2010-05-11 22:12:00.000000000 +0400 +@@ -68,27 +68,61 @@ + DISTCHECK_CONFIGURE_FLAGS="--enable-gtk-doc" + AC_SUBST(DISTCHECK_CONFIGURE_FLAGS) + +-dnl Checks for Mono bindings +-AC_PATH_PROG(MONO_GAPI_PARSER, gapi2-parser, no) +-if test "x$MONO_GAPI_PARSER" = "xno"; then +- AC_MSG_ERROR(could not find gapi2-parser) +-fi +- +-AC_PATH_PROG(MONO_GAPI_CODEGEN, gapi2-codegen, no) +-if test "x$MONO_GAPI_CODEGEN" = "xno"; then +- AC_MSG_ERROR(could not find gapi2-codegen) +-fi +- +-AC_PATH_PROG(MONO_GAPI_FIXUP, gapi2-fixup, no) +-if test "x$MONO_GAPI_FIXUP" = "xno"; then +- AC_MSG_ERROR(could not find gapi2-fixup) +-fi +- +-AC_PATH_PROG(MONO_CSC, gmcs, no) +-if test "x$MONO_CSC" = "xno"; then +- AC_MSG_ERROR(could not find gmcs compiler) +-fi +- ++AC_ARG_ENABLE( ++ [mono-binding], ++ [AS_HELP_STRING( ++ [--enable-mono-binding], ++ [build mono bindings [default=yes]])], ++ [[ARG_ENABLE_MONO_BINDING=$enableval]], ++ [[ARG_ENABLE_MONO_BINDING=yes]] ++) ++ ++AC_MSG_CHECKING([whether mono bindings should be built]) ++AS_CASE(["$ARG_ENABLE_MONO_BINDING"], ++ ["yes"], [ ++ AC_MSG_RESULT([yes]) ++ ++ # dnl Checks for Mono bindings ++ AC_PATH_PROG(MONO_GAPI_PARSER, gapi2-parser, no) ++ if test "x$MONO_GAPI_PARSER" = "xno"; then ++ AC_MSG_ERROR(could not find gapi2-parser) ++ fi ++ ++ AC_PATH_PROG(MONO_GAPI_CODEGEN, gapi2-codegen, no) ++ if test "x$MONO_GAPI_CODEGEN" = "xno"; then ++ AC_MSG_ERROR(could not find gapi2-codegen) ++ fi ++ ++ AC_PATH_PROG(MONO_GAPI_FIXUP, gapi2-fixup, no) ++ if test "x$MONO_GAPI_FIXUP" = "xno"; then ++ AC_MSG_ERROR(could not find gapi2-fixup) ++ fi ++ ++ AC_PATH_PROG(MONO_CSC, gmcs, no) ++ if test "x$MONO_CSC" = "xno"; then ++ AC_MSG_ERROR(could not find gmcs compiler) ++ fi], ++ ["no"], [ ++ AC_MSG_RESULT([no]) ++ ], ++ [AC_MSG_RESULT([$ARG_ENABLE_MONO_BINDING]) ++ AC_MSG_ERROR([Unknown option "$ARG_ENABLE_MONO_BINDING". Use either "yes" or "no".])] ++) ++ ++ ++AC_ARG_ENABLE( ++ [python-binding], ++ [AS_HELP_STRING( ++ [--enable-python-binding], ++ [build python bindings [default=yes]])], ++ [[ARG_ENABLE_PYTHON_BINDING=$enableval]], ++ [[ARG_ENABLE_PYTHON_BINDING=yes]] ++) ++ ++AC_MSG_CHECKING([whether python bindings should be built]) ++AS_CASE(["$ARG_ENABLE_PYTHON_BINDING"], ++ ["yes"], [ ++ AC_MSG_RESULT([yes]) + + dnl Checks for Python bindings + AM_PATH_PYTHON(2.5) +@@ -129,11 +163,21 @@ + else + AC_SUBST(PYGNOME_CODEGEN, $PYGOBJECT_CODEGEN) + fi ++], ++ ["no"], [ ++ AC_MSG_RESULT([no]) ++ ], ++ [AC_MSG_RESULT([$ARG_ENABLE_PYTHON_BINDING]) ++ AC_MSG_ERROR([Unknown option "$ARG_ENABLE_PYTHON_BINDING". Use either "yes" or "no".])] ++) + + dnl JavaScript scripts location + U1_JAVASCRIPT_DIR=$datadir/libubuntuone/$LIBUBUNTUONE_CURRENT/javascript + AC_SUBST(U1_JAVASCRIPT_DIR) + ++AM_CONDITIONAL([ENABLE_PYTHON_BINDING], [test "x$ARG_ENABLE_PYTHON_BINDING" = "xyes"]) ++AM_CONDITIONAL([ENABLE_MONO_BINDING], [test "x$ARG_ENABLE_MONO_BINDING" = "xyes"]) ++ + AC_OUTPUT([ + Makefile + data/Makefile diff --git a/x11-libs/libubuntuone/files/u1-syncdaemon b/x11-libs/libubuntuone/files/u1-syncdaemon new file mode 100644 index 000000000..d3fdf1357 --- /dev/null +++ b/x11-libs/libubuntuone/files/u1-syncdaemon @@ -0,0 +1,13 @@ +#!/sbin/runscript + +depend() { + need net dbus +} + +start() { + start-stop-daemon --start --exec /usr/libexec/ubuntuone-syncdaemon --make-pidfile --pidfile /var/run/u1sd.pid -u $U1SD_USER -g $U1SD_GROUP +} + +stop() { + start-stop-daemon --stop --exec /usr/libexec/ubuntuone-syncdaemon --pidfile /var/run/u1sd.pid +} diff --git a/x11-libs/libubuntuone/libubuntuone-0.3.1.ebuild b/x11-libs/libubuntuone/libubuntuone-0.3.1.ebuild new file mode 100644 index 000000000..5b3eeda27 --- /dev/null +++ b/x11-libs/libubuntuone/libubuntuone-0.3.1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 + +SUPPORT_PYTHON_ABIS="1" +RESTRICT_PYTHON_ABIS="3.*" +PYTHON_DEPEND="python? 2:2.5" + +inherit mono python autotools eutils multilib + +DESCRIPTION="Ubuntu One GTK integration widgets" +HOMEPAGE="https://launchpad.net/libubuntuone" +SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz" + +LICENSE="LGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc mono python" + +RDEPEND="mono? ( + dev-dotnet/gtk-sharp:2 + dev-dotnet/gtk-sharp-gapi:2 + dev-lang/mono + ) + dev-libs/dbus-glib + dev-libs/glib:2 + dev-libs/libxml2 + dev-libs/openssl + python? ( + dev-python/pygobject + dev-python/pygtk:2 + ) + gnome-base/gconf:2 + gnome-base/gnome-keyring + gnome-extra/evolution-data-server + net-libs/libsoup-gnome:2.4 + net-libs/webkit-gtk" + +DEPEND="doc? ( + app-text/gnome-doc-utils + dev-util/gtk-doc + ) + dev-util/intltool + ${RDEPEND}" + +src_prepare(){ + epatch "${FILESDIR}"/libubuntuone-optional-bindings.patch + eautoreconf + python_copy_sources +} + +src_configure(){ + do_src_configure() + { + econf \ + $(use_enable doc gtk-doc) \ + $(use_enable mono mono-binding) \ + $(use_enable python python-binding) + } + python_execute_function -s do_src_configure +} + +src_compile() { + do_src_compile() { + emake || die "emake failed" + } + python_execute_function -s do_src_compile +} + +src_install() { + do_src_install() { + emake DESTDIR="${D}" install || die "install failed" + } + python_execute_function -s do_src_install + use mono && egacinstall "${D}"/usr/$(get_libdir)/mono/ubuntuone-sharp-1.0/ubuntuone-sharp.dll +} diff --git a/x11-libs/libubuntuone/metadata.xml b/x11-libs/libubuntuone/metadata.xml new file mode 100644 index 000000000..e6233b5dc --- /dev/null +++ b/x11-libs/libubuntuone/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> +<maintainer><email>maintainer-wanted@gentoo.org</email></maintainer> +</pkgmetadata> |