diff options
author | Thomas Sachau <tommy@gentoo.org> | 2010-11-18 13:54:42 +0000 |
---|---|---|
committer | Thomas Sachau <tommy@gentoo.org> | 2010-11-18 13:54:42 +0000 |
commit | 9e7104eb203bcc9c2ad802d899efc0e126d1717e (patch) | |
tree | fdd45877de0a3f26df71d89e83bfa0d169c40d37 /dev-libs | |
parent | Automated update of use.local.desc (diff) | |
download | gentoo-2-9e7104eb203bcc9c2ad802d899efc0e126d1717e.tar.gz gentoo-2-9e7104eb203bcc9c2ad802d899efc0e126d1717e.tar.bz2 gentoo-2-9e7104eb203bcc9c2ad802d899efc0e126d1717e.zip |
Initial commit, based on ebuild in enlightenment overlay
(Portage version: 2.2.0_alpha2-r1/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/ecore/ChangeLog | 10 | ||||
-rw-r--r-- | dev-libs/ecore/ecore-1.0.0_beta2.ebuild | 197 | ||||
-rw-r--r-- | dev-libs/ecore/metadata.xml | 65 |
3 files changed, 272 insertions, 0 deletions
diff --git a/dev-libs/ecore/ChangeLog b/dev-libs/ecore/ChangeLog new file mode 100644 index 000000000000..6d765ee1ac77 --- /dev/null +++ b/dev-libs/ecore/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-libs/ecore +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/ecore/ChangeLog,v 1.1 2010/11/18 13:54:42 tommy Exp $ + +*ecore-1.0.0_beta2 (18 Nov 2010) + + 18 Nov 2010; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> + +ecore-1.0.0_beta2.ebuild, +metadata.xml: + Initial commit, based on ebuild in enlightenment overlay + diff --git a/dev-libs/ecore/ecore-1.0.0_beta2.ebuild b/dev-libs/ecore/ecore-1.0.0_beta2.ebuild new file mode 100644 index 000000000000..742f6e9318ea --- /dev/null +++ b/dev-libs/ecore/ecore-1.0.0_beta2.ebuild @@ -0,0 +1,197 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/ecore/ecore-1.0.0_beta2.ebuild,v 1.1 2010/11/18 13:54:42 tommy Exp $ + +EAPI=2 + +MY_P=${P/_beta/.beta} + +inherit enlightenment + +DESCRIPTION="Enlightenment's core event abstraction layer and OS abstraction layer" +SRC_URI="http://download.enlightenment.org/releases/${MY_P}.tar.bz2" + +KEYWORDS="~amd64 ~x86" +IUSE="ares curl directfb +evas fbcon glib gnutls +inotify opengl sdl ssl static-libs +threads tslib +X xcb xinerama xprint xscreensaver" + +RDEPEND=">=dev-libs/eina-1.0.0_beta + ares? ( net-dns/c-ares ) + glib? ( dev-libs/glib ) + curl? ( net-misc/curl ) + gnutls? ( net-libs/gnutls ) + !gnutls? ( ssl? ( dev-libs/openssl ) ) + evas? ( + >=media-libs/evas-1.0.0_beta[directfb?,fbcon?,opengl?,sdl?,X?,xcb?] + opengl? ( virtual/opengl ) + ) + directfb? ( >=dev-libs/DirectFB-0.9.16 ) + tslib? ( x11-libs/tslib ) + sdl? ( media-libs/libsdl ) + X? ( + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXrender + x11-libs/libXtst + xinerama? ( x11-libs/libXinerama x11-libs/libXrandr ) + xprint? ( x11-libs/libXp ) + xscreensaver? ( x11-libs/libXScrnSaver ) + ) + !X? ( xcb? ( x11-libs/xcb-util ) )" +DEPEND="${RDEPEND}" +S=${WORKDIR}/${MY_P} + +src_configure() { + local SSL_FLAGS="" EVAS_FLAGS="" X_FLAGS="" + + if use gnutls; then + if use ssl; then + einfo "You have enabled both 'ssl' and 'gnutls', so we will use" + einfo "gnutls and not openssl for ecore-con support" + fi + SSL_FLAGS=" + --disable-openssl + --enable-gnutls + " + elif use ssl; then + SSL_FLAGS=" + --enable-openssl + --disable-gnutls + " + else + SSL_FLAGS=" + --disable-openssl + --disable-gnutls + " + fi + + local x_or_xcb="" + if use X; then + x_or_xcb="X" + elif use xcb; then + x_or_xcb="xcb" + fi + + if use evas; then + + if use opengl && [[ -z "$x_or_xcb" ]]; then + ewarn "Ecore/Evas usage of OpenGL requires X11." + ewarn "Compile dev-libs/ecore with USE=X or xcb." + ewarn "Compiling without opengl support." + EVAS_FLAGS+=" + --disable-ecore-evas-software-x11 + --disable-ecore-evas-xrender-x11 + --disable-ecore-evas-software-16-x11 + " + else + EVAS_FLAGS+=" + --enable-ecore-evas-software-x11 + --enable-ecore-evas-xrender-x11 + --enable-ecore-evas-software-16-x11 + " + fi + EVAS_FLAGS+=" + $(use_enable directfb ecore-evas-directfb) + $(use_enable fbcon ecore-evas-fb) + $(use_enable sdl ecore-evas-software-sdl) + $(use_enable xcb ecore-evas-xrender-xcb) + $(use_enable opengl ecore-evas-opengl-x11) + " + else + EVAS_FLAGS+=" + --disable-ecore-evas-directfb + --disable-ecore-evas-fb + --disable-ecore-evas-software-sdl + --disable-ecore-evas-software-x11 + --disable-ecore-evas-xrender-x11 + --disable-ecore-evas-software-16-x11 + --disable-ecore-evas-xrender-xcb + --disable-ecore-evas-opengl-x11 + " + if use opengl; then + ewarn "Ecore usage of OpenGL is dependent on media-libs/evas." + ewarn "Compile dev-libs/ecore with USE=evas." + fi + fi + + if use X; then + if use xcb; then + ewarn "You have enabled both 'X' and 'xcb', so we will use" + ewarn "X as it's considered the most stable for ecore-x" + fi + X_FLAGS=" + --enable-ecore-x + --disable-ecore-x-xcb + " + + elif use xcb; then + X_FLAGS=" + --enable-ecore-x + --enable-ecore-x-xcb + " + else + X_FLAGS=" + --disable-ecore-x + --disable-ecore-x-xcb + " + fi + + if [[ ! -z "$x_or_xcb" ]]; then + X_FLAGS+=" + $(use_enable xinerama ecore-x-xinerama) + $(use_enable xprint ecore-x-xprint) + $(use_enable xscreensaver ecore-x-screensaver) + " + else + X_FLAGS+=" + --disable-ecore-x-xinerama + --disable-ecore-x-xprint + --disable-ecore-x-screensaver + " + fi + + if use tslib && ! use fbcon; then + ewarn "Ecore just uses tslib for framebuffer input." + ewarn "Compile dev-libs/ecore with USE=fbcon." + fi + + MY_ECONF=" + --enable-ecore-con + --enable-ecore-ipc + --enable-ecore-file + --enable-ecore-imf + --enable-ecore-input + --disable-ecore-win32 + --disable-ecore-wince + --disable-ecore-evas-software-gdi + --disable-ecore-evas-software-ddraw + --disable-ecore-evas-direct3d + --disable-ecore-evas-opengl-glew + --disable-ecore-evas-software-16-ddraw + --disable-ecore-evas-software-16-wince + $(use_enable ares cares) + $(use_enable curl) + $(use_enable directfb ecore-directfb) + $(use_enable doc) + $(use_enable evas ecore-evas) + $(use_enable evas ecore-input-evas) + $(use_enable evas ecore-imf-evas) + $(use_enable evas ecore-evas-software-buffer) + $(use_enable fbcon ecore-fb) + $(use_enable glib) + $(use_enable inotify) + $(use_enable sdl ecore-sdl) + $(use_enable test tests) + $(use_enable threads pthread) + $(use_enable tslib) + $(use_enable X xim) + ${SSL_FLAGS} + ${EVAS_FLAGS} + ${X_FLAGS} + " + enlightenment_src_configure +} diff --git a/dev-libs/ecore/metadata.xml b/dev-libs/ecore/metadata.xml new file mode 100644 index 000000000000..8c60c11fde06 --- /dev/null +++ b/dev-libs/ecore/metadata.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>enlightenment</herd> +<use> + <flag name="ares">Enables support for asynchronous DNS using the <pkg>net-dns/c-ares</pkg> library</flag> + <flag name="glib">Enable <pkg>dev-libs/glib</pkg> eventloop support</flag> + <flag name="xprint">Enable X11 Xprint support</flag> + <flag name="inotify">Enable support for inotify</flag> + <flag name="evas">Provides easy to use canvas by gluing <pkg>media-libs/evas</pkg> and various input/output systems.</flag> + <flag name="tslib">Build with tslib support for touchscreen devices.</flag> +</use> +<longdescription> +Ecore is a clean and tiny event loop library with many modules to do +lots of convenient things for a programmer, to save time and effort. + +It's small and lean, designed to work on embedded systems all the way +to large and powerful multi-cpu workstations. It serialises all system +signals, events etc. into a single event queue, that is easily +processed without needing to worry about concurrency. A properly +written, event-driven program using this kind of programming doesn't +need threads, nor has to worry about concurrency. It turns a program +into a state machine, and makes it very robust and easy to follow. + +Ecore gives you other handy primitives, such as timers to tick over +for you and call specified functions at particular times so the +programmer can use this to do things, like animate, or time out on +connections or tasks that take too long etc. + +Idle handlers are provided too, as well as calls on entering an idle +state (often a very good time to update the state of the program). All +events that enter the system are passed to specific callback functions +that the program sets up to handle those events. Handling them is +simple and other Ecore modules produce more events on the queue, +coming from other sources such as file descriptors etc. + +Ecore also lets you have functions called when file descriptors become +active for reading or writing, allowing for streamlined, non-blocking +IO. + +Ecore may provide (if enabled) the following libraries: + + * ecore: main loop, signals, and base; + + * ecore_con: http/ftp (curl) access; + + * ecore_file: easy file manipulation (copy, move, symlink, remove), + monitoring and directory (mkdir, mkdir -p, rm -fr); + + * ecore_txt: text charset conversion (iconv wrapper); + + * ecore_evas: integrates <pkg>media-libs/evas</pkg> into different + input and output systems, providing easy to use canvas; + + * ecore_x, ecore_sdl, ecore_quartz, ecore_directfb, ecore_win32, + ecore_wince, ecore_fb: access to different input/output systems, + mapping them to ecore main loop and events; + + * ecore_imf, ecore_imf_evas: input-method framework used to integrate + with different input methods such as virtual keyboards; + + * ecore_input, ecore_input_evas: abstraction of input events. + +</longdescription> +</pkgmetadata> |