diff options
author | Thomas Sachau <tommy@gentoo.org> | 2010-11-18 12:29:04 +0000 |
---|---|---|
committer | Thomas Sachau <tommy@gentoo.org> | 2010-11-18 12:29:04 +0000 |
commit | c57527cd4afd70fac3e291fc495446c61fc08379 (patch) | |
tree | 1c3beb55913c60bdbc64277289f441107b086f70 /dev-libs | |
parent | Removed not needed darwin patch, because apllied upstream (diff) | |
download | gentoo-2-c57527cd4afd70fac3e291fc495446c61fc08379.tar.gz gentoo-2-c57527cd4afd70fac3e291fc495446c61fc08379.tar.bz2 gentoo-2-c57527cd4afd70fac3e291fc495446c61fc08379.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/eina/ChangeLog | 10 | ||||
-rw-r--r-- | dev-libs/eina/eina-1.0.0_beta2.ebuild | 63 | ||||
-rw-r--r-- | dev-libs/eina/metadata.xml | 64 |
3 files changed, 137 insertions, 0 deletions
diff --git a/dev-libs/eina/ChangeLog b/dev-libs/eina/ChangeLog new file mode 100644 index 000000000000..53c1f4fe8d26 --- /dev/null +++ b/dev-libs/eina/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-libs/eina +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/eina/ChangeLog,v 1.1 2010/11/18 12:29:04 tommy Exp $ + +*eina-1.0.0_beta2 (18 Nov 2010) + + 18 Nov 2010; Thomas Sachau (Tommy[D]) <tommy@gentoo.org> + +eina-1.0.0_beta2.ebuild, +metadata.xml: + Initial commit, based on ebuild in enlightenment overlay + diff --git a/dev-libs/eina/eina-1.0.0_beta2.ebuild b/dev-libs/eina/eina-1.0.0_beta2.ebuild new file mode 100644 index 000000000000..6300375bf627 --- /dev/null +++ b/dev-libs/eina/eina-1.0.0_beta2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/eina/eina-1.0.0_beta2.ebuild,v 1.1 2010/11/18 12:29:04 tommy Exp $ + +EAPI="2" + +MY_P=${P/_beta/.beta} + +inherit enlightenment + +DESCRIPTION="Enlightenment's data types library (List, hash, etc) in C" +SRC_URI="http://download.enlightenment.org/releases/${MY_P}.tar.bz2" +LICENSE="LGPL-2.1" + +KEYWORDS="~amd64 ~x86" +IUSE="altivec debug default-mempool mempool-buddy +mempool-chained + mempool-fixed-bitmap +mempool-pass-through + mmx sse sse2 static-libs +threads" + +RDEPEND="" +DEPEND="${RDEPEND} + dev-util/pkgconfig + test? ( + dev-libs/check + dev-libs/glib + dev-util/lcov + )" +S=${WORKDIR}/${MY_P} + +src_configure() { + local MODULE_ARGUMENT="static" + if use debug ; then + MODULE_ARGUMENT="yes" + fi + + # Evas benchmark is broken! + MY_ECONF=" + $(use_enable altivec cpu-altivec) + $(use_enable !debug amalgamation) + $(use_enable debug stringshare-usage) + $(use_enable debug assert) + $(use debug || echo " --with-internal-maximum-log-level=2") + $(use_enable default-mempool) + $(use_enable doc) + $(use_enable mempool-buddy mempool-buddy $MODULE_ARGUMENT) + $(use_enable mempool-chained mempool-chained-pool $MODULE_ARGUMENT) + $(use_enable mempool-fixed-bitmap mempool-fixed-bitmap $MODULE_ARGUMENT) + $(use_enable mempool-pass-through mempool-pass-through $MODULE_ARGUMENT) + $(use_enable mmx cpu-mmx) + $(use_enable sse cpu-sse) + $(use_enable sse2 cpu-sse2) + $(use_enable threads posix-threads) + $(use test && echo " --disable-amalgamation") + $(use_enable test tests) + $(use_enable test coverage) + $(use_enable test benchmark) + --enable-magic-debug + --enable-safety-checks + " +# $(use_enable test e17) + + enlightenment_src_configure +} diff --git a/dev-libs/eina/metadata.xml b/dev-libs/eina/metadata.xml new file mode 100644 index 000000000000..a6cd7a8da38e --- /dev/null +++ b/dev-libs/eina/metadata.xml @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>enlightenment</herd> +<use> + <flag name="mempool-chained">Compile "chained-pool" memory pool allocation.</flag> + <flag name="mempool-fixed-bitmap">Compile "fixed-bitmap" memory pool allocation.</flag> + <flag name="mempool-pass-through">Compile "pass-through" (system's malloc) memory pool allocation.</flag> + <flag name="mempool-buddy">Compile "buddy" memory pool allocation.</flag> + <flag name="default-mempool">By default use system's allocator (pass-through) instead of custom choice for Eina's own data structures.</flag> +</use> +<longdescription> +Eina is a multi-platform library that provides optimized data types +and useful tools for projects. + +Among its data types, Eina provides efficient implementation of: + + * double linked list with O(1) append and count; + + * double linked inlist (node is built in the data) with O(1) append; + + * stringshare, a pool of read-only strings that are shared in order + to save memory (no copies!), fast referencing and + pointer-comparison; + + * hash table with extensible key support, ships by default with + string, stringshare, pointer and integer hashes by default; + + * array of pointers, with O(1) count and append, configurable step + growing; + + * red-black tree; + + * sparse matrix; + + +As for tools, it provides couple of convenience: + + * generic and extensible logging system; + + * easy to use dynamic module loading (on top of dlopen()) that makes + it easy to change to static/built-in modules; + + * generic safety-checks system covering NULL pointers and other + incorrect conditions with logging; + + * "magic" type checking that check and logs if expected magic number + is incorrect; + + * easy to use and extensible memory allocators (mempools); + + * fixed-point arithmetic; + + * tile splitter and simplifier (merges); + + * generic iterator pattern (how to walk in one direction), just + implement the given API; + + * generic accessor pattern (how to randomly access items), just + implement the given API; + + * benchmark helpers. +</longdescription> +</pkgmetadata> |