public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alexis Ballier" <aballier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/onion/files/, net-libs/onion/
Date: Thu, 15 Oct 2015 07:51:58 +0000 (UTC)	[thread overview]
Message-ID: <1444895505.62710b3ba9d2e6b0c824c28dfa929142dda49bab.aballier@gentoo> (raw)

commit:     62710b3ba9d2e6b0c824c28dfa929142dda49bab
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 15 07:51:28 2015 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Thu Oct 15 07:51:45 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62710b3b

net-libs/onion: Initial import. Ebuild be me.

Package-Manager: portage-2.2.23

 net-libs/onion/Manifest           |  1 +
 net-libs/onion/files/cflags.patch | 20 ++++++++++++
 net-libs/onion/metadata.xml       | 13 ++++++++
 net-libs/onion/onion-0.7.ebuild   | 67 +++++++++++++++++++++++++++++++++++++++
 net-libs/onion/onion-9999.ebuild  | 67 +++++++++++++++++++++++++++++++++++++++
 5 files changed, 168 insertions(+)

diff --git a/net-libs/onion/Manifest b/net-libs/onion/Manifest
new file mode 100644
index 0000000..270ebb8
--- /dev/null
+++ b/net-libs/onion/Manifest
@@ -0,0 +1 @@
+DIST onion-0.7.tar.gz 287822 SHA256 18785a462ea2d7214df8413de86eba2d74e414dace9716a2a7ce7b1cb3d4edb7 SHA512 9da45100ec91893e43c62cdabc1b022dc60fd2b509e387ce12fea69495fc68084afcc2534693955d340352cafc58e98a901a5ef981d1c92793ab15b7b6257d4c WHIRLPOOL e7d0695c2d45ac80edd271eaef0148474c12f1b53777714719af2bdd6d0b0d0c8375ecdc19990ee38f6dc2a31c2f7a19b7b70a4c3ac1a1fbef3548d1a923dad3

diff --git a/net-libs/onion/files/cflags.patch b/net-libs/onion/files/cflags.patch
new file mode 100644
index 0000000..7c4094f
--- /dev/null
+++ b/net-libs/onion/files/cflags.patch
@@ -0,0 +1,20 @@
+Index: onion-0.7/CMakeLists.txt
+===================================================================
+--- onion-0.7.orig/CMakeLists.txt
++++ onion-0.7/CMakeLists.txt
+@@ -151,15 +151,6 @@ endif (SYSTEMD_ENABLED)
+ add_definitions(-D_BSD_SOURCE)
+ add_definitions(-D_POSIX_C_SOURCE=200112L)
+ 
+-##
+-IF (${CMAKE_BUILD_TYPE} MATCHES "Debug")
+-	add_definitions(-D__DEBUG__)
+-	SET(CMAKE_C_FLAGS "-Wall -Werror -O0 -fPIC")
+-ELSE (${CMAKE_BUILD_TYPE} MATCHES "Debug")
+-	SET(CMAKE_C_FLAGS "-Wall -Werror -O2 -fPIC")
+-ENDIF (${CMAKE_BUILD_TYPE} MATCHES "Debug")
+-
+-
+ project (onion)
+ 
+ INCLUDE(CPackConfig.cmake)

diff --git a/net-libs/onion/metadata.xml b/net-libs/onion/metadata.xml
new file mode 100644
index 0000000..5d3e5aa
--- /dev/null
+++ b/net-libs/onion/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer>
+    <email>aballier@gentoo.org</email>
+    <name>Alexis Ballier</name>
+  </maintainer>
+  <use>
+	  <flag name="libev">Use <pkg>dev-libs/libev</pkg> as thread poller instead of Linux's epoll.</flag>
+	  <flag name="libevent">Use <pkg>dev-libs/libevent</pkg> as thread poller instead of libev or Linux's epoll.</flag>
+	  <flag name="boehm-gc">Add <pkg>dev-libs/boehm-gc</pkg> support for memory allocations.</flag>
+  </use>
+</pkgmetadata>

