logo

overlay

My (experimental) gentoo overlay
commit: 1f81f624397e6a8fbe66cf0c0e518ab9d72c36d4
parent: d779726a3e76e282dbcc12886131921817dcbf18
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 17 Aug 2016 09:52:41 +0200

gnustep-base/gnustep-base: Step 1: Read your code

Diffstat:

Agnustep-base/gnustep-base/Manifest3+++
Agnustep-base/gnustep-base/gnustep-base-1.24.9.ebuild87+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Agnustep-base/gnustep-base/metadata.xml18++++++++++++++++++
3 files changed, 108 insertions(+), 0 deletions(-)

diff --git a/gnustep-base/gnustep-base/Manifest b/gnustep-base/gnustep-base/Manifest @@ -0,0 +1,3 @@ +DIST gnustep-base-1.24.9.tar.gz 3561094 SHA256 059509f9f646c5b916685e74f0ea2a87fc277b16862177c91228735af1a272ef SHA512 baaa3541edf48a5d902f706f9dad261378bf65e5d89f7308ece6a1fe55c348506df4b6d474ae17cdf0072f1e8dec1b2050d59413abe28bd001d5717c54a3ab96 WHIRLPOOL 59f1b29c956185048129bc0ae89802655d446948552c1708030ad8d66e8264f724d6960d5db9a2026022a6533c49a09b0404705cca7071798815276bf17d1f04 +EBUILD gnustep-base-1.24.9.ebuild 2383 SHA256 0870d03782831e631c5f422031ac3e927723e7d00c53a810b3715adfb2fa47ae SHA512 ea7b7c9b300c86fc543494d6afeb96ac1dcb4e7786f5d1644c84f9ae707d68d7db6a01b67fb5bb3e4249fdd30641e3dc62216d66aca3f818e6ba596f86a82236 WHIRLPOOL 338f1f47226161477336c2cf10b220899e29a4117da34bd25a0bd0a2a7d11fffb297b8b77a476d1a02ba1c2863573e99e52b7399b74c5aa4fe2bff513906433e +MISC metadata.xml 763 SHA256 44024cdace6695f43712509243ce91d76d461cf7ecd5d4e6c8396ca551edbdc0 SHA512 1adb2cc47580c492a91b7593731b7cd8763cd3d2e45945229346afebc2840be93855e8f62158d59663a49c775e3482bf142a3ef52e087696f7bbc8bc429178b3 WHIRLPOOL 1c1c6af745b68cc5d24d683d5ce4542891eec8f909e7536aaf7b5cd00b0f1c527195e6b46ec1aefdbd24afdb2346e607de14ecb8500bae32c59b9e7d81740383 diff --git a/gnustep-base/gnustep-base/gnustep-base-1.24.9.ebuild b/gnustep-base/gnustep-base/gnustep-base-1.24.9.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit eutils gnustep-base + +DESCRIPTION="A library of general-purpose, non-graphical Objective C objects" +HOMEPAGE="http://www.gnustep.org" +SRC_URI="ftp://ftp.gnustep.org/pub/gnustep/core/${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris" +IUSE="+gnutls +icu +libffi libressl +ssl zeroconf" + +RDEPEND="${GNUSTEP_CORE_DEPEND} + >=gnustep-base/gnustep-make-2.6.0 + ssl? ( + gnutls? ( net-libs/gnutls ) + !gnutls? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:= ) + ) + ) + icu? ( >=dev-libs/icu-4.0:= ) + !libffi? ( dev-libs/ffcall + gnustep-base/gnustep-make[-native-exceptions] ) + libffi? ( virtual/libffi ) + >=dev-libs/libxml2-2.6 + >=dev-libs/libxslt-1.1 + >=dev-libs/gmp-4.1:= + >=sys-libs/zlib-1.2 + zeroconf? ( net-dns/avahi )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +pkg_pretend() { + if use ssl && use gnutls && use libressl ; then + ewarn "You have enabled both gnutls and libressl, but only" + ewarn "one provider can be active. Using gnutls!" + fi +} + +src_configure() { + egnustep_env + + local myconf + if use libffi ; then + myconf="--enable-libffi --disable-ffcall --with-ffi-include=$(pkg-config --variable=includedir libffi)" + else + myconf="--disable-libffi --enable-ffcall" + fi + + if use ssl ; then + if use gnutls ; then + myconf="$myconf --enable-tls --disable-openssl" + else + myconf="$myconf --disable-tls --enable-openssl" + fi + else + myconf="$myconf --disable-tls --disable-openssl" + fi + myconf="$myconf $(use_enable icu)" + myconf="$myconf $(use_enable zeroconf)" + myconf="$myconf --with-xml-prefix=${EPREFIX}/usr" + myconf="$myconf --with-gmp-include=${EPREFIX}/usr/include --with-gmp-library=${EPREFIX}/usr/lib" + myconf="$myconf --with-default-config=${EPREFIX}/etc/GNUstep/GNUstep.conf" + + econf $myconf +} + +src_install() { + # We need to set LD_LIBRARY_PATH because the doc generation program + # uses the gnustep-base libraries. Since egnustep_env "cleans the + # environment" including our LD_LIBRARY_PATH, we're left no choice + # but doing it like this. + + egnustep_env + egnustep_install + + if use doc ; then + export LD_LIBRARY_PATH="${S}/Source/obj:${LD_LIBRARY_PATH}" + egnustep_doc + fi + egnustep_install_config +} diff --git a/gnustep-base/gnustep-base/metadata.xml b/gnustep-base/gnustep-base/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>gnustep@gentoo.org</email> + <name>Gentoo GNUstep Project</name> +</maintainer> +<longdescription> +The GNUstep Base Library is a library of general-purpose, non-graphical +Objective C objects. For example, it includes classes for strings, +object collections, byte streams, typed coders, invocations, +notifications, notification dispatchers, moments in time, network ports, +remote object messaging support (distributed objects), and event loops. + +It provides functionality that aims to implement the non-graphical +portion of the OpenStep standard (the Foundation library). +</longdescription> +</pkgmetadata>