diff --git a/net-libs/onion/onion-0.7.ebuild b/net-libs/onion/onion-0.7.ebuild
new file mode 100644
index 0000000..6578fd1
--- /dev/null
+++ b/net-libs/onion/onion-0.7.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+	SCM="git-r3"
+	EGIT_REPO_URI="https://github.com/davidmoreno/onion"
+fi
+
+inherit ${SCM} cmake-utils
+
+DESCRIPTION="C library to create simple HTTP servers and Web Applications"
+HOMEPAGE="http://www.coralbits.com/libonion/ https://github.com/davidmoreno/onion"
+
+if [ "${PV#9999}" != "${PV}" ] ; then
+	KEYWORDS=""
+	SRC_URI=""
+else
+	KEYWORDS="~amd64"
+	SRC_URI="https://github.com/davidmoreno/onion/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+LICENSE="|| ( GPL-2+ Apache-2.0 ) AGPL-3"
+SLOT="0"
+IUSE="
+	gnutls pam png xml systemd sqlite
+	test examples cxx -libev -libevent
+"
+
+RDEPEND="
+	gnutls? ( net-libs/gnutls dev-libs/libgcrypt:0= )
+	pam? ( virtual/pam )
+	png? ( media-libs/libpng:0= x11-libs/cairo )
+	xml? ( dev-libs/libxml2:2 sys-libs/zlib )
+	systemd? ( sys-apps/systemd )
+	sqlite? ( dev-db/sqlite:3 )
+	libev? ( dev-libs/libev )
+	!libev? ( libevent? ( dev-libs/libevent ) )
+"
+DEPEND="${RDEPEND}
+	test? ( net-misc/curl )
+"
+REQUIRED_USE="test? ( examples )"
+
+PATCHES=(
+	"${FILESDIR}/cflags.patch"
+)
+
+src_configure() {
+	use test || echo '' > tests/CMakeLists.txt
+	local mycmakeargs=(
+		"-DONION_USE_SSL=$(usex gnutls)"
+		"-DONION_USE_PAM=$(usex pam)"
+		"-DONION_USE_PNG=$(usex png)"
+		"-DONION_USE_XML2=$(usex xml)"
+		"-DONION_USE_SYSTEMD=$(usex systemd)"
+		"-DONION_USE_SQLITE3=$(usex sqlite)"
+		"-DONION_USE_TESTS=$(usex test)"
+		"-DONION_EXAMPLES=$(usex examples)"
+		"-DONION_USE_BINDINGS_CPP=$(usex cxx)"
+		"-DONION_POLLER=$(usex libev libev "$(usex libevent libevent default)")"
+	)
+	cmake-utils_src_configure
+}

diff --git a/net-libs/onion/onion-9999.ebuild b/net-libs/onion/onion-9999.ebuild
new file mode 100644
index 0000000..405fa7b
--- /dev/null
+++ b/net-libs/onion/onion-9999.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+SCM=""
+if [ "${PV#9999}" != "${PV}" ] ; then
+	SCM="git-r3"
+	EGIT_REPO_URI="https://github.com/davidmoreno/onion"
+fi
+
+inherit ${SCM} cmake-utils
+
+DESCRIPTION="C library to create simple HTTP servers and Web Applications"
+HOMEPAGE="http://www.coralbits.com/libonion/ https://github.com/davidmoreno/onion"
+
+if [ "${PV#9999}" != "${PV}" ] ; then
+	KEYWORDS=""
+	SRC_URI=""
+else
+	KEYWORDS="~amd64"
+	SRC_URI="https://github.com/davidmoreno/onion/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+LICENSE="|| ( GPL-2+ Apache-2.0 ) AGPL-3"
+SLOT="0"
+IUSE="
+	gnutls pam png jpeg xml systemd sqlite boehm-gc
+	test examples cxx -libev -libevent
+"
+
+RDEPEND="
+	gnutls? ( net-libs/gnutls dev-libs/libgcrypt:0= )
+	pam? ( virtual/pam )
+	png? ( media-libs/libpng:0= x11-libs/cairo )
+	jpeg? ( virtual/jpeg:0 )
+	xml? ( dev-libs/libxml2:2 sys-libs/zlib )
+	systemd? ( sys-apps/systemd )
+	sqlite? ( dev-db/sqlite:3 )
+	boehm-gc? ( dev-libs/boehm-gc )
+	libev? ( dev-libs/libev )
+	!libev? ( libevent? ( dev-libs/libevent ) )
+"
+DEPEND="${RDEPEND}
+	test? ( net-misc/curl )
+"
+REQUIRED_USE="test? ( examples )"
+
+src_configure() {
+	use test || echo '' > tests/CMakeLists.txt
+	local mycmakeargs=(
+		"-DONION_USE_SSL=$(usex gnutls)"
+		"-DONION_USE_PAM=$(usex pam)"
+		"-DONION_USE_PNG=$(usex png)"
+		"-DONION_USE_JPEG=$(usex jpeg)"
+		"-DONION_USE_XML2=$(usex xml)"
+		"-DONION_USE_SYSTEMD=$(usex systemd)"
+		"-DONION_USE_SQLITE3=$(usex sqlite)"
+		"-DONION_USE_GC=$(usex boehm-gc)"
+		"-DONION_USE_TESTS=$(usex test)"
+		"-DONION_EXAMPLES=$(usex examples)"
+		"-DONION_USE_BINDINGS_CPP=$(usex cxx)"
+		"-DONION_POLLER=$(usex libev libev "$(usex libevent libevent default)")"
+	)
+	cmake-utils_src_configure
+}


                 reply	other threads:[~2015-10-15  7:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1444895505.62710b3ba9d2e6b0c824c28dfa929142dda49bab.aballier@gentoo \
    --to=aballier@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox